summaryrefslogtreecommitdiff
path: root/zebra/zebra_vty.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@openbsd.org>2018-02-27 10:20:53 -0300
committerGitHub <noreply@github.com>2018-02-27 10:20:53 -0300
commit7bcf94689d94e897eecbac4ebf504380f391f75d (patch)
tree14bba4e1a2eb53ddcbff272b0f4211c7b43d3833 /zebra/zebra_vty.c
parentf9159fbc1057dfe4ca73635637c1a080d5b3d499 (diff)
parentb7b816df6bd8b110aedb0f047fa8e3105ce86d1d (diff)
Merge pull request #1711 from pguibert6WIND/issue_385_step5
Netns Support / VRF/NS/ogical router rework, along with BGP & OSPF support for multiple VRF with NETNS backend
Diffstat (limited to 'zebra/zebra_vty.c')
-rw-r--r--zebra/zebra_vty.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c
index ccc7cb30c3..4824c09f3d 100644
--- a/zebra/zebra_vty.c
+++ b/zebra/zebra_vty.c
@@ -2374,8 +2374,12 @@ DEFUN (show_vrf,
continue;
vty_out(vty, "vrf %s ", zvrf_name(zvrf));
- if (zvrf_id(zvrf) == VRF_UNKNOWN)
+ if (zvrf_id(zvrf) == VRF_UNKNOWN
+ || !zvrf_is_active(zvrf))
vty_out(vty, "inactive");
+ else if (zvrf_ns_name(zvrf))
+ vty_out(vty, "id %u netns %s",
+ zvrf_id(zvrf), zvrf_ns_name(zvrf));
else
vty_out(vty, "id %u table %u", zvrf_id(zvrf),
zvrf->table_id);