]> git.proxmox.com Git - mirror_frr.git/commitdiff
zebra: header changes for l2 vni bum-mcast-grp handling
authorAnuradha Karuppiah <anuradhak@cumulusnetworks.com>
Mon, 18 Mar 2019 19:35:45 +0000 (12:35 -0700)
committerAnuradha Karuppiah <anuradhak@cumulusnetworks.com>
Sat, 20 Apr 2019 15:33:19 +0000 (08:33 -0700)
The multicast group ip address for BUM traffic is configurable per-l2-vni.
One way to configure that is to setup a vxlan device that per-l2-vni and
specify the address against that vxlan device -
root@TORS1:~# vtysh -c "show interface vx-1000" |grep -i vxlan
  Interface Type Vxlan
  VxLAN Id 1000 VTEP IP: 27.0.0.15 Access VLAN Id 1000 Mcast 239.1.1.100
root@TORS1:~# vtysh -c "show evpn vni 1000" |grep Mcast
 Mcast group: 239.1.1.100
root@TORS1:~#

Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
zebra/zebra_l2.h
zebra/zebra_vxlan.h
zebra/zebra_vxlan_private.h

index 2e3e5b4a855b82a9903052b5760e5f14b3e268b9..33aa2e374644c1ca11482b4959f5914192539b68 100644 (file)
@@ -54,6 +54,7 @@ struct zebra_l2info_vxlan {
        vni_t vni;              /* VNI */
        struct in_addr vtep_ip; /* Local tunnel IP */
        vlanid_t access_vlan;   /* Access VLAN - for VLAN-aware bridge. */
+       struct in_addr mcast_grp;
 };
 
 struct zebra_l2info_bondslave {
index 2ff92970d777a825b36148ea058b7340a938fcf8..f752bdd690d27995d23f375e787899a357180596 100644 (file)
@@ -60,9 +60,11 @@ is_vxlan_flooding_head_end(void)
 }
 
 /* VxLAN interface change flags of interest. */
-#define ZEBRA_VXLIF_LOCAL_IP_CHANGE     0x1
-#define ZEBRA_VXLIF_MASTER_CHANGE       0x2
-#define ZEBRA_VXLIF_VLAN_CHANGE         0x4
+#define ZEBRA_VXLIF_LOCAL_IP_CHANGE     (1 << 0)
+#define ZEBRA_VXLIF_MASTER_CHANGE       (1 << 1)
+#define ZEBRA_VXLIF_VLAN_CHANGE         (1 << 2)
+#define ZEBRA_VXLIF_MCAST_GRP_CHANGE    (1 << 3)
+
 
 #define VNI_STR_LEN 32
 
index 5081c08d1931a484a661743c462450202b77b394..96e135c18884f49bac5315f545b23c20fa06df42 100644 (file)
@@ -87,6 +87,9 @@ struct zebra_vni_t_ {
        /* Local IP */
        struct in_addr local_vtep_ip;
 
+       /* PIM-SM MDT group for BUM flooding */
+       struct in_addr mcast_grp;
+
        /* tenant VRF, if any */
        vrf_id_t vrf_id;