On 10/12/23 15:39, Xuo Guoto via discuss wrote: > Thanks for your reply! > > ------- Original Message ------- > On Thursday, October 12th, 2023 at 6:48 PM, Ilya Maximets > <i.maxim...@ovn.org> wrote: > > >> You currently have port vnet75 with an interface vnet75, and the >> port vnet78 with interface vnet78. > > The differentiation between port and interface was new to me! Thanks!
'ovs-vsctl show' command makes the structure a little easier to see. > >> But you want a port bond0 with interfaces >> vnet75 and vnet78. In order to achieve >> that you need to remove ports vnet75 and >> vnet78 first, and then create a port >> bond0. > > How can I remove ports vnet75 and vnet78 without touching the underlying > interface? I have the VM1 running and is connected to the bridge, can the > ports be removed without disturbing the VM? It might be possible by manually crafting OVSDB transactions, but it's very prone to errors and I would not recommend that. I'd recommend removing ports and creating a bond in a single transaction, by chaining operations with '--': ovs-vsctl del-port vnet75 \ -- del-port vnet78 \ -- add-bond ovsbr-lacp0 bond0 vnet75 vnet78 lacp=active The problem with this though is that you will loose configuration applied to the interfaces while removing them anyway. For example, these interfaces will no longer have their external_ids. If you want to preserve these, you'll need to re-add them manually. Potentially as part of the same transaction, by adding more commands, i.e. ovs-vsctl \ del-port vnet75 \ -- del-port vnet78 \ -- add-bond ovsbr-lacp0 bond0 vnet75 vnet78 lacp=active \ -- set Interface vnet75 \ external_ids='{attached-mac="52:54:00:0d:61:fc", iface-id="..", iface-status=active, vm-id=".."}' \ some_other_column=<old value> \ -- set Interface vnet78 external_ids='{attached-mac="52:54:00:24:36:a7", iface-id="..", iface-status=active, vm-id=".."}' \ ... You may still have some slight network disruption though. However, since you're enabling LACP you will have disruption anyway until you bond these interfaces and enable LACP inside VM as well. Best regards, Ilya Maximets. _______________________________________________ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss