Skip to content

Commit 4e53afc

Browse files
authored
[Vnet] Set BFD multihop to true for Vnet routes (sonic-net#2244)
* Set BFD multihop to true for Vnet routes
1 parent 39e8996 commit 4e53afc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

orchagent/vnetorch.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -1539,6 +1539,8 @@ void VNetRouteOrch::createBfdSession(const string& vnet, const NextHopKey& endpo
15391539
FieldValueTuple fvTuple("local_addr", src_ip.to_string());
15401540
data.push_back(fvTuple);
15411541

1542+
data.emplace_back("multihop", "true");
1543+
15421544
bfd_session_producer_.set(key, data);
15431545

15441546
bfd_sessions_[monitor_addr].bfd_state = SAI_BFD_SESSION_STATE_DOWN;

tests/test_vnet.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ def get_bfd_session_id(dvs, addr):
450450
status, fvs = tbl.get(entry)
451451
fvs = dict(fvs)
452452
assert status, "Got an error when get a key"
453-
if fvs["SAI_BFD_SESSION_ATTR_DST_IP_ADDRESS"] == addr:
453+
if fvs["SAI_BFD_SESSION_ATTR_DST_IP_ADDRESS"] == addr and fvs["SAI_BFD_SESSION_ATTR_MULTIHOP"] == "true":
454454
return entry
455455

456456
return None

0 commit comments

Comments
 (0)