| { |
| "device": { |
| "default_interface": { |
| "config": { |
| "name": "default", |
| "type": "IF_UPLINK" |
| }, |
| "subinterfaces": [ |
| { |
| "admin_state": "UP", |
| "ipv4": { |
| "addresses": [ |
| { |
| "dhcp_client": true |
| } |
| ] |
| } |
| } |
| ] |
| }, |
| "interfaces": [ |
| { |
| "interface": { |
| "config": { |
| "name": "wlan", |
| "type": "IF_UPLINK" |
| }, |
| "device_id": "wlanif-client", |
| "subinterfaces": [ |
| { |
| "admin_state": "UP", |
| "ipv4": { |
| "addresses": [ |
| { |
| "dhcp_client": true |
| } |
| ] |
| } |
| } |
| ] |
| } |
| }, |
| { |
| "interface": { |
| "config": { |
| "name": "wlan-ap", |
| "type": "IF_ETHERNET" |
| }, |
| "device_id": "wlanif-ap", |
| "subinterfaces": [ |
| { |
| "admin_state": "UP", |
| "ipv4": { |
| "addresses": [ |
| { |
| "cidr_address": "192.168.3.1/24" |
| } |
| ], |
| "dhcp_server": { |
| "enabled": true, |
| "dhcp_pool": { |
| "start": "192.168.3.10", |
| "end": "192.168.3.254", |
| "lease_time": "1d" |
| } |
| } |
| } |
| } |
| ], |
| "ethernet": { |
| "config": { |
| "auto_negotiate": true, |
| "duplex_mode": "FULL", |
| "enable_flow_control": true, |
| "port_speed": "SPEED_1G" |
| } |
| } |
| } |
| } |
| ], |
| "acls": { |
| "acl_entries": [ |
| { |
| "config": { |
| "forwarding_action": "DROP", |
| "device_id": "wlanif-client", |
| "comment": "Block traffic to sshd from the wlan" |
| }, |
| "ipv4": { |
| "dst_address": "0.0.0.0/0", |
| "dst_ports": "22" |
| } |
| } |
| ] |
| } |
| } |
| } |