Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In mininet http://goo.gl/a9CzeH . Stop the install so you can see JSON calls to STDOUT.
- /etc/init.d/openvswitch-switch stop
- ovsdb-server /var/lib/openvswitch/conf.db -v --remote=ptcp:6632:172.16.58.131 --remote=db:Open_vSwitch,manager_options
- Verify is works using 172.16.58.131 == IP of mininet:
- ovs-vsctl -vjsonrpc --db=tcp:172.16.58.131:6632 add-br br0
- Next try the ovsdb client. Here u are crafting JSON requests by hand:
- 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}]'
- next do
- ovs-vsctl -vjsonrpc --db=tcp:172.16.58.131:6632 show
- Look at how the monitor hangs onto the channel. That will now send updates.
- =================== Random notes ==========================
- ovs-vsctl -vjsonrpc --db=tcp:172.16.58.128:6634 set port vif0 external-ids:key1=foo
- ovs-vsctl -vjsonrpc --db=tcp:172.16.58.131:6634 add-br br0
- ovs-vsctl -vjsonrpc --db=tcp:172.16.58.131:6634 add-port br0 vif0
- ovs-vsctl -vjsonrpc --db=tcp:172.16.58.131:6634 set port vif0 external-ids:key1=foo
- 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
- 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
- ovsdb-server /var/lib/openvswitch/conf.db -v --remote=ptcp:6634:192.168.1.165 --remote=db:Open_vSwitch,manager_options
- ovsdb-server -v /usr/local/etc/openvswitch/conf.db --remote=ptcp:6634:192.168.1.165 --remote=db:Open_vSwitch,manager_options
- ovsdb-server /var/lib/openvswitch/conf.db -v --remote=ptcp:6634:192.168.1.165 --remote=db:Open_vSwitch,manager_options
- ovs-vsctl --db=tcp:192.168.1.165:6634 show
- root@mininet-vm:~# ovs-vsctl --db=tcp:192.168.1.165:6634 list-br
- root@mininet-vm:~# ovs-vsctl --db=tcp:192.168.1.165:6634 list-br
- root@mininet-vm:~# ovs-vsctl --db=tcp:192.168.1.165:6634 show
- ovsdb-server -v /var/lib/openvswitch/conf.db --remote=ptcp:6634:172.16.58.131 --remote=db:Open_vSwitch,manager_options
- "ovs-vsctl set-manager" <- remote management
- rm -rf /var/lib/openvswitch/conf.db
- ovsdb-tool create /var/lib/openvswitch/conf.db /usr/share/openvswitch/vswitch.ovsschema
- ovs-vsctl -vjsonrpc --db=tcp:192.168.1.165:6634 show
- ovsdb-client dump tcp:172.16.58.170:6634
- ovs-vsctl -vjsonrpc --no-wait --db=tcp:172.16.58.170:6634 add-port br0 delMEport
- ovs-vsctl set Bridge br0 external-ids:bridge-id='"${UUID}"'
- 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}]'
- GRE
- 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"}]'
- 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"}]'
- =====================
- del-port from OVS clone1
- 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"]]]}}]'
- =========================
- 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"]]]}}]'
- 181a8348-5a0b-4e34-bc7a-786901c61493 == Tap2
- ==============================
- del-port from OVS clone2
- {"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"]]]}},
- ===============
- del-port from OVS tap2 original
- ["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"]},
- {"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"]},
- {"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"]},
- {"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"]},
- {"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"]},
- {"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"]},
- {"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"]},
- {"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"]]]}},
- {"mutations":[["next_cfg","+=",1]],"table":"Open_vSwitch","op":"mutate","where":[["_uuid","==",["uuid","2cfdf9dd-e2a3-46b9-b09d-fbc68f23bc5d"]]]},
- {"table":"Open_vSwitch","where":[["_uuid","==",["uuid","2cfdf9dd-e2a3-46b9-b09d-fbc68f23bc5d"]]],"op":"select","columns":["next_cfg"]},
- {"comment":"ovs-vsctl: ovs-vsctl -vjsonrpc --db=tcp:172.16.58.128:6634 del-port br0 tap2","op":"comment"}]
- =========
- Add-Br from Code
- ["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"}}]
- ======
- Add-Port from Code
- ["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"]}}]
- ======
- Test Del-Port
- ["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"]}}]
- ======
- del-port from OVS new
- ["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"]},
- {"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"]},
- {"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"]},
- {"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"]},
- {"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"]},
- {"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"]},
- {"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"]},
- {"table":"Bridge","where":[["_uuid","==",["uuid","be7403fe-e124-4c29-931b-139cf060d021"]]],"op":"update","row":{"ports":["uuid","7eb5508f-b2d9-4343-b7f3-b109bcd0ae86"]}},
- {"mutations":[["next_cfg","+=",1]],"table":"Open_vSwitch","op":"mutate","where":[["_uuid","==",["uuid","2cfdf9dd-e2a3-46b9-b09d-fbc68f23bc5d"]]]},
- {"table":"Open_vSwitch","where":[["_uuid","==",["uuid","2cfdf9dd-e2a3-46b9-b09d-fbc68f23bc5d"]]],"op":"select","columns":["next_cfg"]},
- {"comment":"ovs-vsctl: ovs-vsctl -vjsonrpc --db=tcp:172.16.58.128:6634 del-port JUNIT_BRIDGE_TEST Jvif0","op":"comment"}], id=1
- ==========
- Parsed Del Rule Port
- {"table":"Bridge","where":[["_uuid","==",["uuid","be7403fe-e124-4c29-931b-139cf060d021"]]],"op":"update","row":{"ports":["uuid","7eb5508f-b2d9-4343-b7f3-b109bcd0ae86"]}},
- ===========
- Parsed Del Rule Port
- {"table":"Bridge","where":[["_uuid","==",["uuid","be7403fe-e124-4c29-931b-139cf060d021"]]],"op":"update","row":{"ports":["uuid","7eb5508f-b2d9-4343-b7f3-b109bcd0ae86"]}}
- del this
- c4737b79-c467-4f06-9453-e861bf72d806
- ===========
- Monitor Bridge From Code
- method="monitor", params=["Open_vSwitch",null,{"Bridge":{"columns":["_uuid","name"]}}]
- ["Open_vSwitch",null,{"Port":[{"columns":["_uuid"]},{"columns":["name"]}]}], id=2
- nparams=["Open_vSwitch",null,{"Bridge":[{"columns":["_uuid"]},{"columns":["name"]}]}]
- , id="7074"
- 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"
- ++++++++++++++++++++++++++++++++++
- Monitor Bridge from ovsdb-client
- +++++++++++++++
- ovsdb-client -vjsonrpc monitor tcp:172.16.58.128:6634 Open_vSwitch Port name
- +++++++++++++++
- Return
- +++++++++++++++++
- method="monitor", params=["Open_vSwitch",null,{"Bridge":[{"columns":["name"]}]}], id=2
- ovsdb-client -vjsonrpc monitor tcp:172.16.58.128:6634 Open_vSwitch Bridge _uuid
- send request, method="monitor", params=["Open_vSwitch",null,{"Bridge":[{"columns":["_uuid"]}]}], id=2
- ======================
- Echo OVS command
- ===================
- send request, method="echo", params=[], id="echo"
- ============
- Test Monitor Port
- Command
- +++++++++++
- ovsdb-client -vjsonrpc monitor tcp:172.16.58.128:6634 Open_vSwitch Port name
- JSON
- +++++++++++
- send request, method="monitor", params=["Open_vSwitch",null,{"Port":[{"columns":["name"]}]}], id=2
- Result
- +++++++++++
- 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
- 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
- row action name
- ------------------------------------ ------- -----------------
- d97ecd2f-a0f9-495d-8637-e0849f7de291 initial "br0"
- 7c1b9f41-8222-4c78-ad90-244e1a66baac initial "tap1"
- c4737b79-c467-4f06-9453-e861bf72d806 initial "Jvif1"
- 7eb5508f-b2d9-4343-b7f3-b109bcd0ae86 initial JUNIT_BRIDGE_TEST
- =============
- Bridge + Name + _UUID
- ========================
- 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
- 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
- row action _uuid name
- ------------------------------------ ------- ------------------------------------ -----------------
- 3732d17d-339f-4f9d-a553-4396e1158df7 initial 3732d17d-339f-4f9d-a553-4396e1158df7 "br0"
- be7403fe-e124-4c29-931b-139cf060d021 initial be7403fe-e124-4c29-931b-139cf060d021 JUNIT_BRIDGE_TEST
- =============
- Bridge + Name + _UUID
- ========================
- 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
- 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
- row action _uuid name
- ------------------------------------ ------- ------------------------------------ -----------------
- d97ecd2f-a0f9-495d-8637-e0849f7de291 initial d97ecd2f-a0f9-495d-8637-e0849f7de291 "br0"
- 7c1b9f41-8222-4c78-ad90-244e1a66baac initial 7c1b9f41-8222-4c78-ad90-244e1a66baac "tap1"
- c4737b79-c467-4f06-9453-e861bf72d806 initial c4737b79-c467-4f06-9453-e861bf72d806 "Jvif1"
- 7eb5508f-b2d9-4343-b7f3-b109bcd0ae86 initial 7eb5508f-b2d9-4343-b7f3-b109bcd0ae86 JUNIT_BRIDGE_TEST
- =========================
- List Interfaces on a connector
- ["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"]}}]
- ========= Raw Reply ==========
- {"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",[]]}}}}
- ================== ovs-vsctl show raw ==========================
- {"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}}}}
- =================== ovs-vsctl show raw ==========================
- {"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