Lines Matching refs:nsname

59 	local nsname=$1
62 if [ "${nsname}" != "${INIT_NETNS_NAME}" ]; then
63 nsarg="-netns ${nsname}"
71 local nsname=$1
72 local nsarg="$(ip_expand_args ${nsname})"
79 local nsname=$1
81 local nsarg="$(ip_expand_args ${nsname})"
88 local nsname=$1
91 local nsarg="$(ip_expand_args ${nsname})"
98 local nsname=$1
104 add_vrf ${nsname} ${vrfname} ${vrftable}; rc=$?
106 cnt=$(count_vrf_by_table_id ${nsname} ${vrftable})
108 log_test ${rc} 0 "${nsname}: add vrf ${vrfname}, ${cnt} vrfs for table ${vrftable}"
113 local nsname=$1
119 add_vrf ${nsname} ${vrfname} ${vrftable}; rc=$?
121 cnt=$(count_vrf_by_table_id ${nsname} ${vrftable})
123 log_test ${rc} 2 "${nsname}: CANNOT add vrf ${vrfname}, ${cnt} vrfs for table ${vrftable}"
128 local nsname=$1
130 local nsarg="$(ip_expand_args ${nsname})"
133 log_test $? 0 "${nsname}: remove vrf ${vrfname}"
138 local nsname=$1
141 local nsarg="$(ip_expand_args ${nsname})"
145 log_test $? 0 "${nsname}: vrf ${vrfname} up, addr ${addr}"
150 local nsname=$1
155 if [ "${nsname}" != "${INIT_NETNS_NAME}" ]; then
157 nsexec="ip netns exec ${nsname}"
175 local nsname=$1
179 res="$(read_strict_mode ${nsname})"
180 log_test ${res} ${expected} "${nsname}: check strict_mode=${res}"
185 local nsname=$1
189 if [ "${nsname}" != "${INIT_NETNS_NAME}" ]; then
191 nsexec="ip netns exec ${nsname}"
199 local nsname=$1
201 set_strict_mode ${nsname} 1
206 local nsname=$1
208 set_strict_mode ${nsname} 0
213 local nsname=$1
215 disable_strict_mode ${nsname}
216 log_test $? 0 "${nsname}: disable strict_mode (=0)"
221 local nsname=$1
223 enable_strict_mode ${nsname}
224 log_test $? 0 "${nsname}: enable strict_mode (=1)"
229 local nsname=$1
231 enable_strict_mode ${nsname}
232 log_test $? 1 "${nsname}: CANNOT enable strict_mode"
237 local nsname=$1
241 vrfcnt=$(vrf_count ${nsname})
242 strictmode=$(read_strict_mode ${nsname})
243 log_test ${strictmode} 0 "${nsname}: strict_mode=0 by default, ${vrfcnt} vrfs"
378 local nsname=$1
389 read_strict_mode ${nsname} &>/dev/null; rc=$?
390 log_test ${rc} 0 "${nsname}: net.vrf.strict_mode is available"