Last active
May 20, 2024 18:15
-
-
Save dlbewley/9a846ac0ebbdce647af0a8fb2b47f9d0 to your computer and use it in GitHub Desktop.
List the OVS bridge mappings associating 'localnet' networks to bridges on OpenShift Virtualization
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# connect to OVN Northbound DB https://gist.github.com/dlbewley/b4d4c85931e7a9c03caf56db1a1a0d2e | |
$ ovncli.sh | |
# find local chassis id | |
sh-5.1# ovn-sbctl find chassis other_config:is-remote="false" | |
_uuid : a0aad588-f850-4601-b4dc-63199440ab58 | |
encaps : [fcbeb3fc-d810-49db-ae6c-f043e3441d25] | |
external_ids : {} | |
hostname : hub-tq2sk-cnv-xcxw2 | |
name : "f57f0c4e-5d93-4639-a016-7cea61281c04" | |
nb_cfg : 0 | |
other_config : {ct-no-masked-label="true", datapath-type=system, fdb-timestamp="true", iface-types="bareudp,erspan,geneve,gre,gtpu,internal,ip6erspan,ip6gre,lisp,patch,stt,system,tap,vxlan", is-interconn="true", is-remote="false", ls-dpg-column="true", mac-binding-timestamp="true", ovn-bridge-mappings="physnet:br-ex,vlan-1924:br-vmdata,vlan-1926:br-vmdata", ovn-chassis-mac-mappings="", ovn-cms-options="", ovn-ct-lb-related="true", ovn-enable-lflow-cache="true", ovn-limit-lflow-cache="", ovn-memlimit-lflow-cache-kb="1048576", ovn-monitor-all="true", ovn-trim-limit-lflow-cache="", ovn-trim-timeout-ms="", ovn-trim-wmark-perc-lflow-cache="", port-up-notif="true"} | |
transport_zones : [] | |
vtep_logical_switches: [] | |
# view bridge mappings for local chassis | |
sh-5.1# ovn-sbctl get chassis f57f0c4e-5d93-4639-a016-7cea61281c04 other_config:ovn-bridge-mappings | |
"physnet:br-ex,vlan-1924:br-vmdata,vlan-1926:br-vmdata" | |
# alternativly ssh to the node and view 'external_ids' (thanks chrisj) | |
[root@hub-tq2sk-cnv-k9wjv ~]# ovs-vsctl list open . | |
_uuid : 9ba7b144-6826-4070-8173-a5d721290de0 | |
bridges : [0193bdfe-034a-4ee8-8992-8ed31ef363e3, 1c598241-0af1-4ddb-92fd-82f0bcae5ca8, a6b576b3-c71d-42eb-870d-d36dc7135694] | |
cur_cfg : 366 | |
datapath_types : [netdev, system] | |
datapaths : {system=ad4062aa-40e9-4751-af8e-bd6b77c69af1} | |
db_version : "8.3.1" | |
dpdk_initialized : false | |
dpdk_version : "DPDK 22.11.4" | |
external_ids : {hostname=hub-tq2sk-cnv-k9wjv, ovn-bridge-mappings="physnet:br-ex,vlan-1924:br-vmdata,vlan-1926:br-vmdata", ovn-enable-lflow-cache="true", ovn-encap-ip="192.168.4.62", ovn-encap-type=geneve, ovn-is-interconn="true", ovn-memlimit-lflow-cache-kb="1048576", ovn-monitor-all="true", ovn-ofctrl-wait-before-clear="0", ovn-openflow-probe-interval="180", ovn-remote="unix:/var/run/ovn/ovnsb_db.sock", ovn-remote-probe-interval="180000", rundir="/var/run/openvswitch", system-id="df818bf3-c8a5-4007-ac5e-1fa0efaac0ed"} | |
iface_types : [bareudp, erspan, geneve, gre, gtpu, internal, ip6erspan, ip6gre, lisp, patch, stt, system, tap, vxlan] | |
manager_options : [] | |
next_cfg : 366 | |
other_config : {bundle-idle-timeout="180", ovn-chassis-idx-df818bf3-c8a5-4007-ac5e-1fa0efaac0ed="", vlan-limit="0"} | |
ovs_version : "3.1.5" | |
ssl : [] | |
statistics : {} | |
system_type : rhcos | |
system_version : "4.15" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ovncli.sh is here https://gist.github.com/dlbewley/b4d4c85931e7a9c03caf56db1a1a0d2e