3 @PRIMARY_DESC: Verify that UDSP rule designating src-dst nid pair can be added
8 - add udsp rule designating a source-destination nid pair
9 - verify that the rule has been added
15 from lutf import agents, me
16 from lutf_basetest import *
17 from lnet import TheLNet
18 from lutf_exception import LUTFError
19 from lnet_helpers import LNetHelpers
20 from lutf_cmd import lutf_exec_local_cmd
23 test_action_list = [{'udsp_cmd': "add --src 192.168.122.1@tcp1 --dst 192.168.122.101@tcp1",
24 'show_res': {'udsp': [{'idx': 0, 'src': '192.168.122.1@tcp1', 'dst': '192.168.122.101@tcp1', 'rte': 'NA'}]}}]
29 return lutfrc(LUTF_TEST_SKIP, "No agents to run test")
31 t = LNetHelpers(target=la[0])
33 if not t.check_udsp_present():
34 return lutfrc(LUTF_TEST_SKIP, "UDSP feature is missing")
35 rc = t.check_udsp_empty()
37 return lutfrc(LUTF_TEST_FAIL)
38 rc = t.exec_udsp_cmd(test_action_list[0]['udsp_cmd'])
39 rc = t.check_udsp_expected(test_action_list[0]['show_res'])
41 return lutfrc(LUTF_TEST_FAIL)
43 return lutfrc(LUTF_TEST_PASS)
44 except Exception as e: