Skip to content

Commit df96059

Browse files
authored
VOQ: Nexthop for remote VOQ LC should be created on inband OIF. (#1823)
VOQ nexthop for remote neighbors should be created on local inband port only for the kernel purpose. SAI should use actual RIF of the remote system port interface. #1686 seems to be break this condition and this change address it.
1 parent 8f7ea14 commit df96059

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

orchagent/neighorch.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ bool NeighOrch::addNextHop(const NextHopKey &nh)
191191
}
192192

193193
NextHopKey nexthop(nh);
194-
if (m_intfsOrch->isRemoteSystemPortIntf(nexthop.alias))
194+
if (m_intfsOrch->isRemoteSystemPortIntf(nh.alias))
195195
{
196196
//For remote system ports kernel nexthops are always on inband. Change the key
197197
Port inbp;
@@ -202,7 +202,7 @@ bool NeighOrch::addNextHop(const NextHopKey &nh)
202202
}
203203

204204
assert(!hasNextHop(nexthop));
205-
sai_object_id_t rif_id = m_intfsOrch->getRouterIntfsId(nexthop.alias);
205+
sai_object_id_t rif_id = m_intfsOrch->getRouterIntfsId(nh.alias);
206206

207207
vector<sai_attribute_t> next_hop_attrs;
208208

0 commit comments

Comments
 (0)