summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/default/vyatta.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/default/vyatta.in b/etc/default/vyatta.in
index a214ccb..06ce797 100644
--- a/etc/default/vyatta.in
+++ b/etc/default/vyatta.in
@@ -180,6 +180,11 @@ unset _vyatta_extglob
VRF=$(ip vrf identify)
[ -n "$VRF" ] && declare -x -r VRF="${VRF}"
fi
+ if test -z "$NETNS" ; then
+ NETNS=$(ip netns identify)
+ [ -n "$NETNS" ] && declare -x -r NETNS="${NETNS}"
+ fi
+
} 2>/dev/null || :