The Operations Manager allows the inclusion of bond interfaces in bridges as of 21.Q3.0. This allows links with redundancy to be included in network bridges to provide resilience and simplicity to management networks. This is useful in cases such as when upstream and downstream connections are required to use bonded interfaces for redundancy.
Bonds in bridges can currently only be configured via the ogcli tool.
How to Add a Bond Interface to a Bridge
To add a bond interface to a bridge via ogcli, first you need to get the relevant configuration from the physifs entities. Take note of the “device” field for the bridge and bond interfaces.
# ogcli get physifs ogcli get physif "br0" bridge_setting.id="system_net_physifs-14" bridge_setting.primary_slave="sw0p1" bridge_setting.stp_enabled=false description="Switch" device="br0" dns.nameservers=[] dns.search_domains=[] enabled=true id="system_net_physifs-14" mac_address="00:13:c6:08:56:cd" media="bridge" name="init_br0" slaves[0]="sw0p1" slaves[1]="sw0p2" slaves[2]="sw0p3" ... ogcli get physif "bnd0" bond_setting.id="system_net_physifs-12" bond_setting.mode="balance-rr" bond_setting.poll_interval=100 bond_setting.primary_slave="sw0p6" description="Upstream Network" device="bnd0" dns.nameservers=[] dns.search_domains=[] enabled=true id="system_net_physifs-12" mac_address="00:13:c6:08:56:cd" media="bond" name="init_bnd0" slaves[0]="sw0p6" slaves[1]="sw0p7"
Now update the bridge to include the bond interface.
# ogcli update physif "br0" slaves[2]=\"bnd0\" ogcli get physif "br0" bridge_setting.id="system_net_physifs-14" bridge_setting.primary_slave="sw0p1" bridge_setting.stp_enabled=false description="Switch" device="br0" dns.nameservers=[] dns.search_domains=[] enabled=true id="system_net_physifs-14" media="bridge" name="init_br0" slaves[0]="sw0p1" slaves[1]="bnd0" slaves[2]="sw0p2"
If you now check the Network Interfaces page in the Web UI, the bond interface is now included in the bridge.


Comments
0 comments
Please sign in to leave a comment.