From aac3c091694b8e5d7eae667cb39d4ecc7089d9ba Mon Sep 17 00:00:00 2001 From: Hideyuki Tai Date: Fri, 26 Jun 2015 10:22:06 -0700 Subject: [PATCH] Updated example usage of VTN API. This patch fixed the TCP port number for the REST API of VTN Coordinator. In Lithium, the TCP port number is 8083. Change-Id: Id3d67da99aa12664e5bdfa28d02d1a389d5db95a Signed-off-by: Hideyuki Tai --- .../src/main/asciidoc/vtn/VTN_Overview.adoc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/manuals/user-guide/src/main/asciidoc/vtn/VTN_Overview.adoc b/manuals/user-guide/src/main/asciidoc/vtn/VTN_Overview.adoc index 71cb1c8f6..b1e211f5e 100644 --- a/manuals/user-guide/src/main/asciidoc/vtn/VTN_Overview.adoc +++ b/manuals/user-guide/src/main/asciidoc/vtn/VTN_Overview.adoc @@ -315,33 +315,33 @@ VTN provides following operations for various network resources. | No |=== -====== (Example) Connecting the terminal to virtual network +===== Example usage -The following is an example of the usage to connect the terminal to the network. +The following is an example of the usage to construct a virtual network. * Create VTN ---- curl --user admin:adminpass -X POST -H 'content-type: application/json' \ - -d '{"vtn":{"vtn_name":"VTN1"}}' http://172.1.0.1:8282/vtn-webapi/vtns.json + -d '{"vtn":{"vtn_name":"VTN1"}}' http://172.1.0.1:8083/vtn-webapi/vtns.json ---- * Create Controller Information ---- curl --user admin:adminpass -X POST -H 'content-type: application/json' \ -d '{"controller": {"controller_id":"CONTROLLER1","ipaddr":"172.1.0.1","type":"odc","username":"admin", \ - "password":"admin","version":"1.0"}}' http://172.1.0.1:8282/vtn-webapi/controllers.json + "password":"admin","version":"1.0"}}' http://172.1.0.1:8083/vtn-webapi/controllers.json ---- * Create vBridge under VTN ---- curl --user admin:adminpass -X POST -H 'content-type: application/json' \ -d '{"vbridge":{"vbr_name":"VBR1","controller_id": "CONTROLLER1","domain_id": "(DEFAULT)"}}' \ - http://172.1.0.1:8282/vtn-webapi/vtns/VTN1/vbridges.json + http://172.1.0.1:8083/vtn-webapi/vtns/VTN1/vbridges.json ---- -* Create the interface to connect the terminal under vBridge +* Create the interface under vBridge ---- curl --user admin:adminpass -X POST -H 'content-type: application/json' \ - -d '{"interface":{"if_name":"IF1"}}' http://172.1.0.1:8282/vtn-webapi/vtns/VTN1/vbridges/VBR1/interfaces.json + -d '{"interface":{"if_name":"IF1"}}' http://172.1.0.1:8083/vtn-webapi/vtns/VTN1/vbridges/VBR1/interfaces.json ---- -- 2.36.6