zebra: Add if v4/v6 forwarding is turned on/off to show zebra

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2022-01-21 13:14:39 -05:00
parent dd42779ff9
commit 9783de6faf

View File

@ -3970,6 +3970,11 @@ DEFUN (show_zebra,
{
struct vrf *vrf;
vty_out(vty, "ip forwarding is %sturned on\n",
ipforward() ? "" : "not ");
vty_out(vty, "ipv6 fowarding is %sturned on\n",
ipforward_ipv6() ? "" : "not ");
#ifdef GNU_LINUX
if (!vrf_is_backend_netns())
vty_out(vty, "VRF devices are available for usage\n");