[PATCH] TaskAPI: use netns argument in hostAPI config() method

Ondrej Lichtner olichtne at redhat.com
Thu Jun 25 06:39:51 UTC 2015


On Wed, Jun 24, 2015 at 07:34:21PM +0200, Jan Tluka wrote:
> The hostAPI's method config() has the netns argument but it was not
> passed further.
> 
> Fixes #125.
> 
> Signed-off-by: Jan Tluka <jtluka at redhat.com>

Acked-by: Ondrej Lichtner <olichtne at redhat.com>

> ---
>  lnst/Controller/Task.py | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/lnst/Controller/Task.py b/lnst/Controller/Task.py
> index ccbd299..073aacb 100644
> --- a/lnst/Controller/Task.py
> +++ b/lnst/Controller/Task.py
> @@ -176,6 +176,7 @@ class HostAPI(object):
>          cmd = {"host": str(self._id), "type": "config"}
>          cmd["options"] = [{"name": option, "value": value}]
>          cmd["persistent"] = persistent
> +        cmd["netns"] = netns
>  
>          return self._ctl._run_command(cmd)
>  
> -- 
> 1.9.3
> 
> _______________________________________________
> LNST-developers mailing list
> LNST-developers at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/lnst-developers


More information about the LNST-developers mailing list