Lines Matching refs:nsname

54 	local nsname=$1
57 if [ "${nsname}" != "${INIT_NETNS_NAME}" ]; then
58 nsarg="-netns ${nsname}"
66 local nsname=$1
67 local nsarg="$(ip_expand_args ${nsname})"
74 local nsname=$1
76 local nsarg="$(ip_expand_args ${nsname})"
83 local nsname=$1
86 local nsarg="$(ip_expand_args ${nsname})"
93 local nsname=$1
99 add_vrf ${nsname} ${vrfname} ${vrftable}; rc=$?
101 cnt=$(count_vrf_by_table_id ${nsname} ${vrftable})
103 log_test ${rc} 0 "${nsname}: add vrf ${vrfname}, ${cnt} vrfs for table ${vrftable}"
108 local nsname=$1
114 add_vrf ${nsname} ${vrfname} ${vrftable}; rc=$?
116 cnt=$(count_vrf_by_table_id ${nsname} ${vrftable})
118 log_test ${rc} 2 "${nsname}: CANNOT add vrf ${vrfname}, ${cnt} vrfs for table ${vrftable}"
123 local nsname=$1
125 local nsarg="$(ip_expand_args ${nsname})"
128 log_test $? 0 "${nsname}: remove vrf ${vrfname}"
133 local nsname=$1
136 local nsarg="$(ip_expand_args ${nsname})"
140 log_test $? 0 "${nsname}: vrf ${vrfname} up, addr ${addr}"
145 local nsname=$1
150 if [ "${nsname}" != "${INIT_NETNS_NAME}" ]; then
152 nsexec="ip netns exec ${nsname}"
170 local nsname=$1
174 res="$(read_strict_mode ${nsname})"
175 log_test ${res} ${expected} "${nsname}: check strict_mode=${res}"
180 local nsname=$1
184 if [ "${nsname}" != "${INIT_NETNS_NAME}" ]; then
186 nsexec="ip netns exec ${nsname}"
194 local nsname=$1
196 set_strict_mode ${nsname} 1
201 local nsname=$1
203 set_strict_mode ${nsname} 0
208 local nsname=$1
210 disable_strict_mode ${nsname}
211 log_test $? 0 "${nsname}: disable strict_mode (=0)"
216 local nsname=$1
218 enable_strict_mode ${nsname}
219 log_test $? 0 "${nsname}: enable strict_mode (=1)"
224 local nsname=$1
226 enable_strict_mode ${nsname}
227 log_test $? 1 "${nsname}: CANNOT enable strict_mode"
232 local nsname=$1
236 vrfcnt=$(vrf_count ${nsname})
237 strictmode=$(read_strict_mode ${nsname})
238 log_test ${strictmode} 0 "${nsname}: strict_mode=0 by default, ${vrfcnt} vrfs"
355 local nsname=$1
366 read_strict_mode ${nsname} &>/dev/null; rc=$?
367 log_test ${rc} 0 "${nsname}: net.vrf.strict_mode is available"