From aa0677b4b6ec5d074f933edc75bdd21354fe3e76 Mon Sep 17 00:00:00 2001 From: Anuradha Karuppiah Date: Sat, 20 Apr 2019 07:27:46 -0700 Subject: [PATCH] zebra: use "mcast group" instead of just mcast in show and logs Fixup done in response to Jafar's review comments. root@act-7726-03:~# vtysh -c "show interface vxlan1000111" Interface vxlan1000111 is up, line protocol is up Link ups: 0 last: (never) Link downs: 0 last: (never) PTM status: disabled vrf: default index 95 metric 0 mtu 1500 speed 0 flags: Type: Ethernet HWaddr: 7e:1d:c1:d5:d1:cc Interface Type Vxlan VxLAN Id 1000111 VTEP IP: 6.0.0.28 Access VLAN Id 111 Mcast Group 239.1.1.111 >>>>>>>>>> Master (bridge) ifindex 99 root@act-7726-03:~# Signed-off-by: Anuradha Karuppiah --- zebra/interface.c | 4 ++-- zebra/zebra_vxlan.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/zebra/interface.c b/zebra/interface.c index d4fc96abc2..52141a84de 100644 --- a/zebra/interface.c +++ b/zebra/interface.c @@ -1369,10 +1369,10 @@ static void if_dump_vty(struct vty *vty, struct interface *ifp) vty_out(vty, " VTEP IP: %s", inet_ntoa(vxlan_info->vtep_ip)); if (vxlan_info->access_vlan) - vty_out(vty, " Access VLAN Id %u", + vty_out(vty, " Access VLAN Id %u\n", vxlan_info->access_vlan); if (vxlan_info->mcast_grp.s_addr != INADDR_ANY) - vty_out(vty, " Mcast %s", + vty_out(vty, " Mcast Group %s", inet_ntoa(vxlan_info->mcast_grp)); vty_out(vty, "\n"); } diff --git a/zebra/zebra_vxlan.c b/zebra/zebra_vxlan.c index aa85af649d..22c489e607 100644 --- a/zebra/zebra_vxlan.c +++ b/zebra/zebra_vxlan.c @@ -8681,7 +8681,7 @@ int zebra_vxlan_if_add(struct interface *ifp) addr_buf2, INET_ADDRSTRLEN); zlog_debug( - "Add L2-VNI %u VRF %s intf %s(%u) VLAN %u local IP %s mcast %s master %u", + "Add L2-VNI %u VRF %s intf %s(%u) VLAN %u local IP %s mcast_grp %s master %u", vni, vlan_if ? vrf_id_to_name(vlan_if->vrf_id) : VRF_DEFAULT_NAME,