Commit 5516ec4 1 parent 59440f2 commit 5516ec4 Copy full SHA for 5516ec4
File tree 1 file changed +15
-15
lines changed
1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -317,27 +317,27 @@ void NeighOrch::doTask(Consumer &consumer)
317
317
continue ;
318
318
}
319
319
320
- Port p;
321
- if (!gPortsOrch ->getPort (alias, p))
322
- {
323
- SWSS_LOG_INFO (" Port %s doesn't exist" , alias.c_str ());
324
- it++;
325
- continue ;
326
- }
327
-
328
- if (!p.m_rif_id )
329
- {
330
- SWSS_LOG_INFO (" Router interface doesn't exist on %s" , alias.c_str ());
331
- it++;
332
- continue ;
333
- }
334
-
335
320
IpAddress ip_address (key.substr (found+1 ));
336
321
337
322
NeighborEntry neighbor_entry = { ip_address, alias };
338
323
339
324
if (op == SET_COMMAND)
340
325
{
326
+ Port p;
327
+ if (!gPortsOrch ->getPort (alias, p))
328
+ {
329
+ SWSS_LOG_INFO (" Port %s doesn't exist" , alias.c_str ());
330
+ it++;
331
+ continue ;
332
+ }
333
+
334
+ if (!p.m_rif_id )
335
+ {
336
+ SWSS_LOG_INFO (" Router interface doesn't exist on %s" , alias.c_str ());
337
+ it++;
338
+ continue ;
339
+ }
340
+
341
341
MacAddress mac_address;
342
342
for (auto i = kfvFieldsValues (t).begin ();
343
343
i != kfvFieldsValues (t).end (); i++)
You can’t perform that action at this time.
0 commit comments