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: <UP,BROADCAST,RUNNING,MULTICAST>
  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 <anuradhak@cumulusnetworks.com>
This commit is contained in:
Anuradha Karuppiah 2019-04-20 07:27:46 -07:00
parent b21e0c9375
commit aa0677b4b6
2 changed files with 3 additions and 3 deletions

View File

@ -1369,10 +1369,10 @@ static void if_dump_vty(struct vty *vty, struct interface *ifp)
vty_out(vty, " VTEP IP: %s", vty_out(vty, " VTEP IP: %s",
inet_ntoa(vxlan_info->vtep_ip)); inet_ntoa(vxlan_info->vtep_ip));
if (vxlan_info->access_vlan) if (vxlan_info->access_vlan)
vty_out(vty, " Access VLAN Id %u", vty_out(vty, " Access VLAN Id %u\n",
vxlan_info->access_vlan); vxlan_info->access_vlan);
if (vxlan_info->mcast_grp.s_addr != INADDR_ANY) 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)); inet_ntoa(vxlan_info->mcast_grp));
vty_out(vty, "\n"); vty_out(vty, "\n");
} }

View File

@ -8681,7 +8681,7 @@ int zebra_vxlan_if_add(struct interface *ifp)
addr_buf2, INET_ADDRSTRLEN); addr_buf2, INET_ADDRSTRLEN);
zlog_debug( 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, vni,
vlan_if ? vrf_id_to_name(vlan_if->vrf_id) vlan_if ? vrf_id_to_name(vlan_if->vrf_id)
: VRF_DEFAULT_NAME, : VRF_DEFAULT_NAME,