Yalei Li b29c86ae10 util: Remove '\n' from vhostuser ifname
When deleting the vhostuserclient interface, OVS prompts that the interface does not exist,
Through the XML file, I found that the "target dev" has a '\n', results in an XML parsing error.

XML file:

<target dev='vm-20ac9c030a47
'/>

That is because 'ovs-vsctl' returns a newline result, always come with a '\n',
and the vircommandrun function puts it in ifname.

So virNetDevOpenvswitchGetVhostuserIfname should remove '\n' from ifname.

Signed-off-by: Yalei Li <liyl43@chinatelecom.cn>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2021-02-05 09:57:14 +01:00
..
2020-10-06 12:31:34 +02:00
2021-02-03 16:09:25 +01:00
2021-02-03 16:09:25 +01:00
2020-07-09 10:01:41 +02:00
2020-03-13 17:26:55 +01:00
2020-10-06 12:31:34 +02:00
2020-02-24 23:15:49 +01:00
2020-02-24 17:25:07 +00:00
2020-08-03 15:30:40 +02:00
2021-01-25 20:27:38 -05:00
2020-10-06 12:31:34 +02:00
2019-10-16 12:06:44 +02:00
2019-10-16 12:06:44 +02:00
2020-03-05 12:23:02 +00:00
2020-10-06 12:31:34 +02:00
2019-10-16 12:06:44 +02:00
2020-12-04 16:24:19 +01:00
2020-12-04 16:24:19 +01:00