[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lnst-developers
Subject:    [PATCH 2/2] recipes: switchdev: migrated to the new ProcessAPI.out() function.
From:       Yotam Gigi <yotamg () mellanox ! com>
Date:       2016-08-15 16:48:34
Message-ID: 1471279714-2875-3-git-send-email-yotamg () mellanox ! com
[Download RAW message or body]

Removed the "save_output" flag from Host.cmd and used the ProcessAPI.out
function to retrice command output.

Signed-off-by: Yotam Gigi <yotamg@mellanox.com>
---
 recipes/switchdev/l2-021-span.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/recipes/switchdev/l2-021-span.py b/recipes/switchdev/l2-021-span.py
index ca7d15e..1d68cd4 100644
--- a/recipes/switchdev/l2-021-span.py
+++ b/recipes/switchdev/l2-021-span.py
@@ -38,8 +38,8 @@ class MirredPort:
         ingress_str = "ingress" if ingress else ""
         from_dev = self.mirred_port.get_devname()
         cmd = self.mach.run("tc filter show dev %s %s" % (from_dev,
-                       ingress_str), save_output=True)
-        output = cmd.get_result()["res_data"]["stdout"]
+                            ingress_str))
+        output = cmd.out()
         return re.findall("pref (\\d+) .* handle .*\n.* device %s" %
                 to_port.get_devname(), output, re.M)
 
-- 
2.4.11
_______________________________________________
LNST-developers mailing list
lnst-developers@lists.fedorahosted.org
https://lists.fedorahosted.org/admin/lists/lnst-developers@lists.fedorahosted.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic