aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/InterfaceUtil.py
diff options
context:
space:
mode:
authorPatrik Hrnciar <phrnciar@cisco.com>2016-06-22 12:44:16 +0200
committerMatej Klotton <mklotton@cisco.com>2016-07-20 16:02:18 +0000
commitd87b98f62377eef057946ff26c47f69d17763dd2 (patch)
treec797fc4bfd9871ed509ba30f4d256313673eed1a /resources/libraries/python/InterfaceUtil.py
parentc10eda554529ac5433216a18d30e9964c6af7976 (diff)
CSIT-188 IPv4 Reverse Path Forwarding tests
Change-Id: I45ea3316c5a3ef23d08530b256558cba72ccde07 Signed-off-by: Patrik Hrnciar <phrnciar@cisco.com>
Diffstat (limited to 'resources/libraries/python/InterfaceUtil.py')
-rw-r--r--resources/libraries/python/InterfaceUtil.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/resources/libraries/python/InterfaceUtil.py b/resources/libraries/python/InterfaceUtil.py
index 2eea8e6f1b..008d42435c 100644
--- a/resources/libraries/python/InterfaceUtil.py
+++ b/resources/libraries/python/InterfaceUtil.py
@@ -780,3 +780,16 @@ class InterfaceUtil(object):
vat.vat_terminal_exec_cmd_from_template(
"proxy_arp_intfc_enable.vat",
sw_if_index=sw_if_index)
+
+ @staticmethod
+ def vpp_ip_source_check_setup(node, interface):
+ """Setup Reverse Path Forwarding source check on interface.
+
+ :param node: Node to setup RPF source check.
+ :param interface: Interface name to setup RPF source check.
+ :type node: dict
+ :type interface: str
+ """
+ with VatTerminal(node) as vat:
+ vat.vat_terminal_exec_cmd_from_template("ip_source_check.vat",
+ interface_name=interface)