-
View VTNs:
curl --user "admin":"abc123" -H "Accept: application/json" -H
"Content-type: application/json" -X GET
http://<OneController-ip>:8080/controller/nb/v2/vtn/default/vtns | python -mjson.tool
Viewing VTNs
-
View vBridge:
curl --user "admin":"abc123" -H "Accept: application/json" -H
"Content-type: application/json" -X GET
http:// <OneController-ip>:8080/controller/nb/v2/vtn/default/vtns/
<your-vtn-string-here>/vbridges | python -mjson.tool
Viewing vBridge
-
View vInterface:
curl --user "admin":"abc123" -H "Accept: application/json" -H
"Content-type: application/json" -X GET
http:// <OneController-ip>:8080/controller/nb/v2/vtn/default/vtns/
<your-vtn-string-here>/vbridges/<you-bridge-name-here>/interfaces | python -mjson.tool
Viewing vInterface
-
View port maps:
curl --user "admin":"abc123" -H "Accept: application/json" -H
"Content-type: application/json" -X GET
http:// <OneController-ip>:8080/controller/nb/v2/vtn/default/vtns/
<your- vtn -string-here>/vbridges/<you-bridge-name-here>/interfaces/<you-vinterface1-name-here>/portmap | python -mjson.tool
Viewing Port Map IF1
curl --user "admin":"abc123" -H "Accept: application/json" -H
"Content-type: application/json" -X GET
http:// <OneController-ip>:8080/controller/nb/v2/vtn/default/vtns/
<your- vtn -string-here>/vbridges/<you-bridge-name-here>/interfaces/<you-vinterface2-name-here>/portmap | python -mjson.tool
Viewing Port Map IF2
-
Put port map:
curl --user "admin":"abc123" -H "Accept: application/json" -H
"Content-type: application/json" -X PUT
http:// <OneController-ip>:8080/controller/nb/v2/vtn/default/vtns/
<your- vtn -string-here>/vbridges/<you-bridge-name-here>/interfaces/
<you-vinterface1-name-here>/portmap -d '{"vlan": "<vlan-number>",
"node": {"type": "OF", "id": "00:00:<switch-mac-address-here>"}, "port":
{"name": "<port-number>"}}'
Put Port Map IF1
curl --user "admin":"abc123" -H "Accept: application/json" -H
"Content-type: application/json" -X PUT
http:// <OneController-ip>:8080/controller/nb/v2/vtn/default/vtns/
<your- vtn -string-here>/vbridges/<you-bridge-name-here>/interfaces/
<you-vinterface2-name-here>/portmap -d '{"vlan": "<vlan-number>",
"node": {"type": "OF", "id": "00:00: <switch-mac-address-here>"},
"port": {"name": "<port-number>"}}'
Put Port Map IF2
-
Delete port map:
curl --user "admin":"abc123" -H "Accept: application/json" -H
"Content-type: application/json" -X DELETE
http:// <OneController-ip>:8080/controller/nb/v2/vtn/default/vtns/
<your- vtn -string-here>/vbridges/<you-bridge-name-here>/interfaces/
<you-vinterface1-name-here>/portmap
Delete Port Map IF1
curl --user "admin":"abc123" -H "Accept: application/json" -H
"Content-type: application/json" -X DELETE
http:// <OneController-ip>:8080/controller/nb/v2/vtn/default/vtns/
<your- vtn -string-here>/vbridges/<you-bridge-name-here>/interfaces/
<you-vinterface2-name-here>/portmap
Delete Port Map IF2