Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ipv6 route in vnet #1160

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion fpmsyncd/routesync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ void RouteSync::onVnetRouteMsg(int nlmsg_type, struct nl_object *obj, string vne
char destipprefix[MAX_ADDR_SIZE + 1] = {0};
nl_addr2str(dip, destipprefix, MAX_ADDR_SIZE);

string vnet_dip = vnet + string(":") + destipprefix;
string vnet_dip = vnet + string("|") + destipprefix;
SWSS_LOG_DEBUG("Receive new vnet route message %s", vnet_dip.c_str());

if (nlmsg_type == RTM_DELROUTE)
Expand Down
4 changes: 2 additions & 2 deletions orchagent/vnetorch.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ extern std::vector<VR_TYPE> vr_cntxt;
class VNetRequest : public Request
{
public:
VNetRequest() : Request(vnet_request_description, ':') { }
VNetRequest() : Request(vnet_request_description, '|') { }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@liron-ze ,|is used as a delimiter in config_db. Can you keep the same : and try fixing this in Request class?

};

struct tunnelEndpoint
Expand Down Expand Up @@ -367,7 +367,7 @@ const request_description_t vnet_route_description = {
class VNetRouteRequest : public Request
{
public:
VNetRouteRequest() : Request(vnet_route_description, ':') { }
VNetRouteRequest() : Request(vnet_route_description, '|') { }
};

struct VNetNextHopUpdate
Expand Down