NetTestCommand: fix bg_id in result headers

bg_id in result summary was incorrectly formatted with a missing space.
This commit fixes that, and also swaps around the information about the
command and the bg_id. The reason for this is that the "bg_id: aaa"
could look like it was part of the command.

Signed-off-by: Ondrej Lichtner <olichtne@redhat.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Logs: use machine names instead of IP addresses

This commit changes the format of log messages, instead of using
hostnames, which are usually IP addresses, we will use the host ids that
are specified in the supplied recipe.

This makes it more obvious what's happening on which machine. The
information about the used hosts is still available at the beginning of
recipe execution when the controller finds a suitable match.

Signed-off-by: Ondrej Lichtner <olichtne@redhat.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
NmConfigDevice: add detection of NM version

This commit adds a new function that returns the version of the running
NM daemon. The version is determined through dbus. For now I've used it
to detect whether to manually remove soft network devices or to leave NM
do it (NM version >= 0.9.9 removes them automatically). Later this will
be used to determine if team devices are supported by NM.

Signed-off-by: Ondrej Lichtner <olichtne@redhat.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
NmConfigDevice: add team configuration through NM

This commit adds support for configuring team devices through NM. The
support is limited to NM versions >= 0.9.9.
The code is similar to how bond configuration is done -> we create
connection objects for the team device and all the slaves, remove them
in reverse order. (De)Activation is done in the same order.

Signed-off-by: Ondrej Lichtner <olichtne@redhat.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>