Lines Matching full:get
18 """Get the ops of a family, keyed by command id."""
75 # dev-get (id 1) should support both do and dump
79 # qstats-get (id 12) is dump-only
114 # dev-get: do has a real policy with ifindex, dump has no policy
116 pol = ndev.get_policy('dev-get', 'do')
117 ksft_in('ifindex', pol, comment="dev-get do policy should have ifindex")
120 pol_dump = ndev.get_policy('dev-get', 'dump')
121 ksft_eq(len(pol_dump), 0, comment="dev-get should not accept any attrs")
123 # napi-get: both do and dump have real policies
124 pol_do = ndev.get_policy('napi-get', 'do')
127 pol_dump = ndev.get_policy('napi-get', 'dump')
133 # strset-get (has both do and dump, full ops share policy)
134 pol_do = et.get_policy('strset-get', 'do')
135 ksft_ge(len(pol_do), 1, comment="strset-get should have a do policy")
137 pol_dump = et.get_policy('strset-get', 'dump')
138 ksft_ge(len(pol_dump), 1, comment="strset-get should have a dump policy")
170 modes = pol_map.get(cmd, set())
191 # dev-get do policy should have named attributes from the spec
192 pol = ndev.get_policy('dev-get', 'do')