Skip to content

Commit 0496d61

Browse files
Merge branch 'master' into saksarav-nokia-fec-counters
2 parents 6a7b271 + 5671e08 commit 0496d61

34 files changed

+3088
-109
lines changed

.azure-pipelines/docker-sonic-vs/start.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,15 @@ else
6161
qos_cmd="-j /tmp/qos.json"
6262
fi
6363

64+
if [ -f /usr/share/sonic/single_asic_voq_fs/default_config.json ]; then
65+
sonic-cfggen -j /usr/share/sonic/single_asic_voq_fs/default_config.json --print-data > /tmp/voq.json
66+
voq_cmd="-j /tmp/voq.json"
67+
fi
68+
6469
sonic-cfggen -p /usr/share/sonic/device/$PLATFORM/$PLATFORM_CONF -k $HWSKU --print-data > /tmp/ports.json
6570
# change admin_status from up to down; Test cases dependent
6671
sed -i "s/up/down/g" /tmp/ports.json
67-
sonic-cfggen -j /etc/sonic/init_cfg.json $buffers_cmd $qos_cmd -j /tmp/ports.json --print-data > /etc/sonic/config_db.json
72+
sonic-cfggen -j /etc/sonic/init_cfg.json $buffers_cmd $qos_cmd $voq_cmd -j /tmp/ports.json --print-data > /etc/sonic/config_db.json
6873
fi
6974

7075
sonic-cfggen -t /usr/share/sonic/templates/copp_cfg.j2 > /etc/sonic/copp_cfg.json

.azure-pipelines/test-docker-sonic-vs-template.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ jobs:
180180
retry=3
181181
IMAGE_NAME=docker-sonic-vs:$(Build.DefinitionName).$(Build.BuildNumber).asan-${{ parameters.asan }}
182182
echo $all_tests | xargs -n 1 | xargs -P 8 -I TEST_MODULE sudo DEFAULT_CONTAINER_REGISTRY=publicmirror.azurecr.io/ ./run-tests.sh "$IMAGE_NAME" "$params" "TEST_MODULE" 3
183+
single_asic_voq_tests="test_portchannel.py test_neighbor.py test_route.py"
184+
echo $single_asic_voq_tests | xargs -n 1 | xargs -P 3 -I TEST_MODULE sudo ./run-tests.sh "$IMAGE_NAME" "--force-recreate-dvs --switch-mode=single_asic_voq_fs" "TEST_MODULE" 3
183185
184186
rm -rf $(Build.ArtifactStagingDirectory)/download
185187
displayName: "Run vs tests"

fpmsyncd/fpmlink.cpp

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,11 +281,21 @@ void FpmLink::processFpmMessage(fpm_msg_hdr_t* hdr)
281281
/* EVPN Type5 Add route processing */
282282
processRawMsg(nl_hdr);
283283
}
284-
else if(nl_hdr->nlmsg_type == RTM_NEWNEXTHOP || nl_hdr->nlmsg_type == RTM_DELNEXTHOP)
284+
else if(nl_hdr->nlmsg_type == RTM_NEWSRV6VPNROUTE || nl_hdr->nlmsg_type == RTM_DELSRV6VPNROUTE)
285+
{
286+
/* rtnl api dont support RTM_NEWSRV6VPNROUTE/RTM_DELSRV6VPNROUTE yet. Processing as raw message*/
287+
processRawMsg(nl_hdr);
288+
}
289+
else if(nl_hdr->nlmsg_type == RTM_NEWNEXTHOP || nl_hdr->nlmsg_type == RTM_DELNEXTHOP)
285290
{
286291
/* rtnl api dont support RTM_NEWNEXTHOP/RTM_DELNEXTHOP yet. Processing as raw message*/
287292
processRawMsg(nl_hdr);
288293
}
294+
else if(nl_hdr->nlmsg_type == RTM_NEWPICCONTEXT || nl_hdr->nlmsg_type == RTM_DELPICCONTEXT)
295+
{
296+
/* rtnl api dont support RTM_NEWPICCONTEXT/RTM_DELPICCONTEXT yet. Processing as raw message*/
297+
processRawMsg(nl_hdr);
298+
}
289299
else
290300
{
291301
NetDispatcher::getInstance().onNetlinkMessage(msg);

fpmsyncd/fpmlink.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717

1818
#define RTM_NEWSRV6LOCALSID 1000
1919
#define RTM_DELSRV6LOCALSID 1001
20+
#define RTM_NEWPICCONTEXT 2000
21+
#define RTM_DELPICCONTEXT 2001
22+
#define RTM_NEWSRV6VPNROUTE 3000
23+
#define RTM_DELSRV6VPNROUTE 3001
2024

2125
namespace swss {
2226

0 commit comments

Comments
 (0)