Fix Errors in VTN Overview Page Examples 51/13951/1
authorgvrangan <venkatrangang@hcl.com>
Wed, 7 Jan 2015 01:35:31 +0000 (10:35 +0900)
committergvrangan <venkatrangang@hcl.com>
Wed, 7 Jan 2015 01:35:31 +0000 (10:35 +0900)
Change-Id: I1eb8ae771ece96444219784eefd380338dcd0acd
Signed-off-by: gvrangan <venkatrangang@hcl.com>
manuals/user-guide/src/main/asciidoc/addons/vtn/VTN_Overview.adoc

index 416d2e73b386586022e8d841704e4176424c73ca..c78aa1adb503c544b039520349f63d3e10c867db 100644 (file)
@@ -279,27 +279,26 @@ The following is an example of the usage to connect the terminal to the network.
 * Create VTN
 [source,perl]
 ----
-   curl -X POST -H 'content-type: application/json' -H 'username: admin' -H 'password: PASSWORD' -H 'ipaddr: 127.0.0.1' \
+   curl --user admin:adminpass -X POST -H 'content-type: application/json'  \
   -d '{"vtn":{"vtn_name":"VTN1"}}' http://172.1.0.1:8080/vtn-webapi/vtns.json
 ----
 * Create Controller Information
 [source,perl]
 ----
-   curl -X POST -H 'content-type: application/json' -H 'username: admin' -H 'password: PASSWORD' -H 'ipaddr: 127.0.0.1' \
-  -d '{"controller": {"controller_id":"CONTROLLER1","ipaddr":"172.1.0.1","type":"pfc","username":"root", \
-  "password":"PASSWORD","version":"5.0"}}' http://172.1.0.1:8080/vtn-webapi/controllers.json
+   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:8080/vtn-webapi/controllers.json
 ----
 * Create vBridge under VTN
 [source,perl]
 ----
-  curl -X POST -H 'content-type: application/json' -H 'username: admin' -H 'password: PASSOWRD' -H 'ipaddr: 127.0.0.1' \
+  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:8080/vtn-webapi/vtns/VTN1/vbridges.json
 ----
 * Create the interface to connect the terminal under vBridge
 [source,perl]
 ----
-  curl -X POST -H 'content-type: application/json' -H 'username: admin' -H 'password: PASSWORD' -H 'ipaddr: 127.0.0.1' \
+  curl --user admin:adminpass -X POST -H 'content-type: application/json' \
   -d '{"interface":{"if_name":"IF1"}}' http://172.1.0.1:8080/vtn-webapi/vtns/VTN1/vbridges/VBR1/interfaces.json
 ----
-