Re: [libvirt] [PATCH 1/3] util: new function virNetDevOpenvswitchInterfaceGetMaster()

2018-07-02 Thread Laine Stump
On 07/02/2018 02:11 AM, Michal Prívozník wrote: > On 07/02/2018 01:46 AM, Laine Stump wrote: >> +virNetDevOpenvswitchAddTimeout(cmd); >> +virCommandAddArgList(cmd, "iface-to-br", ifname, NULL); >> +virCommandSetOutputBuffer(cmd, master); >> + >> +if (virCommandRun(cmd, ) < 0) { >>

Re: [libvirt] [PATCH 1/3] util: new function virNetDevOpenvswitchInterfaceGetMaster()

2018-07-02 Thread Michal Prívozník
On 07/02/2018 01:46 AM, Laine Stump wrote: > This function retrieves the name of the OVS bridge that the given > netdev is attached to. This separate function is necessary because OVS > set the IFLA_MASTER attribute to "ovs-system" for all netdevs that are > attached to an OVS bridge, so the

[libvirt] [PATCH 1/3] util: new function virNetDevOpenvswitchInterfaceGetMaster()

2018-07-01 Thread Laine Stump
This function retrieves the name of the OVS bridge that the given netdev is attached to. This separate function is necessary because OVS set the IFLA_MASTER attribute to "ovs-system" for all netdevs that are attached to an OVS bridge, so the standard method of retrieving the master can't be used.