Last active
September 24, 2025 01:09
-
-
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 hidden or 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# CHASSIS=`ovn-sbctl --bare --columns=name find chassis other_config:is-remote="false"` | |
sh-5.1# echo $CHASSIS | |
f57f0c4e-5d93-4639-a016-7cea61281c04 | |
# view bridge mappings for local chassis | |
sh-5.1# ovn-sbctl get chassis $CHASSIS other_config:ovn-bridge-mappings | |
"physnet-vmdata:br-vmdata,physnet:br-ex" | |
# 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