Skip to content

Commit

Permalink
[intfsorch] Create subport with the entry contains necessary attribut…
Browse files Browse the repository at this point in the history
…es (sonic-net#1650)

Subport mtu and admin_status initialized to values of 0 and false resepectively.
  • Loading branch information
peter-yu authored Mar 5, 2021
1 parent c2cbeb5 commit b6db9dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions orchagent/intfsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -588,8 +588,8 @@ void IntfsOrch::doTask(Consumer &consumer)
string vrf_name = "", vnet_name = "", nat_zone = "";
MacAddress mac;

uint32_t mtu;
bool adminUp;
uint32_t mtu = 0;
bool adminUp = false;
uint32_t nat_zone_id = 0;
string proxy_arp = "";
string inband_type = "";
Expand Down Expand Up @@ -742,7 +742,7 @@ void IntfsOrch::doTask(Consumer &consumer)
Port port;
if (!gPortsOrch->getPort(alias, port))
{
if (isSubIntf)
if (!ip_prefix_in_key && isSubIntf)
{
if (!gPortsOrch->addSubPort(port, alias, adminUp, mtu))
{
Expand Down

0 comments on commit b6db9dd

Please sign in to comment.