[ovs-discuss] Change slaves of running OVS Bond

Ben Pfaff blp at nicira.com
Wed May 6 16:07:29 UTC 2015


On Wed, May 06, 2015 at 02:53:57AM -0400, Petr Horacek wrote:
> is it possible to change slaves of an existing OVS Bonding?
> I haven't found another way than just removing existing bond
> and adding a new one.

It's possible, but ovs-vsctl does not have a built-in command to do it.
You can use the database commands to construct these operations by hand,
e.g.:

    blp at sigabrt:~/nicira/ovs/tutorial(0)$ ovs-vsctl add-br br0
    blp at sigabrt:~/nicira/ovs/tutorial(0)$ ovs-vsctl add-bond br0 bond0 eth0 eth1
    blp at sigabrt:~/nicira/ovs/tutorial(0)$ ovs-vsctl --id=@eth0 get Interface eth0 -- remove Port bond0 interfaces @eth0
    blp at sigabrt:~/nicira/ovs/tutorial(0)$ ovs-vsctl --id=@eth2 create Interface name=eth2 -- add Port bond0 interfaces @eth2
    4c582d42-267d-4687-bc15-79461d3cd44c
    blp at sigabrt:~/nicira/ovs/tutorial(0)$ ovs-vsctl show
    88d3c0d3-3669-4146-bb16-f767689b0fed
        Bridge "br0"
            Port "br0"
                Interface "br0"
                    type: internal
            Port "bond0"
                Interface "eth2"
                Interface "eth1"



More information about the discuss mailing list