[ovs-discuss] bond control syntax

Chris Boley ilgtech75 at gmail.com
Sun Mar 4 17:34:53 UTC 2018


Hi,
I worked on this more and found that this worked. If anyone is actually
interested.

sudo touch /etc/network/if-up.d/vbond0_tune
sudo nano /etc/network/if-up.d/vbond0_tune

##Pasted this in###

ovs-vsctl set port vbond0 other_config:lacp-system-priority=50
other_config:bond-rebalance-interval=5000 other_config:
bond-detect-mode=miimon other_config:bond-miimon-interval=100
other_config:bond_updelay=200 other_config:bond_downdelay=200
exit

##save file and exit##

sudo chmod a+x /etc/network/if-up.d/vbond0_tune

modify interfaces file to look this way:
allow-vbridge0 vbond0
iface vbond0 inet manual
       ovs_bridge vbridge0
       ovs_type OVSBond
       ovs_bonds eth1 eth2
       ovs_options bond_mode=balance-slb lacp=active
       post-up /etc/network/if-up.d/vbond0_tune

After that I could run:
foo at VMHOST:~$ sudo ovs-vsctl list port vbond0

And I could see all the "other_options"

The ovs-appctl bond/show vbond0 isn't really reflecting my up and down
delay. I'm not sure though if that's because the Cisco Switch ports are
taking priority or what's going on.
I do believe the command parameters are hitting the OVS system though
because the "other_config" options are showing up in the "list port"
command. Also the ovs-appctl lacp/show vbond0
command reflects the system priority that I put in.


foo at VMHOST:~$ sudo sudo ovs-appctl bond/show vbond0
---- vbond0 ----
bond_mode: balance-slb
bond may use recirculation: no, Recirc-ID : -1
bond-hash-basis: 0
updelay: 0 ms
downdelay: 0 ms
next rebalance: 6886 ms
lacp_status: negotiated
active slave mac: 00:04:23:d7:bd:0c(eth1)

slave eth1: enabled
        active slave
        may_enable: true

slave eth2: enabled
        may_enable: true
===========================================================
cboley at VMHOST:~$ sudo ovs-appctl lacp/show vbond0
---- vbond0 ----
        status: active negotiated
        sys_id: 00:04:23:d7:bd:0c
        sys_priority: 50
        aggregation key: 1
        lacp_time: slow

slave: eth1: current attached
        port_id: 2
        port_priority: 65535
        may_enable: true

        actor sys_id: 00:04:23:d7:bd:0c
        actor sys_priority: 50
        actor port_id: 2
        actor port_priority: 65535
        actor key: 1
        actor state: activity aggregation synchronized collecting
distributing

        partner sys_id: 00:0a:8a:bd:2c:00
        partner sys_priority: 32768in
        partner port_id: 50
        partner port_priority: 32768
        partner key: 1
        partner state: activity aggregation synchronized collecting
distributing

slave: eth2: current attached
        port_id: 1
        port_priority: 65535
        may_enable: true

        actor sys_id: 00:04:23:d7:bd:0c
        actor sys_priority: 50
        actor port_id: 1
        actor port_priority: 65535
        actor key: 1
        actor state: activity aggregation synchronized collecting
distributing

        partner sys_id: 00:0a:8a:bd:2c:00
        partner sys_priority: 32768
        partner port_id: 49
        partner port_priority: 32768
        partner key: 1
        partner state: activity aggregation synchronized collecting
distributing



Anyway, I'm going to leave this here if anyone else might be looking for a
way to set those parameters by way of the /etc/network/interfaces  file.

Chris





On Sun, Mar 4, 2018 at 10:27 AM, Chris Boley <ilgtech75 at gmail.com> wrote:

>  The "other_config:" options don't seem to be running in my bond setup.
> It's difficult for me to understand if my syntax is bad because for
> whatever reason there's not a lot of examples regarding manually
> controlling LACP negotiation.
> All those tagged in options look like one huge line on my
> /etc/network/interfaces config file.
>
> Any guidance would be greatly appreciated.
>
> # Bond eth1 and eth2 together
> allow-vbridge0 vbond0
> iface vbond0 inet manual
>         ovs_bridge vbridge0
>         ovs_type OVSBond
>         ovs_bonds eth1 eth2
>         ovs_options bond_mode=balance-slb lacp=active
> other_config:lacp-time=slow lacp-system-priority=50
> bond-rebalance-interval=5000 bond-detect-mode=miimon
> bond-miimon-interval=100 bond_updelay=200 bond_downdelay=200
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20180304/9465a22e/attachment.html>


More information about the discuss mailing list