[wicked-devel] wicked show-xml always dumps all interfaces
Hi As far as I understand the wicked command, it should be possible to filter the dump of xml information for interfaces. # wicked help show-xml [--raw] [--modem] <ifname|all> Specifying an interface name as argument to the command does not limit the output. os131b:/etc/wicked/ifconfig # wicked show-xml all |egrep 'object path|name' <object path="/org/opensuse/Network/Interface"/> <object path="/org/opensuse/Network/Interface/1"> <name>lo</name> <object path="/org/opensuse/Network/Interface/2"> <name>ens7</name> <object path="/org/opensuse/Network/Interface/3"> <name>ens8</name> <object path="/org/opensuse/Network/Interface/4"> <name>eth2</name> os131b:/etc/wicked/ifconfig # wicked show-xml eth2 |egrep 'object path|name' <object path="/org/opensuse/Network/Interface"/> <object path="/org/opensuse/Network/Interface/1"> <name>lo</name> <object path="/org/opensuse/Network/Interface/2"> <name>ens7</name> <object path="/org/opensuse/Network/Interface/3"> <name>ens8</name> <object path="/org/opensuse/Network/Interface/4"> <name>eth2</name> In fact it always acts as if 'all' was specified (this may be the default though) : os131b:/etc/wicked/ifconfig # wicked show-xml |egrep 'object path|name' <object path="/org/opensuse/Network/Interface"/> <object path="/org/opensuse/Network/Interface/1"> <name>lo</name> <object path="/org/opensuse/Network/Interface/2"> <name>ens7</name> <object path="/org/opensuse/Network/Interface/3"> <name>ens8</name> <object path="/org/opensuse/Network/Interface/4"> <name>eth2</name> Is this working as designed/not yet implemented/bug/configuration error at my end ? Best regards Andreas Taschner -- To unsubscribe, e-mail: wicked-devel+unsubscribe@opensuse.org To contact the owner, e-mail: wicked-devel+owner@opensuse.org
On Mon, 30 Dec 2013 12:56:30 +0000 "Andreas Taschner" <ataschner@suse.com> wrote:
Hi
As far as I understand the wicked command, it should be possible to filter the dump of xml information for interfaces.
# wicked help show-xml [--raw] [--modem] <ifname|all>
Yes, the usage comment is a bit misleading regarding this one.
<name>eth2</name>
Is this working as designed/not yet implemented/bug/configuration error at my end ?
I'd say it is not yet implemented. I took a look and currently we receive all interfaces via dbus in a single run on GetManagedObjects() call. AFAIK, Okir wants to re-implement this to receive particular, single objects per call, as per optimization. So we could wait till then with adjusting show-xml. -- Best Regards, Pawel Wieczorkiewicz <pwieczorkiewicz@suse.de> Linux System Developer @ SUSE LINUX Products GmbH -- To unsubscribe, e-mail: wicked-devel+unsubscribe@opensuse.org To contact the owner, e-mail: wicked-devel+owner@opensuse.org
participants (2)
-
Andreas Taschner
-
Pawel Wieczorkiewicz