[ovs-discuss] Change slaves of running OVS Bond

Petr Horacek phoracek at redhat.com
Thu May 7 06:07:40 UTC 2015


----- Original Message -----
> From: "Ben Pfaff" <blp at nicira.com>
> To: "Petr Horacek" <phoracek at redhat.com>
> Cc: discuss at openvswitch.org
> Sent: Wednesday, May 6, 2015 6:07:29 PM
> Subject: Re: [ovs-discuss] Change slaves of running OVS Bond
> 
> 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"
> 
Thanks a lot! :)



More information about the discuss mailing list