Skip to content

Commit

Permalink
Changed name of vlan -> vlan_id
Browse files Browse the repository at this point in the history
Signed-off-by: Vadym Hlushko <[email protected]>
  • Loading branch information
vadymhlushko-mlnx committed Dec 6, 2021
1 parent 621b12a commit e991d29
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion orchagent/nvgreorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ bool NvgreTunnelMapOrch::addOperation(const Request& request)
return true;
}

sai_vlan_id_t vlan_id = (sai_vlan_id_t) request.getAttrVlan("vlan");
sai_vlan_id_t vlan_id = (sai_vlan_id_t) request.getAttrVlan("vlan_id");
Port port;

if (!gPortsOrch->getVlanByVlanId(vlan_id, port))
Expand Down
4 changes: 2 additions & 2 deletions orchagent/nvgreorch.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ const request_description_t nvgre_tunnel_map_request_description = {
{ REQ_T_STRING, REQ_T_STRING },
{
{ "vsid", REQ_T_UINT },
{ "vlan", REQ_T_VLAN },
{ "vlan_id", REQ_T_VLAN },
},
{ "vsid", "vlan" }
{ "vsid", "vlan_id" }
};

class NvgreTunnelMapRequest : public Request
Expand Down
2 changes: 1 addition & 1 deletion tests/test_nvgre_tunnel.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def create_nvgre_tunnel_map_entry(self, dvs, tunnel_name, tunnel_map_entry_name,
NVGRE_TUNNEL_MAP, '|', f'{tunnel_name}|{tunnel_map_entry_name}',
[
('vsid', vsid),
('vlan', f'Vlan{vlan_id}'),
('vlan_id', f'Vlan{vlan_id}'),
],
)
time.sleep(1)
Expand Down

0 comments on commit e991d29

Please sign in to comment.