Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
2 changes: 1 addition & 1 deletion .azure-pipelines/test-docker-sonic-vs-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ jobs:
params=" ${params} --num-ports=${{ parameters.num_ports }} "
fi

all_tests=$(ls test_*.py | xargs)
all_tests=$(ls test_mirror_port_erspan.py | xargs)
all_tests="${all_tests} p4rt dash"

if [ -n '${{ parameters.run_tests_pattern }}' ]; then
Expand Down
5 changes: 5 additions & 0 deletions orchagent/routeorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1870,6 +1870,11 @@ bool RouteOrch::addRoute(RouteBulkContext& ctx, const NextHopGroupKey &nextHops)
return false;
}
}
else if (m_neighOrch->isNextHopFlagSet(nexthop, NHFLAGS_IFDOWN))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just thinking if it impact tunnel route in dualtor case if NHFLAG is down? @Ndancejic , can you check this change?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think tunnel routes should be safe, I believe line 1839 would catch interface nexthops. also I think routes to tunnel nh get skipped in doTask:

/* skip direct routes to tun0 */
else if (alsv[0] == "tun0")
{
    it = consumer.m_toSync.erase(it);
}

{
SWSS_LOG_INFO("Interface down for NH %s, skip this Route for programming", nexthop.to_string().c_str());
return false;
}
}
/* For non-existent MPLS NH, check if IP neighbor NH exists */
else if (nexthop.isMplsNextHop() &&
Expand Down
3 changes: 2 additions & 1 deletion tests/mock_tests/flowcounterrouteorch_ut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ namespace flowcounterrouteorch_test
for (const auto &it : ports)
{
portTable.set(it.first, it.second);
portTable.set(it.first, {{ "oper_status", "up" }});
}

// Set PortConfigDone
Expand Down Expand Up @@ -412,4 +413,4 @@ namespace flowcounterrouteorch_test
vrf_consumer->addToSync(entries);
static_cast<Orch *>(gVrfOrch)->doTask();
}
}
}
2 changes: 1 addition & 1 deletion tests/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ JUNITXML=$(echo "$TESTS" | cut -d "." -f1)_tr.xml
set -x
for ((i=1; i<=$RETRY; i++)); do
echo "Running the py test for tests: $TESTS, $i/$RETRY..."
py.test -v --force-flaky --junitxml="$JUNITXML" $PY_TEST_PARAMS --imgname="$IMAGE_NAME" $TESTS && break
py.test -v --junitxml="$JUNITXML" $PY_TEST_PARAMS --imgname="$IMAGE_NAME" $TESTS && break
done
Loading