创建分支branch14
    CPE14 — VPE14
    |
    VPE5

    1. {
    2. "branchList": [
    3. {
    4. "active": true,
    5. "cpe": {
    6. "accessPoints": [{
    7. "accessRoutes": [{
    8. "nexthop": "16.1.1.2",
    9. "prefix": "52.1.1.0/24"
    10. }],
    11. "bandwidth": "100",
    12. "interfaceIp": "16.1.1.1/24",
    13. "interfaceName": "GigabitEthernet1/0",
    14. "vlan": "1006"
    15. }],
    16. "snat": {
    17. "interfaceName": "GigabitEthernet2/0",
    18. "prefix": ["16.1.1.0/24"]
    19. },
    20. "deviceName": "cpe14"
    21. },
    22. "description": "branch14",
    23. "links": [{
    24. "cpeIfIp": "172.171.15.21/24",
    25. "cpeIfName": "GigabitEthernet2/0",
    26. "cpeName": "cpe14",
    27. "vpeIfIp": "172.171.15.24/24",
    28. "vpeIfName": "GigabitEthernet2/0",
    29. "vpeName": "vpe14"
    30. },
    31. {
    32. "cpeIfIp": "172.171.15.21/24",
    33. "cpeIfName": "GigabitEthernet2/0",
    34. "cpeName": "cpe14",
    35. "vpeIfIp": "172.171.15.204/24",
    36. "vpeIfName": "GigabitEthernet1/0",
    37. "vpeName": "vpe5"
    38. }],
    39. "encapType": "vxlan",
    40. "name": "branch14",
    41. "vpes": [{
    42. "deviceName": "vpe14",
    43. "peAccessPoints": [{
    44. "interfaceIp": "19.1.1.2/24",
    45. "remoteIp": "19.1.1.1/24",
    46. "interfaceName": "GigabitEthernet3/0",
    47. "vlan": "1099"
    48. }]
    49. },
    50. {
    51. "deviceName": "vpe5",
    52. "peAccessPoints": [{
    53. "interfaceIp": "20.1.1.2/24",
    54. "remoteIp": "20.1.1.1/24",
    55. "interfaceName": "GigabitEthernet3/0",
    56. "vlan": "1099"
    57. }]
    58. }]
    59. }
    60. ],
    61. "description": "connection-nzy",
    62. "name": "connection-nzy"
    63. }


    添加分支branch2
    CPE5 — VPE4**

    1. {
    2. "branchList": [
    3. {
    4. "active": true,
    5. "cpe": {
    6. "accessPoints": [{
    7. "bandwidth": "100",
    8. "interfaceIp": "12.1.1.1/24",
    9. "interfaceName": "GigabitEthernet0/5",
    10. "vlan": "1002",
    11. "dhcpPool": {
    12. "dhcpEnable": true,
    13. "gateway": "12.1.1.1",
    14. "subnet": "12.1.1.0/24",
    15. "dhcpStart": "12.1.1.3",
    16. "dhcpEnd": "12.1.1.254",
    17. "leaseTime": "12"
    18. }
    19. }],
    20. "deviceName": "cpe5"
    21. },
    22. "description": "branch2",
    23. "links": [{
    24. "cpeIfIp": "172.171.15.254/24",
    25. "cpeIfName": "GigabitEthernet0/0",
    26. "cpeName": "cpe5",
    27. "vpeIfIp": "172.171.15.203/24",
    28. "vpeIfName": "GigabitEthernet1/0",
    29. "vpeName": "vpe4"
    30. }],
    31. "name": "branch2",
    32. "operation": "add",
    33. "vpes": [{
    34. "deviceName": "vpe4",
    35. "peAccessPoints": [{
    36. "interfaceIp": "10.1.1.1/24",
    37. "remoteIp": "10.1.1.2/24",
    38. "interfaceName": "GigabitEthernet3/0",
    39. "vlan": "1011"
    40. }]
    41. }]
    42. }
    43. ],
    44. "description": "connection-nzy",
    45. "name": "connection-nzy"
    46. }

    删除分支branch14

    1. {
    2. "branchList": [
    3. {
    4. "name": "branch14",
    5. "operation": "delete"
    6. }
    7. ],
    8. "name": "connection-nzy"
    9. }

    删除分支branch2

    1. {
    2. "branchList": [
    3. {
    4. "name": "branch2",
    5. "operation": "delete"
    6. }
    7. ],
    8. "name": "connection-nzy"
    9. }