3 @PRIMARY_DESC: Check that udsp rule table is empty on a newly configured lnet
7 - check that udsp rule table is empty on a newly configured lnet
13 from lutf import agents, me
14 from lutf_basetest import *
15 from lnet import TheLNet
16 from lutf_exception import LUTFError
17 from lnet_helpers import LNetHelpers
18 from lutf_cmd import lutf_exec_local_cmd
19 from utility_paths import LNETCTL
21 def check_udsp_empty():
22 rc = lutf_exec_local_cmd(LNETCTL + " udsp show")
23 if 'idx' in rc[0].decode('utf-8'):
31 return lutfrc(LUTF_TEST_SKIP, "No agents to run test")
33 t = LNetHelpers(target=la[0])
35 if not t.check_udsp_present():
36 return lutfrc(LUTF_TEST_SKIP, "UDSP feature is missing")
37 rc = check_udsp_empty();
39 return lutfrc(LUTF_TEST_FAIL)
40 return lutfrc(LUTF_TEST_PASS)
41 except Exception as e: