Lines Matching refs:nsname

57 	local nsname=$1
60 if [ "${nsname}" != "${INIT_NETNS_NAME}" ]; then
61 nsarg="-netns ${nsname}"
69 local nsname=$1
70 local nsarg="$(ip_expand_args ${nsname})"
77 local nsname=$1
79 local nsarg="$(ip_expand_args ${nsname})"
86 local nsname=$1
89 local nsarg="$(ip_expand_args ${nsname})"
96 local nsname=$1
102 add_vrf ${nsname} ${vrfname} ${vrftable}; rc=$?
104 cnt=$(count_vrf_by_table_id ${nsname} ${vrftable})
106 log_test ${rc} 0 "${nsname}: add vrf ${vrfname}, ${cnt} vrfs for table ${vrftable}"
111 local nsname=$1
117 add_vrf ${nsname} ${vrfname} ${vrftable}; rc=$?
119 cnt=$(count_vrf_by_table_id ${nsname} ${vrftable})
121 log_test ${rc} 2 "${nsname}: CANNOT add vrf ${vrfname}, ${cnt} vrfs for table ${vrftable}"
126 local nsname=$1
128 local nsarg="$(ip_expand_args ${nsname})"
131 log_test $? 0 "${nsname}: remove vrf ${vrfname}"
136 local nsname=$1
139 local nsarg="$(ip_expand_args ${nsname})"
143 log_test $? 0 "${nsname}: vrf ${vrfname} up, addr ${addr}"
148 local nsname=$1
153 if [ "${nsname}" != "${INIT_NETNS_NAME}" ]; then
155 nsexec="ip netns exec ${nsname}"
173 local nsname=$1
177 res="$(read_strict_mode ${nsname})"
178 log_test ${res} ${expected} "${nsname}: check strict_mode=${res}"
183 local nsname=$1
187 if [ "${nsname}" != "${INIT_NETNS_NAME}" ]; then
189 nsexec="ip netns exec ${nsname}"
197 local nsname=$1
199 set_strict_mode ${nsname} 1
204 local nsname=$1
206 set_strict_mode ${nsname} 0
211 local nsname=$1
213 disable_strict_mode ${nsname}
214 log_test $? 0 "${nsname}: disable strict_mode (=0)"
219 local nsname=$1
221 enable_strict_mode ${nsname}
222 log_test $? 0 "${nsname}: enable strict_mode (=1)"
227 local nsname=$1
229 enable_strict_mode ${nsname}
230 log_test $? 1 "${nsname}: CANNOT enable strict_mode"
235 local nsname=$1
239 vrfcnt=$(vrf_count ${nsname})
240 strictmode=$(read_strict_mode ${nsname})
241 log_test ${strictmode} 0 "${nsname}: strict_mode=0 by default, ${vrfcnt} vrfs"
375 local nsname=$1
386 read_strict_mode ${nsname} &>/dev/null; rc=$?
387 log_test ${rc} 0 "${nsname}: net.vrf.strict_mode is available"