networkstatic

Random OVSDB Notes

Sep 29th, 2013
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 23.59 KB | None | 0 0
  1.  
  2. In mininet http://goo.gl/a9CzeH . Stop the install so you can see JSON calls to STDOUT.
  3.  
  4. /etc/init.d/openvswitch-switch stop
  5.  
  6. ovsdb-server /var/lib/openvswitch/conf.db -v --remote=ptcp:6632:172.16.58.131 --remote=db:Open_vSwitch,manager_options
  7.  
  8. Verify is works using 172.16.58.131 == IP of mininet:
  9. ovs-vsctl -vjsonrpc  --db=tcp:172.16.58.131:6632 add-br br0
  10.  
  11. Next try the ovsdb client. Here u are crafting JSON requests by hand:
  12. ovsdb-client -v transact  tcp:172.16.58.131:6632  '["Open_vSwitch",{"uuid-name":"paci1faced","op":"insert","row":{"name":"paci1face","type":"internal"},"table":"Interface"},{"uuid-name":"paci1portd","op":"insert","row":{"name":"paci1port","interfaces":["named-uuid","paci1faced"]},"table":"Port"},{"op":"insert","row":{"ports":["named-uuid","paci1portd"],"name":"paci1br"},"table":"Bridge"},{"op":"mutate","table":"Open_vSwitch","where":[],"mutations":[["next_cfg","+=",1]]},{"op":"commit","durable":true}]'
  13.  
  14.  
  15. next do
  16.  
  17. ovs-vsctl -vjsonrpc  --db=tcp:172.16.58.131:6632 show
  18.  
  19. Look at how the monitor hangs onto the channel. That will now send updates.
  20.  
  21.  
  22. =================== Random notes ==========================
  23.  
  24.  
  25. ovs-vsctl -vjsonrpc  --db=tcp:172.16.58.128:6634 set port vif0 external-ids:key1=foo
  26.  
  27. ovs-vsctl -vjsonrpc  --db=tcp:172.16.58.131:6634 add-br br0
  28. ovs-vsctl -vjsonrpc  --db=tcp:172.16.58.131:6634 add-port br0 vif0
  29.  
  30. ovs-vsctl -vjsonrpc  --db=tcp:172.16.58.131:6634 set port vif0 external-ids:key1=foo
  31.  
  32. ovsdb-server /var/lib/openvswitch/conf.db -vANY:CONSOLE:EMER -vANY:SYSLOG:ERR -vANY:FILE:INFO --remote=punix:/var/run/openvswitch/db.sock --remote=db:Open_vSwitch,manager_options --private-key=db:SSL,private_key --certificate=db:SSL,certificate --bootstrap-ca-cert=db:SSL,ca_cert --no-chdir --log-file=/var/log/openvswitch/ovsdb-server.log --pidfile=/var/run/openvswitch/ovsdb-server.pid --detach --monitor
  33.  
  34.  
  35.  
  36.                                                                                                                                                                                                
  37. ovs-vswitchd unix:/var/run/openvswitch/db.sock -vANY:CONSOLE:EMER -vANY:SYSLOG:ERR -vANY:FILE:INFO --mlockall --no-chdir --log-file=/var/log/openvswitch/ovs-vswitchd.log --pidfile=/var/run/openvswitch/ovs-vswitchd.pid --detach --monitor
  38.  
  39. ovsdb-server /var/lib/openvswitch/conf.db -v --remote=ptcp:6634:192.168.1.165 --remote=db:Open_vSwitch,manager_options
  40.  
  41.  
  42. ovsdb-server -v /usr/local/etc/openvswitch/conf.db --remote=ptcp:6634:192.168.1.165 --remote=db:Open_vSwitch,manager_options
  43.  
  44. ovsdb-server /var/lib/openvswitch/conf.db -v --remote=ptcp:6634:192.168.1.165 --remote=db:Open_vSwitch,manager_options
  45.  
  46.  
  47. ovs-vsctl --db=tcp:192.168.1.165:6634 show
  48.  
  49.  
  50. root@mininet-vm:~# ovs-vsctl --db=tcp:192.168.1.165:6634 list-br
  51. root@mininet-vm:~# ovs-vsctl --db=tcp:192.168.1.165:6634 list-br
  52. root@mininet-vm:~# ovs-vsctl --db=tcp:192.168.1.165:6634 show
  53.  
  54. ovsdb-server -v /var/lib/openvswitch/conf.db  --remote=ptcp:6634:172.16.58.131 --remote=db:Open_vSwitch,manager_options
  55.  
  56. "ovs-vsctl set-manager" <- remote management
  57.  
  58.  
  59. rm -rf /var/lib/openvswitch/conf.db
  60. ovsdb-tool create /var/lib/openvswitch/conf.db /usr/share/openvswitch/vswitch.ovsschema
  61.  
  62.  
  63.  ovs-vsctl -vjsonrpc --db=tcp:192.168.1.165:6634  show
  64.  
  65. ovsdb-client dump tcp:172.16.58.170:6634
  66.  
  67.  
  68. ovs-vsctl -vjsonrpc --no-wait  --db=tcp:172.16.58.170:6634 add-port br0 delMEport
  69.  
  70.   ovs-vsctl set Bridge br0 external-ids:bridge-id='"${UUID}"'
  71.  
  72.  
  73. ovsdb-client -v transact  tcp:172.16.58.170:6634  '["Open_vSwitch",{"uuid-name":"paci1faced","op":"insert","row":{"name":"paci1face","type":"internal"},"table":"Interface"},{"uuid-name":"paci1portd","op":"insert","row":{"name":"paci1port","interfaces":["named-uuid","paci1faced"]},"table":"Port"},{"op":"insert","row":{"ports":["named-uuid","paci1portd"],"name":"paci1br"},"table":"Bridge"},{"op":"mutate","table":"Open_vSwitch","where":[],"mutations":[["next_cfg","+=",1]]},{"op":"commit","durable":true}]'
  74.  
  75.  
  76. GRE
  77.  
  78. ovsdb-client -v transact  tcp:172.16.58.170:6634  '["Open_vSwitch", {"op":"insert","table":"Interface","row":{"type":"gre","options":["map",[["remote_ip","192.168.1.165"],["csum","true"],["key","1"]]],"external_ids":["map",[["uuid-name"],["port_test","port_descrip"]]],"ingress_policing_rate":45,"name":"gre1"},"uuid-name":"new-iface"}]'
  79.  
  80.  
  81.  
  82. ovsdb-client -v transact  tcp:172.16.58.170:6634  '["Open_vSwitch", {"op":"insert","table":"Interface","row":{"type":"gre","options":["map",[["remote_ip","192.168.1.165"],["csum","true"],["key","1"]]],"external_ids":["map",[["uuid-name","11111111-1111-1111-1111-111111111112"],["port_test","port_descrip"]]],"ingress_policing_rate":45,"name":"gre1"},"uuid-name":"new-iface"}]'
  83.  
  84.  
  85. =====================
  86. del-port from OVS clone1
  87.  
  88.  ovsdb-client -v transact  tcp:172.16.58.128:6632 '["Open_vSwitch",{"table":"Bridge","where":[["_uuid","==",["uuid","3732d17d-339f-4f9d-a553-4396e1158df7"]]],"op":"update","row":{"ports":["set",[["uuid","7c1b9f41-8222-4c78-ad90-244e1a66baac"],["uuid","d97ecd2f-a0f9-495d-8637-e0849f7de291"]]]}}]'
  89.  
  90. =========================
  91.  
  92.  ovsdb-client -v transact  tcp:172.16.58.128:6632 '["Open_vSwitch",{"table":"Bridge","where":[["_uuid","==",["uuid","3732d17d-339f-4f9d-a553-4396e1158df7"]]],"op":"update","row":{"ports":["set",[["uuid","7c1b9f41-8222-4c78-ad90-244e1a66baac"],["uuid","d97ecd2f-a0f9-495d-8637-e0849f7de291"]]]}}]'
  93.  
  94.  
  95. 181a8348-5a0b-4e34-bc7a-786901c61493 == Tap2
  96. ==============================
  97. del-port from OVS clone2
  98.  
  99.  
  100. {"table":"Bridge","where":[["_uuid","==",["uuid","3732d17d-339f-4f9d-a553-4396e1158df7"]]],"op":"update","row":{"ports":["set",[["uuid","7c1b9f41-8222-4c78-ad90-244e1a66baac"],["uuid","d97ecd2f-a0f9-495d-8637-e0849f7de291"]]]}},
  101.  
  102.  
  103. ===============
  104. del-port from OVS tap2 original
  105.  
  106. ["Open_vSwitch",{"rows":[{"interfaces":["uuid","9d7fa627-8b92-4665-86a1-80a2ca023ba5"]}],"until":"==","table":"Port","op":"wait","timeout":0,"where":[["_uuid","==",["uuid","c97779e9-331d-4da2-9d0b-f539dc7e1cdd"]]],"columns":["interfaces"]},
  107.  
  108. {"rows":[{"interfaces":["uuid","eb43c2ae-0e49-4ac1-b249-18d493f11422"]}],"until":"==","table":"Port","op":"wait","timeout":0,"where":[["_uuid","==",["uuid","7c1b9f41-8222-4c78-ad90-244e1a66baac"]]],"columns":["interfaces"]},
  109.  
  110. {"rows":[{"ports":["set",[["uuid","7c1b9f41-8222-4c78-ad90-244e1a66baac"],["uuid","c97779e9-331d-4da2-9d0b-f539dc7e1cdd"],["uuid","d97ecd2f-a0f9-495d-8637-e0849f7de291"]]]}],"until":"==","table":"Bridge","op":"wait","timeout":0,"where":[["_uuid","==",["uuid","3732d17d-339f-4f9d-a553-4396e1158df7"]]],"columns":["ports"]},
  111.  
  112. {"rows":[{"bridges":["set",[["uuid","3732d17d-339f-4f9d-a553-4396e1158df7"],["uuid","be7403fe-e124-4c29-931b-139cf060d021"]]]}],"until":"==","table":"Open_vSwitch","op":"wait","timeout":0,"where":[["_uuid","==",["uuid","2cfdf9dd-e2a3-46b9-b09d-fbc68f23bc5d"]]],"columns":["bridges"]},
  113.  
  114. {"rows":[{"ports":["uuid","7eb5508f-b2d9-4343-b7f3-b109bcd0ae86"]}],"until":"==","table":"Bridge","op":"wait","timeout":0,"where":[["_uuid","==",["uuid","be7403fe-e124-4c29-931b-139cf060d021"]]],"columns":["ports"]},
  115.  
  116. {"rows":[{"interfaces":["uuid","79b2d0ba-9ead-4149-9e4c-428dd14dc987"]}],"until":"==","table":"Port","op":"wait","timeout":0,"where":[["_uuid","==",["uuid","7eb5508f-b2d9-4343-b7f3-b109bcd0ae86"]]],"columns":["interfaces"]},
  117.  
  118. {"rows":[{"interfaces":["uuid","f3b84c90-a85b-4d97-9ddd-cd710a5490ce"]}],"until":"==","table":"Port","op":"wait","timeout":0,"where":[["_uuid","==",["uuid","d97ecd2f-a0f9-495d-8637-e0849f7de291"]]],"columns":["interfaces"]},
  119.  
  120. {"table":"Bridge","where":[["_uuid","==",["uuid","3732d17d-339f-4f9d-a553-4396e1158df7"]]],"op":"update","row":{"ports":["set",[["uuid","7c1b9f41-8222-4c78-ad90-244e1a66baac"],["uuid","d97ecd2f-a0f9-495d-8637-e0849f7de291"]]]}},
  121.  
  122. {"mutations":[["next_cfg","+=",1]],"table":"Open_vSwitch","op":"mutate","where":[["_uuid","==",["uuid","2cfdf9dd-e2a3-46b9-b09d-fbc68f23bc5d"]]]},
  123.  
  124. {"table":"Open_vSwitch","where":[["_uuid","==",["uuid","2cfdf9dd-e2a3-46b9-b09d-fbc68f23bc5d"]]],"op":"select","columns":["next_cfg"]},
  125.  
  126. {"comment":"ovs-vsctl: ovs-vsctl -vjsonrpc --db=tcp:172.16.58.128:6634 del-port br0 tap2","op":"comment"}]
  127.  
  128. =========
  129. Add-Br from Code
  130.  
  131.  
  132. ["Open_vSwitch",{"mutations":[["bridges","insert",["named-uuid","new_bridge"]]],"where":[["_uuid","==",["uuid","2cfdf9dd-e2a3-46b9-b09d-fbc68f23bc5d"]]],"op":"mutate","table":"Open_vSwitch"},{"uuid-name":"new_interface","op":"insert","table":"Interface","row":{"name":"JUNIT_BRIDGE_TEST","type":"internal"}},{"uuid-name":"new_port","op":"insert","table":"Port","row":{"name":"JUNIT_BRIDGE_TEST","interfaces":["named-uuid","new_interface"]}},{"uuid-name":"new_bridge","op":"insert","table":"Bridge","row":{"ports":["named-uuid","new_port"],"name":"JUNIT_BRIDGE_TEST"}}]
  133.  
  134. ======
  135. Add-Port from Code
  136.  
  137. ["Open_vSwitch",{"mutations":[["ports","insert",["named-uuid","new_port"]]],"where":[["_uuid","==",["uuid","be7403fe-e124-4c29-931b-139cf060d021"]]],"op":"mutate","table":"Bridge"},{"uuid-name":"new_interface","op":"insert","table":"Interface","row":{"name":"Jvif0"}},{"uuid-name":"new_port","op":"insert","table":"Port","row":{"name":"Jvif0","interfaces":["named-uuid","new_interface"]}}]
  138.  
  139. ======
  140.  
  141. Test Del-Port
  142.  
  143. ["Open_vSwitch",{"mutations":[["ports","insert",["named-uuid","new_port"]]],"where":[["_uuid","==",["uuid","be7403fe-e124-4c29-931b-139cf060d021"]]],"op":"mutate","table":"Bridge"},{"uuid-name":"new_interface","op":"insert","table":"Interface","row":{"name":"Jvif0"}},{"uuid-name":"new_port","op":"insert","table":"Port","row":{"name":"Jvif0","interfaces":["named-uuid","new_interface"]}}]
  144.  
  145.  
  146. ======
  147.  
  148. del-port from OVS new
  149.  
  150. ["Open_vSwitch",{"rows":[{"interfaces":["uuid","eb43c2ae-0e49-4ac1-b249-18d493f11422"]}],"until":"==","table":"Port","op":"wait","timeout":0,"where":[["_uuid","==",["uuid","7c1b9f41-8222-4c78-ad90-244e1a66baac"]]],"columns":["interfaces"]},
  151.  
  152. {"rows":[{"interfaces":["uuid","b9b34c17-cd7f-4f8e-ab96-8346f59954b7"]}],"until":"==","table":"Port","op":"wait","timeout":0,"where":[["_uuid","==",["uuid","2bafdd2c-3c15-4977-b0ef-d2c15e2af446"]]],"columns":["interfaces"]},
  153.  
  154. {"rows":[{"ports":["set",[["uuid","7c1b9f41-8222-4c78-ad90-244e1a66baac"],["uuid","d97ecd2f-a0f9-495d-8637-e0849f7de291"]]]}],"until":"==","table":"Bridge","op":"wait","timeout":0,"where":[["_uuid","==",["uuid","3732d17d-339f-4f9d-a553-4396e1158df7"]]],"columns":["ports"]},
  155.  
  156. {"rows":[{"bridges":["set",[["uuid","3732d17d-339f-4f9d-a553-4396e1158df7"],["uuid","be7403fe-e124-4c29-931b-139cf060d021"]]]}],"until":"==","table":"Open_vSwitch","op":"wait","timeout":0,"where":[["_uuid","==",["uuid","2cfdf9dd-e2a3-46b9-b09d-fbc68f23bc5d"]]],"columns":["bridges"]},
  157.  
  158. {"rows":[{"ports":["set",[["uuid","2bafdd2c-3c15-4977-b0ef-d2c15e2af446"],["uuid","7eb5508f-b2d9-4343-b7f3-b109bcd0ae86"]]]}],"until":"==","table":"Bridge","op":"wait","timeout":0,"where":[["_uuid","==",["uuid","be7403fe-e124-4c29-931b-139cf060d021"]]],"columns":["ports"]},
  159.  
  160. {"rows":[{"interfaces":["uuid","79b2d0ba-9ead-4149-9e4c-428dd14dc987"]}],"until":"==","table":"Port","op":"wait","timeout":0,"where":[["_uuid","==",["uuid","7eb5508f-b2d9-4343-b7f3-b109bcd0ae86"]]],"columns":["interfaces"]},
  161.  
  162. {"rows":[{"interfaces":["uuid","f3b84c90-a85b-4d97-9ddd-cd710a5490ce"]}],"until":"==","table":"Port","op":"wait","timeout":0,"where":[["_uuid","==",["uuid","d97ecd2f-a0f9-495d-8637-e0849f7de291"]]],"columns":["interfaces"]},
  163.  
  164. {"table":"Bridge","where":[["_uuid","==",["uuid","be7403fe-e124-4c29-931b-139cf060d021"]]],"op":"update","row":{"ports":["uuid","7eb5508f-b2d9-4343-b7f3-b109bcd0ae86"]}},
  165.  
  166. {"mutations":[["next_cfg","+=",1]],"table":"Open_vSwitch","op":"mutate","where":[["_uuid","==",["uuid","2cfdf9dd-e2a3-46b9-b09d-fbc68f23bc5d"]]]},
  167.  
  168. {"table":"Open_vSwitch","where":[["_uuid","==",["uuid","2cfdf9dd-e2a3-46b9-b09d-fbc68f23bc5d"]]],"op":"select","columns":["next_cfg"]},
  169.  
  170. {"comment":"ovs-vsctl: ovs-vsctl -vjsonrpc --db=tcp:172.16.58.128:6634 del-port JUNIT_BRIDGE_TEST Jvif0","op":"comment"}], id=1
  171.  
  172.  
  173. ==========
  174. Parsed Del Rule Port
  175.  
  176. {"table":"Bridge","where":[["_uuid","==",["uuid","be7403fe-e124-4c29-931b-139cf060d021"]]],"op":"update","row":{"ports":["uuid","7eb5508f-b2d9-4343-b7f3-b109bcd0ae86"]}},
  177.  
  178. ===========
  179. Parsed Del Rule Port
  180.  
  181. {"table":"Bridge","where":[["_uuid","==",["uuid","be7403fe-e124-4c29-931b-139cf060d021"]]],"op":"update","row":{"ports":["uuid","7eb5508f-b2d9-4343-b7f3-b109bcd0ae86"]}}
  182.  
  183. del this
  184. c4737b79-c467-4f06-9453-e861bf72d806
  185.  
  186.  
  187.  
  188. ===========
  189. Monitor Bridge From Code
  190.  
  191. method="monitor", params=["Open_vSwitch",null,{"Bridge":{"columns":["_uuid","name"]}}]
  192.                         ["Open_vSwitch",null,{"Port":[{"columns":["_uuid"]},{"columns":["name"]}]}], id=2
  193.  
  194.                   nparams=["Open_vSwitch",null,{"Bridge":[{"columns":["_uuid"]},{"columns":["name"]}]}]
  195. , id="7074"
  196. Aug 02 05:51:18|00119|jsonrpc|DBG|tcp:172.16.58.1:60694: send reply, result={"Bridge":{"3732d17d-339f-4f9d-a553-4396e1158df7":{"new":{"_uuid":["uuid","3732d17d-339f-4f9d-a553-4396e1158df7"],"name":"br0"}},"be7403fe-e124-4c29-931b-139cf060d021":{"new":{"_uuid":["uuid","be7403fe-e124-4c29-931b-139cf060d021"],"name":"JUNIT_BRIDGE_TEST"}}}}, id="7074"
  197.  
  198. ++++++++++++++++++++++++++++++++++
  199. Monitor Bridge from ovsdb-client
  200. +++++++++++++++
  201. ovsdb-client  -vjsonrpc  monitor  tcp:172.16.58.128:6634 Open_vSwitch Port name
  202. +++++++++++++++
  203. Return
  204. +++++++++++++++++
  205. method="monitor", params=["Open_vSwitch",null,{"Bridge":[{"columns":["name"]}]}], id=2
  206.  
  207.  
  208. ovsdb-client  -vjsonrpc  monitor  tcp:172.16.58.128:6634 Open_vSwitch Bridge _uuid
  209.  
  210. send request, method="monitor", params=["Open_vSwitch",null,{"Bridge":[{"columns":["_uuid"]}]}], id=2
  211.  
  212.  
  213. ======================
  214. Echo OVS command
  215. ===================
  216. send request, method="echo", params=[], id="echo"
  217.  
  218.  
  219. ============
  220. Test Monitor Port
  221.  
  222. Command
  223. +++++++++++
  224. ovsdb-client  -vjsonrpc  monitor  tcp:172.16.58.128:6634 Open_vSwitch Port name
  225.  
  226. JSON
  227. +++++++++++
  228. send request, method="monitor", params=["Open_vSwitch",null,{"Port":[{"columns":["name"]}]}], id=2
  229.  
  230. Result
  231. +++++++++++
  232. Aug 02 06:19:22|00005|jsonrpc|DBG|tcp:172.16.58.128:6634: send request, method="monitor", params=["Open_vSwitch",null,{"Port":[{"columns":["name"]}]}], id=2
  233. Aug 02 06:19:22|00006|jsonrpc|DBG|tcp:172.16.58.128:6634: received reply, result={"Port":{"d97ecd2f-a0f9-495d-8637-e0849f7de291":{"new":{"name":"br0"}},"7c1b9f41-8222-4c78-ad90-244e1a66baac":{"new":{"name":"tap1"}},"c4737b79-c467-4f06-9453-e861bf72d806":{"new":{"name":"Jvif1"}},"7eb5508f-b2d9-4343-b7f3-b109bcd0ae86":{"new":{"name":"JUNIT_BRIDGE_TEST"}}}}, id=2
  234. row                                  action  name            
  235. ------------------------------------ ------- -----------------
  236. d97ecd2f-a0f9-495d-8637-e0849f7de291 initial "br0"            
  237. 7c1b9f41-8222-4c78-ad90-244e1a66baac initial "tap1"          
  238. c4737b79-c467-4f06-9453-e861bf72d806 initial "Jvif1"          
  239. 7eb5508f-b2d9-4343-b7f3-b109bcd0ae86 initial JUNIT_BRIDGE_TEST
  240.  
  241.  
  242.  
  243.  
  244. =============
  245.  
  246. Bridge + Name + _UUID
  247. ========================
  248.  
  249. Aug 02 06:34:01|00005|jsonrpc|DBG|tcp:172.16.58.128:6634: send request, method="monitor", params=["Open_vSwitch",null,{"Bridge":[{"columns":["_uuid"]},{"columns":["name"]}]}], id=2
  250. Aug 02 06:34:01|00006|jsonrpc|DBG|tcp:172.16.58.128:6634: received reply, result={"Bridge":{"3732d17d-339f-4f9d-a553-4396e1158df7":{"new":{"_uuid":["uuid","3732d17d-339f-4f9d-a553-4396e1158df7"],"name":"br0"}},"be7403fe-e124-4c29-931b-139cf060d021":{"new":{"_uuid":["uuid","be7403fe-e124-4c29-931b-139cf060d021"],"name":"JUNIT_BRIDGE_TEST"}}}}, id=2
  251. row                                  action  _uuid                                name            
  252. ------------------------------------ ------- ------------------------------------ -----------------
  253. 3732d17d-339f-4f9d-a553-4396e1158df7 initial 3732d17d-339f-4f9d-a553-4396e1158df7 "br0"            
  254. be7403fe-e124-4c29-931b-139cf060d021 initial be7403fe-e124-4c29-931b-139cf060d021 JUNIT_BRIDGE_TEST
  255.  
  256.  
  257. =============
  258.  
  259. Bridge + Name + _UUID
  260. ========================
  261.  
  262.  
  263. Aug 02 06:34:52|00005|jsonrpc|DBG|tcp:172.16.58.128:6634: send request, method="monitor", params=["Open_vSwitch",null,{"Port":[{"columns":["_uuid"]},{"columns":["name"]}]}], id=2
  264.  
  265. Aug 02 06:34:52|00006|jsonrpc|DBG|tcp:172.16.58.128:6634: received reply, result={"Port":{"d97ecd2f-a0f9-495d-8637-e0849f7de291":{"new":{"_uuid":["uuid","d97ecd2f-a0f9-495d-8637-e0849f7de291"],"name":"br0"}},"7c1b9f41-8222-4c78-ad90-244e1a66baac":{"new":{"_uuid":["uuid","7c1b9f41-8222-4c78-ad90-244e1a66baac"],"name":"tap1"}},"c4737b79-c467-4f06-9453-e861bf72d806":{"new":{"_uuid":["uuid","c4737b79-c467-4f06-9453-e861bf72d806"],"name":"Jvif1"}},"7eb5508f-b2d9-4343-b7f3-b109bcd0ae86":{"new":{"_uuid":["uuid","7eb5508f-b2d9-4343-b7f3-b109bcd0ae86"],"name":"JUNIT_BRIDGE_TEST"}}}}, id=2
  266. row                                  action  _uuid                                name            
  267. ------------------------------------ ------- ------------------------------------ -----------------
  268. d97ecd2f-a0f9-495d-8637-e0849f7de291 initial d97ecd2f-a0f9-495d-8637-e0849f7de291 "br0"            
  269. 7c1b9f41-8222-4c78-ad90-244e1a66baac initial 7c1b9f41-8222-4c78-ad90-244e1a66baac "tap1"          
  270. c4737b79-c467-4f06-9453-e861bf72d806 initial c4737b79-c467-4f06-9453-e861bf72d806 "Jvif1"          
  271. 7eb5508f-b2d9-4343-b7f3-b109bcd0ae86 initial 7eb5508f-b2d9-4343-b7f3-b109bcd0ae86 JUNIT_BRIDGE_TEST
  272.  
  273. =========================
  274.  
  275.  
  276. List Interfaces on a connector
  277.  
  278. ["Open_vSwitch",null,{"Port":{"columns":["fake_bridge","interfaces","name","tag"]},"Controller":{"columns":[]},"Interface":{"columns":["name"]},"Open_vSwitch":{"columns":["bridges","cur_cfg"]},"Bridge":{"columns":["controller","fail_mode","name","ports"]}}]
  279.  
  280. ========= Raw Reply ==========
  281. {"Port":{"d97ecd2f-a0f9-495d-8637-e0849f7de291":{"new":{"interfaces":["uuid","f3b84c90-a85b-4d97-9ddd-cd710a5490ce"],"name":"br0","fake_bridge":false,"tag":["set",[]]}},"7c1b9f41-8222-4c78-ad90-244e1a66baac":{"new":{"interfaces":["uuid","eb43c2ae-0e49-4ac1-b249-18d493f11422"],"name":"tap1","fake_bridge":false,"tag":["set",[]]}},"c4737b79-c467-4f06-9453-e861bf72d806":{"new":{"interfaces":["uuid","89f1336a-d7e7-4f96-98ef-443a36610a65"],"name":"Jvif1","fake_bridge":false,"tag":["set",[]]}},"7eb5508f-b2d9-4343-b7f3-b109bcd0ae86":{"new":{"interfaces":["uuid","79b2d0ba-9ead-4149-9e4c-428dd14dc987"],"name":"JUNIT_BRIDGE_TEST","fake_bridge":false,"tag":["set",[]]}}},"Interface":{"f3b84c90-a85b-4d97-9ddd-cd710a5490ce":{"new":{"name":"br0"}},"eb43c2ae-0e49-4ac1-b249-18d493f11422":{"new":{"name":"tap1"}},"79b2d0ba-9ead-4149-9e4c-428dd14dc987":{"new":{"name":"JUNIT_BRIDGE_TEST"}},"89f1336a-d7e7-4f96-98ef-443a36610a65":{"new":{"name":"Jvif1"}}},"Open_vSwitch":{"2cfdf9dd-e2a3-46b9-b09d-fbc68f23bc5d":{"new":{"cur_cfg":301,"bridges":["set",[["uuid","3732d17d-339f-4f9d-a553-4396e1158df7"],["uuid","be7403fe-e124-4c29-931b-139cf060d021"]]]}}},"Bridge":{"3732d17d-339f-4f9d-a553-4396e1158df7":{"new":{"name":"br0","ports":["set",[["uuid","7c1b9f41-8222-4c78-ad90-244e1a66baac"],["uuid","d97ecd2f-a0f9-495d-8637-e0849f7de291"]]],"controller":["set",[]],"fail_mode":["set",[]]}},"be7403fe-e124-4c29-931b-139cf060d021":{"new":{"name":"JUNIT_BRIDGE_TEST","ports":["set",[["uuid","7eb5508f-b2d9-4343-b7f3-b109bcd0ae86"],["uuid","c4737b79-c467-4f06-9453-e861bf72d806"]]],"controller":["set",[]],"fail_mode":["set",[]]}}}}
  282.  
  283. ================== ovs-vsctl show raw ==========================
  284.  
  285. {"Port":{"d97ecd2f-a0f9-495d-8637-e0849f7de291":{"new":{"trunks":["set",[]],"interfaces":["uuid","f3b84c90-a85b-4d97-9ddd-cd710a5490ce"],"name":"br0","tag":["set",[]]}},"8be80f67-f27a-4822-8130-76aa43e8d292":{"new":{"trunks":["set",[]],"interfaces":["uuid","181a8348-5a0b-4e34-bc7a-786901c61493"],"name":"tap2","tag":["set",[]]}},"7c1b9f41-8222-4c78-ad90-244e1a66baac":{"new":{"trunks":["set",[]],"interfaces":["uuid","eb43c2ae-0e49-4ac1-b249-18d493f11422"],"name":"tap1","tag":["set",[]]}},"7eb5508f-b2d9-4343-b7f3-b109bcd0ae86":{"new":{"trunks":["set",[]],"interfaces":["uuid","79b2d0ba-9ead-4149-9e4c-428dd14dc987"],"name":"JUNIT_BRIDGE_TEST","tag":["set",[]]}},"303d6f72-340b-468e-8bb7-7e44f15b77af":{"new":{"trunks":["set",[]],"interfaces":["uuid","e63cbe6f-ec12-4972-9170-079097e85c3d"],"name":"tap3","tag":["set",[]]}}},"Interface":{"181a8348-5a0b-4e34-bc7a-786901c61493":{"new":{"name":"tap2","type":"","options":["map",[]]}},"f3b84c90-a85b-4d97-9ddd-cd710a5490ce":{"new":{"name":"br0","type":"internal","options":["map",[]]}},"e63cbe6f-ec12-4972-9170-079097e85c3d":{"new":{"name":"tap3","type":"","options":["map",[]]}},"eb43c2ae-0e49-4ac1-b249-18d493f11422":{"new":{"name":"tap1","type":"","options":["map",[]]}},"79b2d0ba-9ead-4149-9e4c-428dd14dc987":{"new":{"name":"JUNIT_BRIDGE_TEST","type":"internal","options":["map",[]]}}},"Open_vSwitch":{"2cfdf9dd-e2a3-46b9-b09d-fbc68f23bc5d":{"new":{"ovs_version":"1.4.3","cur_cfg":301,"bridges":["set",[["uuid","3732d17d-339f-4f9d-a553-4396e1158df7"],["uuid","be7403fe-e124-4c29-931b-139cf060d021"]]],"manager_options":["uuid","fc37548a-aa08-427f-bf8d-cd88d81ae099"]}}},"Bridge":{"3732d17d-339f-4f9d-a553-4396e1158df7":{"new":{"name":"br0","ports":["set",[["uuid","303d6f72-340b-468e-8bb7-7e44f15b77af"],["uuid","7c1b9f41-8222-4c78-ad90-244e1a66baac"],["uuid","8be80f67-f27a-4822-8130-76aa43e8d292"],["uuid","d97ecd2f-a0f9-495d-8637-e0849f7de291"]]],"controller":["set",[]],"fail_mode":["set",[]]}},"be7403fe-e124-4c29-931b-139cf060d021":{"new":{"name":"JUNIT_BRIDGE_TEST","ports":["uuid","7eb5508f-b2d9-4343-b7f3-b109bcd0ae86"],"controller":["set",[]],"fail_mode":["set",[]]}}},"Manager":{"fc37548a-aa08-427f-bf8d-cd88d81ae099":{"new":{"target":"ptcp:6634:172.16.58.128","is_connected":false}}}}
  286.  
  287. =================== ovs-vsctl show raw ==========================
  288.  
  289. {"Port":{"d97ecd2f-a0f9-495d-8637-e0849f7de291":{"new":{"trunks":["set",[]],"interfaces":["uuid","f3b84c90-a85b-4d97-9ddd-cd710a5490ce"],"name":"br0","tag":["set",[]]}},"8be80f67-f27a-4822-8130-76aa43e8d292":{"new":{"trunks":["set",[]],"interfaces":["uuid","181a8348-5a0b-4e34-bc7a-786901c61493"],"name":"tap2","tag":["set",[]]}},"7c1b9f41-8222-4c78-ad90-244e1a66baac":{"new":{"trunks":["set",[]],"interfaces":["uuid","eb43c2ae-0e49-4ac1-b249-18d493f11422"],"name":"tap1","tag":["set",[]]}},"7eb5508f-b2d9-4343-b7f3-b109bcd0ae86":{"new":{"trunks":["set",[]],"interfaces":["uuid","79b2d0ba-9ead-4149-9e4c-428dd14dc987"],"name":"JUNIT_BRIDGE_TEST","tag":["set",[]]}},"303d6f72-340b-468e-8bb7-7e44f15b77af":{"new":{"trunks":["set",[]],"interfaces":["uuid","e63cbe6f-ec12-4972-9170-079097e85c3d"],"name":"tap3","tag":["set",[]]}}},"Interface":{"181a8348-5a0b-4e34-bc7a-786901c61493":{"new":{"name":"tap2","type":"","options":["map",[]]}},"f3b84c90-a85b-4d97-9ddd-cd710a5490ce":{"new":{"name":"br0","type":"internal","options":["map",[]]}},"e63cbe6f-ec12-4972-9170-079097e85c3d":{"new":{"name":"tap3","type":"","options":["map",[]]}},"eb43c2ae-0e49-4ac1-b249-18d493f11422":{"new":{"name":"tap1","type":"","options":["map",[]]}},"79b2d0ba-9ead-4149-9e4c-428dd14dc987":{"new":{"name":"JUNIT_BRIDGE_TEST","type":"internal","options":["map",[]]}}},"Open_vSwitch":{"2cfdf9dd-e2a3-46b9-b09d-fbc68f23bc5d":{"new":{"ovs_version":"1.4.3","cur_cfg":301,"bridges":["set",[["uuid","3732d17d-339f-4f9d-a553-4396e1158df7"],["uuid","be7403fe-e124-4c29-931b-139cf060d021"]]],"manager_options":["uuid","fc37548a-aa08-427f-bf8d-cd88d81ae099"]}}},"Bridge":{"3732d17d-339f-4f9d-a553-4396e1158df7":{"new":{"name":"br0","ports":["set",[["uuid","303d6f72-340b-468e-8bb7-7e44f15b77af"],["uuid","7c1b9f41-8222-4c78-ad90-244e1a66baac"],["uuid","8be80f67-f27a-4822-8130-76aa43e8d292"],["uuid","d97ecd2f-a0f9-495d-8637-e0849f7de291"]]],"controller":["set",[]],"fail_mode":["set",[]]}},"be7403fe-e124-4c29-931b-139cf060d021":{"new":{"name":"JUNIT_BRIDGE_TEST","ports":["uuid","7eb5508f-b2d9-4343-b7f3-b109bcd0ae86"],"controller":["set",[]],"fail_mode":["set",[]]}}},"Manager":{"fc37548a-aa08-427f-bf8d-cd88d81ae099":{"new":{"target":"ptcp:6634:172.16.58.128","is_connected":false}}}}
Advertisement
Add Comment
Please, Sign In to add comment