Fix template indexing bug

I found a bug causing template functions to strip one character
immediately following the template function string, e.g.

"{ip(load-balancer,pub1)}:80"

will result in stripping the colon:
192.168.210.580

instead of
192.168.210.5:80

This patch fixes that.

Signed-off-by: Jan Tluka <jtluka@redhat.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
NetTestController: Delayed Task Processing

The way the controller task processing was implemented was blocking the
updates of configuration data, that are distributed from the slaves to
the controller.

This patch delays the processing of individual commands so we can take
the full advantage from the updates.

Signed-off-by: Radek Pazdera <rpazdera@redhat.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
TaskAPI: Delayed evaluation of config values

This commit adds three new classes (IpAddr, Hwaddr, and Devname) to the
Task API that represent these values in the task. This is necessary so
we can take the full advantage of the asynchronous updates that are
distributed from the slaves to the controller during recipe execution.

Signed-off-by: Radek Pazdera <rpazdera@redhat.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
RecipeParser: Fixing the Comments Bug

The previous fix of the bug with comments proved ineffective (there are
problems with the comment tags on multiple places). This patch reverts
the previous change and adds a simple preprocessing of the element tree
to remove all comments before it is processed.

Signed-off-by: Radek Pazdera <rpazdera@redhat.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
lnst-ctl: Removing the 'dump' action

Due to the refactoring of the NetTestController class that was done
recently, the 'dump' action is no longer relevant (as the resources it
uses no longer exist in a proper form).

This patch removes the action altogether.

Signed-off-by: Radek Pazdera <rpazdera@redhat.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
SlavePool: check corner cases

This commit adds checks for two corner cases in machine pool matching:
* recipe contains an isolated machine

* recipe describes a network topology with a network that contains just
* a single machine

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