From d87b98f62377eef057946ff26c47f69d17763dd2 Mon Sep 17 00:00:00 2001 From: Patrik Hrnciar Date: Wed, 22 Jun 2016 12:44:16 +0200 Subject: CSIT-188 IPv4 Reverse Path Forwarding tests Change-Id: I45ea3316c5a3ef23d08530b256558cba72ccde07 Signed-off-by: Patrik Hrnciar --- resources/libraries/python/InterfaceUtil.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'resources/libraries/python') 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) -- cgit 1.2.3-korg