VxLAN
| URL | GET | POST | PATCH | PUT | DELETE |
|---|---|---|---|---|---|
| /rest/v1/rpc/show-vxlan-remotemac | N | Y | N | N | N |
| /rest/v1/rpc/show-vxlan-tunnel | N | Y | N | N | N |
| /rest/v1/running/vxlan | Y | N | Y | N | N |
| /rest/v1/running/vxlan/local-vtep/{id} | Y | Y | Y | N | Y |
| /rest/v1/running/vxlan/map/{vni} | Y | Y | N | N | Y |
| /rest/v1/running/vxlan/remote-vtep/{vni}/{ip} | Y | Y | Y | N | Y |
Examples
Section titled “Examples”Show vxlan remotemac
Section titled “Show vxlan remotemac”POST HTTPS://{switch IP}/rest/v1/rpc/show-vxlan-remotemac{ "ip": "10.0.1.1"}Show vxlan tunnel
Section titled “Show vxlan tunnel”POST HTTPS://{switch IP}/rest/v1/rpc/show-vxlan-tunnelGet vxlan configurations.
Section titled “Get vxlan configurations.”GET HTTPS://{switch IP}/rest/v1/running/vxlanCreate a VxLAN local vtep.
Section titled “Create a VxLAN local vtep.”POST HTTPS://{switch IP}/rest/v1/running/vxlan/local-vtep/8{ "ip": "2.2.2.2"}Create a VxLAN remote vtep.
Section titled “Create a VxLAN remote vtep.”POST HTTPS://{switch IP}/rest/v1/running/vxlan/remote-vtep{ "vni": 500, "ip": "1.1.1.1"}Create a VxLAN map.
Section titled “Create a VxLAN map.”POST HTTPS://{switch IP}/rest/v1/running/vxlan/map{ "vni": 999, "vtep-id": 6, "map-type": "l3", "vrf": "default"}Properties Descriptions
Section titled “Properties Descriptions”VxLAN global
Section titled “VxLAN global”Tree Diagrams
+--rw vxlan +--rw udp-port? +--rw centralized-gateway?Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| vxlan | M | Path-only node, has no configurable value. | |
| Configuration for the VxLAN | |||
| udp-port | O | 1..65535 | (sub-property of vxlan) |
| The port used to encapsulate VxLAN packets | |||
| Default value: 4789 | |||
| centralized-gateway | O | ”true" | |
| "false” | (sub-property of vxlan) | ||
| Configure VxLAN mode centralized | |||
| Default value: “false” |
VxLAN local vteps
Section titled “VxLAN local vteps”Tree Diagrams
+--rw vxlan +--rw local-vtep* [id] | +--rw id | +--rw ipTable of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| vxlan | M | Path-only node, has no configurable value. | |
| Configuration for the VxLAN | |||
| local-vtep | M | (sub-property of vxlan) | |
| Path-only node, has no configurable value. | |||
| List of Multi-vtep that is supported for VxLAN on some platforms | |||
| id | M | 0..9 | (sub-property of local-vtep) |
| ID of local VTEP | |||
| ip | M | A.B.C.D | (sub-property of local-vtep) |
| Local IP of tunnel |
VxLAN remote vteps
Section titled “VxLAN remote vteps”Tree Diagrams
+--rw vxlan +--rw remote-vtep* [vni ip] | +--rw vni | +--rw ip | +--rw router-mac? | +--ro local-vtep-id?Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| vxlan | M | Path-only node, has no configurable value. | |
| Configuration for the VxLAN | |||
| remote-vtep | M | (sub-property of vxlan) | |
| Path-only node, has no configurable value. | |||
| List of static L2 VxLAN tunnel | |||
| vni | M | 1..16777215 | (sub-property of remote-vtep) |
| VNI of l2 VxLAN tunnel | |||
| ip | M | A.B.C.D | (sub-property of remote-vtep) |
| Remote VTEP IP | |||
| router-mac | O | A:B:C:D:E:F | (sub-property of remote-vtep) |
| Router-mac of remote VTEP | |||
| local-vtep-id | RO | 0..9 | (sub-property of remote-vtep) |
| Leaf that help to config | |||
| Default value: 0 |
VxLAN maps
Section titled “VxLAN maps”Tree Diagrams
+--rw vxlan +--rw map* [vni] +--rw vni +--rw vtep-id? +--rw map-type +--rw vlan-id +--rw vrfTable of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| vxlan | M | Path-only node, has no configurable value. | |
| Configuration for the VxLAN | |||
| map | M | (sub-property of vxlan) | |
| Path-only node, has no configurable value. | |||
| List of VxLAN map | |||
| vni | M | 1..16777215 | (sub-property of map) |
| VNI of VxLAN map | |||
| vtep-id | O | 0..9 | (sub-property of map) |
| ID of the VxLAN tunnel | |||
| Default value: 0 | |||
| map-type | M | ”l2" | |
| "l3” | (sub-property of map) | ||
| VxLAN map type choice | |||
| vlan-id | CM | 1..4094 | (sub-property of map) |
| Only applicable when map-type = “l2”. | |||
| VLAN id of l2 map | |||
| vrf | CM | ”default” | |
| vrf name | (sub-property of map) | ||
| Only applicable when map-type =“l3”. | |||
| VRF name of l3 map |
Show-vxlan-tunnel
Section titled “Show-vxlan-tunnel”Tree Diagrams
+---x show-vxlan-tunnel | +--ro output | +--ro tunnel* [remote-ip vni] | +--ro remote-ip | +--ro vni | +--ro vlan-or-vrf?Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| show-vxlan-tunnel | M | Path-only node, has no configurable value. | |
| Show VxLAN tunnel | |||
| tunnel | RO | (sub-property of output) | |
| Path-only node, has no configurable value. | |||
| List of established VxLAN tunnels | |||
| remote-ip | RO | A.B.C.D | (sub-property of tunnel) |
| IP address of remote VTEP | |||
| vni | RO | 1..16777215 | (sub-property of tunnel) |
| VNI of tunnel | |||
| vlan-or-vrf | RO | 1..4094 | |
| ”default” | |||
| vrf name” | (sub-property of tunnel) | ||
| VLAN or VRF mapped to the VNI |
Show-vxlan-remotemac
Section titled “Show-vxlan-remotemac”Tree Diagrams
+---x show-vxlan-remotemac +---w input | +---w ip? +--ro output +--ro fdb* [vlan-id mac] +--ro vlan-id +--ro mac +--ro vni? +--ro remote-ip* +--ro type?Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| show-vxlan-remotemac | M | Path-only node, has no configurable value. | |
| Show VxLAN remotemac | |||
| ip | O | A.B.C.D | (sub-property of input) |
| Display VxLAN remotemac of specific remote ip or remotemac of all | |||
| fdb | RO | (sub-property of output) | |
| Path-only node, has no configurable value. | |||
| List of fdb entry learned from VxLAN tunnel | |||
| vlan-id | RO | 1..4094 | (sub-property of fdb) |
| VLAN ID | |||
| mac | RO | A:B:C:D:E:F | (sub-property of fdb) |
| MAC address | |||
| vni | RO | 1..16777215 | (sub-property of fdb) |
| VNI of the VxLAN tunnel | |||
| remote-ip | RO | A.B.C.D | (sub-property of fdb) |
| IP address of remote VTEP | |||
| type | RO | ”static" | |
| "dynamic” | (sub-property of fdb) | ||
| Type of fdb |