File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -289,6 +289,12 @@ bool DashOrch::addEniObject(const string& eni, EniEntry& entry)
289289 return false ;
290290 }
291291
292+ if (appliance_entries_.empty ())
293+ {
294+ SWSS_LOG_INFO (" Retry as no appliance table entry found" );
295+ return false ;
296+ }
297+
292298 sai_object_id_t &eni_id = entry.eni_id ;
293299 sai_attribute_t eni_attr;
294300 vector<sai_attribute_t > eni_attrs;
@@ -317,6 +323,15 @@ bool DashOrch::addEniObject(const string& eni, EniEntry& entry)
317323 eni_attr.value .booldata = entry.admin_state ;
318324 eni_attrs.push_back (eni_attr);
319325
326+ eni_attr.id = SAI_ENI_ATTR_VM_UNDERLAY_DIP;
327+ copy (eni_attr.value .ipaddr , entry.underlay_ip );
328+ eni_attrs.push_back (eni_attr);
329+
330+ eni_attr.id = SAI_ENI_ATTR_VM_VNI;
331+ auto app_entry = appliance_entries_.begin ()->second ;
332+ eni_attr.value .u32 = app_entry.vm_vni ;
333+ eni_attrs.push_back (eni_attr);
334+
320335 sai_status_t status = sai_dash_eni_api->create_eni (&eni_id, gSwitchId ,
321336 (uint32_t )eni_attrs.size (), eni_attrs.data ());
322337 if (status != SAI_STATUS_SUCCESS)
You can’t perform that action at this time.
0 commit comments