diff --git a/orchagent/vnetorch.cpp b/orchagent/vnetorch.cpp index d45c44f315..e2167fbeab 100644 --- a/orchagent/vnetorch.cpp +++ b/orchagent/vnetorch.cpp @@ -429,6 +429,10 @@ VnetBridgeInfo VNetBitmapObject::getBridgeInfoByVni(uint32_t vni, string tunnelN attr.value.oid = info.bridge_id; rif_attrs.push_back(attr); + attr.id = SAI_ROUTER_INTERFACE_ATTR_MTU; + attr.value.u32 = VNET_BITMAP_RIF_MTU; + rif_attrs.push_back(attr); + status = sai_router_intfs_api->create_router_interface( &info.rif_id, gSwitchId, diff --git a/orchagent/vnetorch.h b/orchagent/vnetorch.h index 2cd3a4d2ea..1827e8af76 100644 --- a/orchagent/vnetorch.h +++ b/orchagent/vnetorch.h @@ -17,6 +17,7 @@ #define VNET_TUNNEL_SIZE 40960 #define VNET_NEIGHBOR_MAX 0xffff #define VXLAN_ENCAP_TTL 128 +#define VNET_BITMAP_RIF_MTU 9100 extern sai_object_id_t gVirtualRouterId;