X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FInterfaceUtil.py;h=008d42435c5bdcb24127d5e6e8b546994abed80b;hp=2eea8e6f1b6923034a97328498126a39e7376738;hb=d87b98f62377eef057946ff26c47f69d17763dd2;hpb=c10eda554529ac5433216a18d30e9964c6af7976 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)