创建分支branch14
CPE14 — VPE14
|
VPE5
{"branchList": [{"active": true,"cpe": {"accessPoints": [{"accessRoutes": [{"nexthop": "16.1.1.2","prefix": "52.1.1.0/24"}],"bandwidth": "100","interfaceIp": "16.1.1.1/24","interfaceName": "GigabitEthernet1/0","vlan": "1006"}],"snat": {"interfaceName": "GigabitEthernet2/0","prefix": ["16.1.1.0/24"]},"deviceName": "cpe14"},"description": "branch14","links": [{"cpeIfIp": "172.171.15.21/24","cpeIfName": "GigabitEthernet2/0","cpeName": "cpe14","vpeIfIp": "172.171.15.24/24","vpeIfName": "GigabitEthernet2/0","vpeName": "vpe14"},{"cpeIfIp": "172.171.15.21/24","cpeIfName": "GigabitEthernet2/0","cpeName": "cpe14","vpeIfIp": "172.171.15.204/24","vpeIfName": "GigabitEthernet1/0","vpeName": "vpe5"}],"encapType": "vxlan","name": "branch14","vpes": [{"deviceName": "vpe14","peAccessPoints": [{"interfaceIp": "19.1.1.2/24","remoteIp": "19.1.1.1/24","interfaceName": "GigabitEthernet3/0","vlan": "1099"}]},{"deviceName": "vpe5","peAccessPoints": [{"interfaceIp": "20.1.1.2/24","remoteIp": "20.1.1.1/24","interfaceName": "GigabitEthernet3/0","vlan": "1099"}]}]}],"description": "connection-nzy","name": "connection-nzy"}
添加分支branch2
CPE5 — VPE4**
{"branchList": [{"active": true,"cpe": {"accessPoints": [{"bandwidth": "100","interfaceIp": "12.1.1.1/24","interfaceName": "GigabitEthernet0/5","vlan": "1002","dhcpPool": {"dhcpEnable": true,"gateway": "12.1.1.1","subnet": "12.1.1.0/24","dhcpStart": "12.1.1.3","dhcpEnd": "12.1.1.254","leaseTime": "12"}}],"deviceName": "cpe5"},"description": "branch2","links": [{"cpeIfIp": "172.171.15.254/24","cpeIfName": "GigabitEthernet0/0","cpeName": "cpe5","vpeIfIp": "172.171.15.203/24","vpeIfName": "GigabitEthernet1/0","vpeName": "vpe4"}],"name": "branch2","operation": "add","vpes": [{"deviceName": "vpe4","peAccessPoints": [{"interfaceIp": "10.1.1.1/24","remoteIp": "10.1.1.2/24","interfaceName": "GigabitEthernet3/0","vlan": "1011"}]}]}],"description": "connection-nzy","name": "connection-nzy"}
删除分支branch14
{"branchList": [{"name": "branch14","operation": "delete"}],"name": "connection-nzy"}
删除分支branch2
{"branchList": [{"name": "branch2","operation": "delete"}],"name": "connection-nzy"}
