Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion vslib/vpp/SwitchVpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,10 @@ namespace saivs

std::map<sai_object_id_t, std::shared_ptr<IpVrfInfo>> vrf_objMap;
bool nbr_env_read = false;
bool nbr_active = false;
// nbr_active is true by default, can be set to false by env var NO_LINUX_NL = n.
// If false, it will rely on linux_nl_plugin to sync ip to VPP.
// no neighbor entries will be added to vpp from SAI
bool nbr_active = true;
std::map<std::string, std::string> m_intf_prefix_map;
std::unordered_map<std::string, uint32_t> lpbInstMap;
std::unordered_map<std::string, std::string> lpbIpToHostIfMap;
Expand Down
4 changes: 2 additions & 2 deletions vslib/vpp/SwitchVppNbr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ bool SwitchVpp::is_ip_nbr_active()
const char *val;

val = getenv("NO_LINUX_NL");
if (val && (*val == 'y' || *val == 'Y')) {
nbr_active = true;
if (val && (*val == 'n' || *val == 'N')) {
nbr_active = false;
}
nbr_env_read = true;
}
Expand Down
Loading