Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
257fc6b
Update snappi_fixtures.py
kamalsahu0001 Apr 5, 2025
5dc0b69
Update traffic_generation.py
kamalsahu0001 Apr 5, 2025
17e2a0a
Update traffic_generation.py
kamalsahu0001 Apr 6, 2025
ef5fef1
Add test to verify db_migrator with DNS_NAMESERVER (#17639)
ganglyu Apr 7, 2025
f801784
Fix pfcwd/test_pfcwd_function.py for dualtor topologies (#17833)
vivekverma-arista Apr 7, 2025
4a30089
Refine baseline pipeline yml and fix error (#17499)
xwjiang-ms Apr 7, 2025
ca8b7ee
Choose correct vlan ip for 2vlan config in advance_reboot (#17831)
ZhaohuiS Apr 7, 2025
1edcc1d
skip dynamic_acl on platform x86_64-8101_32fh_o_c01-r0 (#17848)
yyynini Apr 7, 2025
6cc333b
refactor: optimize mgmt ipv6 only test (#17851)
cyw233 Apr 7, 2025
794cc01
feat: support trimming lab inv file (#17348)
cyw233 Apr 7, 2025
b3cb2aa
Add multi-asic support for test-intf-fec (#17814)
auspham Apr 7, 2025
14a1dd8
warm boot to config save before reboot (#17849)
rajendrat Apr 7, 2025
35edb31
[KubeSonic] Add gnmi to container_upgrade (#17796)
ganglyu Apr 7, 2025
a1840a7
Update pfcwd_multi_node_helper.py
kamalsahu0001 Apr 7, 2025
21977aa
[performance_meter] add swss create time criteria (#17740)
Xichen96 Apr 8, 2025
c08d924
[mcx] fix bug with mcx deployment script (#17841)
Xichen96 Apr 8, 2025
1e8d595
[port_util] Add port alias-to-name mapping for Arista-7050CX3-32S-S12…
lizhijianrd Apr 8, 2025
05ebcf8
Update pfcwd_runtime_traffic_helper.py
kamalsahu0001 Apr 8, 2025
9c12144
Update pfcwd_burst_storm_helper.py
kamalsahu0001 Apr 8, 2025
8e791be
Update pfcwd_basic_helper.py
kamalsahu0001 Apr 8, 2025
2005433
[dualtor] update template to latest (#17879)
Xichen96 Apr 8, 2025
0cd8122
Fixed swss feature name for test_lldp_neighbor_post_orchagent_reboot …
anamehra Apr 8, 2025
4eac982
Add a fixture to enable nat for dpus (#17753)
JibinBao Apr 8, 2025
3b6f291
Ignore subnet decap test when no portchannels found (#17810)
Janetxxx Apr 9, 2025
bf4068a
[sonic-mgmt][dualtor-aa] Fix flakiness of fdb/test_fdb_mac_learning.p…
vkjammala-arista Apr 9, 2025
15d48b8
Increase timeout to 5 in verify_packet_any_port for background traffi…
vivekverma-arista Apr 9, 2025
878bc33
Disable all bmp table after test to avoid potential impact to other t…
FengPan-Frank Apr 9, 2025
294a4b0
Make lossyqueuevoq check platform/hwskus. (#17726)
rbpittman Apr 9, 2025
98c2042
Configure macsec rekey period on EOS hosts (#17811)
sivanuka Apr 10, 2025
83eb870
[M1] Add doc for M1 topology announce routes (#17905)
lizhijianrd Apr 10, 2025
91ddf8e
[SmartSwitch] Add tests for reboot of a smart switch (#16566)
vvolam Apr 10, 2025
309ff9d
Rewrite platform_tests/broadcom/test_ser.py (#17381)
dayouliu1 Apr 10, 2025
58a5762
[dhcp_relay] Optimize log for test_dhcp_relay (#17906)
yaqiangz Apr 10, 2025
53e5862
Revert "[dhcp_relay] Remove test_dhcp_relay test in t0-2vlans (#17208…
yaqiangz Apr 10, 2025
f6cbc4e
Skip test_reload_configuration_checks on Cisco platform (#17868)
wsycqyz Apr 10, 2025
f1bcd6e
update d18u8s4 PT0 ASN to 4 bytes (#17888)
sdszhang Apr 10, 2025
6aeaf31
[dualtor_io] Add test_tor_switchover_impact test (#15262)
Ndancejic Apr 10, 2025
31f9f66
Fix srv6/test_srv6_dataplane.py (#17896)
BYGX-wcr Apr 10, 2025
2090c16
Fix pl test to handle outbound_direction_lookup (#17764)
prabhataravind Apr 10, 2025
b92f8a8
Only print the matched syslog in loganalzyer teardown check, no trace…
ZhaohuiS Apr 11, 2025
e62f2c1
[dualtor_io] Allow duplications for link down downstream I/O (#17909)
lolyu Apr 11, 2025
9f2a35f
Revert "Skip test_vnet_decap on Cisco-8000 with 202411 (#17776)" (#17…
kevinskwang Apr 11, 2025
1f3e35e
Support Ubuntu 24.04 server in KVM (#17883)
xwjiang-ms Apr 11, 2025
07c9efa
add hwsku V64 (#17897)
yyynini Apr 11, 2025
e51fd06
Default the inner dscp to outer dscp map to be 1-1. (#17860)
rbpittman Apr 11, 2025
313a9ac
Add dualtor fixtures to no_traffic test. (#17916)
rbpittman Apr 11, 2025
45dea3b
add template t0-isolated-d96u32s2-leaf.j2 and Arista-7060X6-16PE-384C…
sdszhang Apr 11, 2025
723f8a4
Restore config after vxlan_crm from vxlan_ecmp. (#17767)
dypet Apr 11, 2025
922290a
Fix loganalyzer regex to ignore chronyd related ERR logs (#17880)
prabhataravind Apr 11, 2025
887a888
AddCluster Test (#17744)
xincunli-sonic Apr 11, 2025
5fdde1c
Add test_srv6_uN_no_vlan_flooding test case (#17861)
BYGX-wcr Apr 11, 2025
edf0495
Revert "Revert "[dhcp_relay] Remove test_dhcp_relay test in t0-2vlans…
yaqiangz Apr 11, 2025
8815569
Revert "Disable all bmp table after test to avoid potential impact to…
FengPan-Frank Apr 12, 2025
3d6e1b6
[M1/M2/M3] Skip test_null_route_helper on M1/M2/M3 topo (#17962)
lizhijianrd Apr 12, 2025
93589c7
[pretest] update collect_dut_lossless_prio method (#17907)
AntonHryshchuk Apr 13, 2025
91ca1c1
[Mellanox] Update qos sai test for SN56xx buffer configuration alignm…
JibinBao Apr 13, 2025
3fa6c24
Increase timeout for gathering sonic hosts facts (#17945)
xwjiang-ms Apr 14, 2025
d1c5260
Enable bmp table dump before all test cases (#17963)
FengPan-Frank Apr 14, 2025
e68abb0
[GCU] Fixing argument passed to format_json function for multi-asic c…
okaravasi Apr 14, 2025
86cb392
Fix BFD status check and ipv6 PTF intermittent issue. (#17819)
dypet Apr 14, 2025
b53087c
Skip nasa proc check because that the usage of nasa is always high it…
JibinBao Apr 14, 2025
4166281
Fix test_radv_ipv6_ra (#17275)
Pterosaur Apr 14, 2025
93350f8
Improve arp_responder.py performance (#17280)
saiarcot895 Apr 14, 2025
ed8000e
Switch from tcpdump to dumpcap (#17276)
saiarcot895 Apr 14, 2025
66b237e
Pfcwd multi port: Fix for Multi-asic Scenario and test_multi_port Req…
vikshaw-Nokia Apr 15, 2025
d2e590e
Disable PFC-WD during PCBB and some wmk test improvements (#17889)
rbpittman Apr 15, 2025
d216f35
[ondatra] Add ThinKit-on-Ondatra support/tests. (#17720)
ksravani-hcl Apr 15, 2025
d418674
Reduce flakiness of test_l2_configure.py. (#17577)
hdwhdw Apr 15, 2025
22f4602
Fix dependency issue in test_vxlan_crm.py (#17996)
yue-fred-gao Apr 15, 2025
352a0eb
[watchdog] Add the x86_64-8101_32fh_o_c01-r0 config to the platform_t…
vhlushko-cisco Apr 15, 2025
e1ad1f1
Fix vlan vs router mac issue with test_qos_dscp_mapping.py (#17846)
rbpittman Apr 16, 2025
48bb3f1
add hwsku Cisco-8101-V64 in cisco-8000_gb_hwskus list (#17950)
yyynini Apr 16, 2025
6cbb869
refactor: optimize snmp intf test (#17975)
cyw233 Apr 16, 2025
04d66cc
fix the issue when the timezone on the DUT is not UTC (#17863)
nhe-NV Apr 16, 2025
c3df3c8
Align the sensors data for SN4280 with sonic-buildimage PR#21845 (#17…
congh-nvidia Apr 16, 2025
428591e
Add retry when checking fec mode restore status (#17679)
echuawu Apr 16, 2025
44d43d9
Enhance arp update test to support port toggle at dualtor active acti…
echuawu Apr 16, 2025
a00e11b
limit parallel_run cct tasks number from 24 to 8 for fixture setup_bg…
weiguo-nvidia Apr 16, 2025
247169c
Update CPU threshold for telemetry test_events case (#16611)
weiguo-nvidia Apr 16, 2025
3ee5e9e
Add SmartSwitch HA feature test plan (#13043)
zjswhhh Apr 16, 2025
3c5033f
Update generic hash test to support dualtor active active topology (#…
echuawu Apr 16, 2025
6838d96
[M1] Add M1 up/down stream neighbor type (#17978)
lizhijianrd Apr 17, 2025
454d27e
[acl/test_acl.py] Ensure frontend dut is used in ACL testing (#17582)
Javier-Tan Apr 17, 2025
5678133
[iface_namingmode/test_iface_namingmode] Ensure LLDP neighbor comes b…
Javier-Tan Apr 17, 2025
2df5d77
Fix route/test_static_route.py (#17998)
vivekverma-arista Apr 17, 2025
3472b0c
Fix telemetry/test_events.py for dualtor (#17448)
vivekverma-arista Apr 17, 2025
f4ed81e
fix incompatible import of scapy and skip when no lldp neigh (#18020)
BYGX-wcr Apr 17, 2025
b335855
[CI]Add trigger type for test plan creation, add source repo and bran…
lerry-lee Apr 17, 2025
afb4542
[M1] Update everflow testcase to support M1 topo (#18027)
lizhijianrd Apr 17, 2025
3ff8a6c
[Snappi] - Infra change for dynamic port selection from the setup rep…
amitpawar12 Apr 17, 2025
a0de68a
[Fix for Issue #17413] Modified the Tx Rx port id list selection for …
selldinesh Apr 17, 2025
6cb2918
Changes for VOQ single-dut multi-asic (#17837)
sanjair-git Apr 17, 2025
dbeaeb3
[yang] Add YANG check in boot health check and config_reload (#17755)
wen587 Apr 18, 2025
c704237
[dualtor-aa] Fix `test_arp_dualtor` on active-active dualtor (#18030)
lolyu Apr 18, 2025
bcfef97
Increase KVM testbed memory from 4G to 6G (#18022)
xwjiang-ms Apr 18, 2025
a5af471
LLDP: Fix issue with restart_orchagent as VOQ does not support warm r…
wumiaont Apr 18, 2025
19a921f
Changes for VOQ single-dut multi-asic (#17838)
sanjair-git Apr 18, 2025
849718c
Changes for VOQ single-dut multi-asic (#17852)
sanjair-git Apr 18, 2025
806b3d5
Changes for VOQ single-dut multi-asic (#17845)
sanjair-git Apr 18, 2025
cc69815
Force eos default creds to be string (#18026)
xwjiang-ms Apr 18, 2025
2292085
Make "autoneg" in connection graph optional (#17961)
wangxin Apr 18, 2025
ba3be69
Add certain error signatures to loganalyzer ignore list (#18017)
prabhataravind Apr 18, 2025
122c6e9
[Mellanox] Skip the fib nvgre hash test on SPC1 with t1-lag topology …
congh-nvidia Apr 18, 2025
852fb47
Introducing changes for minigraph generation and add topo to work for…
arlakshm Apr 18, 2025
f7f973a
Handle msft route-map as well (#16532)
sanjair-git Apr 18, 2025
7240e78
Add feature check when enable bmp in config_sonic_basedon_testbed.yml…
FengPan-Frank Apr 18, 2025
bad4350
Remove unused arguments when calling testbed_config_vchassis playbook…
BYGX-wcr Apr 18, 2025
f6b751b
[dualtor] Skip pfcwd warm reboot on dualtor (#18031)
lolyu Apr 18, 2025
d39d7f8
Add Dash meter class, policy, rule config to PL tests (#17884)
mukeshmv Apr 18, 2025
c016ef8
[DHCP] Add dhcp_server and dhcp_relay services to critical services i…
yaqiangz Apr 21, 2025
b8877c6
Update GNMI test case to support cname role list. (#17866)
liuh-80 Apr 21, 2025
2486785
Fix t0-isolated-v6 topo errors (#18029)
sdszhang Apr 21, 2025
e8d5350
Disable BMP feature for chassis supervisors (#18037)
BYGX-wcr Apr 21, 2025
df04ebc
[Test Plan]Static SRv6 test plan (#17437)
BYGX-wcr Apr 21, 2025
0247297
[Qos]HeadroomPoolSize test with dynamic_threshold based buffer alloca…
ansrajpu-git Apr 22, 2025
8c888ce
DASH PL tests fixes (#17881)
prabhataravind Apr 22, 2025
bfdd6c4
Merge branch 'sonic-net:master' into snappi-changes-work
kamalsahu0001 Apr 22, 2025
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
52 changes: 26 additions & 26 deletions .azure-pipelines/baseline_test/baseline.test.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,79 +8,77 @@ jobs:
steps:
- template: ../impacted_area_testing/get-impacted-area.yml

- job: run_impacted_area_test
- job: impacted_area_kvmtest
displayName: " "
cancelTimeoutInMinutes: 10
dependsOn: get_impacted_area
strategy:
matrix:
t0:
impacted-area-kvmtest-t0:
TESTBED_PREP_TOPOLOGY: t0
CHECKER: t0_checker
TOPOLOGY: t0
PREPARE_TIME: 30
NUM_ASIC: 1
DEPLOY_MG_EXTRA_PARAMS: ""
COMMON_EXTRA_PARAMS: ""
t0_2vlans:
impacted-area-kvmtest-t0-2vlans:
TESTBED_PREP_TOPOLOGY: t0-2vlans
CHECKER: t0-2vlans_checker
DEPLOY_MG_EXTRA_PARAMS: "-e vlan_config=two_vlan_a "
TOPOLOGY: t0
PREPARE_TIME: 30
NUM_ASIC: 1
COMMON_EXTRA_PARAMS: ""
t1_lag:
impacted-area-kvmtest-t1-lag:
TESTBED_PREP_TOPOLOGY: t1
CHECKER: t1_checker
TOPOLOGY: t1-lag
# 50 mins for preparing testbed, 30 mins for pre-test and post-test
PREPARE_TIME: 80
NUM_ASIC: 1
COMMON_EXTRA_PARAMS: ""
DEPLOY_MG_EXTRA_PARAMS: ""
dualtor:
impacted-area-kvmtest-dualtor:
TESTBED_PREP_TOPOLOGY: dualtor
CHECKER: dualtor_checker
COMMON_EXTRA_PARAMS: "--disable_loganalyzer "
TOPOLOGY: dualtor
# 30 mins for preparing testbed, 30 mins for pre-test and 20 mins for post-test
PREPARE_TIME: 80
NUM_ASIC: 1
DEPLOY_MG_EXTRA_PARAMS: ""
t1_multi_asic:
impacted-area-kvmtest-multi-asic-t1:
TESTBED_PREP_TOPOLOGY: t1-multi-asic
CHECKER: t1-multi-asic_checker
TOPOLOGY: t1-8-lag
NUM_ASIC: 4
PREPARE_TIME: 30
sonic_t0:
impacted-area-kvmtest-t0-sonic:
TESTBED_PREP_TOPOLOGY: t0-sonic
CHECKER: t0-sonic_checker
COMMON_EXTRA_PARAMS: "--neighbor_type=sonic "
TOPOLOGY: t0-64-32
PREPARE_TIME: 40
VM_TYPE: vsonic
NUM_ASIC: 1
DEPLOY_MG_EXTRA_PARAMS: ""
dpu:
SPECIFIC_PARAM: '[
{"name": "bgp/test_bgp_fact.py", "param": "--neighbor_type=sonic --enable_macsec --macsec_profile=128_SCI,256_XPN_SCI"},
{"name": "macsec", "param": "--neighbor_type=sonic --enable_macsec --macsec_profile=128_SCI,256_XPN_SCI"}
]'
impacted-area-kvmtest-dpu:
TESTBED_PREP_TOPOLOGY: dpu
CHECKER: dpu_checker
TOPOLOGY: dpu
PREPARE_TIME: 30
NUM_ASIC: 1
COMMON_EXTRA_PARAMS: ""
DEPLOY_MG_EXTRA_PARAMS: ""
SPECIFIC_PARAM: '[
{"name": "dash/test_dash_vnet.py", "param": "--skip_dataplane_checking"}
]'
condition: contains(dependencies.get_impacted_area.outputs['SetVariableTask.PR_CHECKERS'], variables['CHECKER'])
variables:
TEST_SCRIPTS: $[ dependencies.get_impacted_area.outputs['SetVariableTask.TEST_SCRIPTS'] ]
NUM_ASIC: 1
VM_TYPE: ceos
COMMON_EXTRA_PARAMS: ""
DEPLOY_MG_EXTRA_PARAMS: ""
SPECIFIC_PARAM: "[]"
timeoutInMinutes: 240
continueOnError: false
pool: sonic-ubuntu-1c
steps:
- template: ../impacted_area_testing/calculate-instance-numbers.yml
parameters:
TOPOLOGY: $(TESTBED_PREP_TOPOLOGY)
BUILD_BRANCH: "master"
BUILD_BRANCH: $(Build.SourceBranchName)
PREPARE_TIME: $(PREPARE_TIME)

- template: ../run-test-elastictest-template.yml
Expand All @@ -91,10 +89,12 @@ jobs:
MAX_WORKER: $(INSTANCE_NUMBER)
DEPLOY_MG_EXTRA_PARAMS: $(DEPLOY_MG_EXTRA_PARAMS)
COMMON_EXTRA_PARAMS: $(COMMON_EXTRA_PARAMS)
KVM_IMAGE_BRANCH: "master"
MGMT_BRANCH: "master"
KVM_IMAGE_BRANCH: $(Build.SourceBranchName)
MGMT_BRANCH: $(Build.SourceBranchName)
BUILD_REASON: "BaselineTest"
RETRY_TIMES: "0"
STOP_ON_FAILURE: "False"
TEST_PLAN_NUM: $(BASELINE_MGMT_PUBLIC_MASTER_TEST_NUM)
NUM_ASIC: $(NUM_ASIC)
VM_TYPE: $(VM_TYPE)
SPECIFIC_PARAM: $(SPECIFIC_PARAM)
1 change: 1 addition & 0 deletions .azure-pipelines/pr_test_scripts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,7 @@ multi-asic-t1-lag:
- http/test_http_copy.py
- telemetry/test_telemetry_cert_rotation.py
- telemetry/test_telemetry.py
- generic_config_updater/test_multiasic_addcluster.py
- generic_config_updater/test_multiasic_idf.py
- generic_config_updater/test_multiasic_linkcrc.py

Expand Down
37 changes: 33 additions & 4 deletions .azure-pipelines/test_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,23 @@ def run_cmd(cmd):
return stdout, stderr, return_code


def get_trigger_type(tp_type: str, build_reason: str):
# 1. NIGHTLY type(only nightly test from pipeline)
if tp_type.upper() == "NIGHTLY":
return "NightlyTest"

# 2. PR type(pr test or baseline test)
# check build reason
if build_reason.upper() == "BASELINETEST":
return "BaselineTest"

if build_reason.upper() == "PULLREQUEST":
return "PRTest"

# Else, return None, no impact
return None


class TestPlanManager(object):

def __init__(self, scheduler_url, frontend_url, client_id, managed_identity_id):
Expand Down Expand Up @@ -251,6 +268,7 @@ def create(self, topology, test_plan_name="my_test_plan", deploy_mg_extra_params
retry_cases_include = parse_list_from_str(kwargs.get("retry_cases_include", None))
retry_cases_exclude = parse_list_from_str(kwargs.get("retry_cases_exclude", None))
ptf_image_tag = kwargs.get("ptf_image_tag", None)
build_reason = kwargs.get("build_reason", "PullRequest")

print(
f"Creating test plan, topology: {topology}, name: {test_plan_name}, "
Expand Down Expand Up @@ -347,7 +365,8 @@ def create(self, topology, test_plan_name="my_test_plan", deploy_mg_extra_params
"requester": kwargs.get("requester", "Pull Request"),
"source_repo": kwargs.get("source_repo"),
"pull_request_id": pr_id,
"build_id": build_id
"build_id": build_id,
"type": get_trigger_type(test_plan_type, build_reason)
},
"extra_params": {},
"priority": 10
Expand Down Expand Up @@ -994,13 +1013,22 @@ def poll(self, test_plan_id, interval=60, timeout=-1, expected_state="", expecte
if args.action == "create":
pr_id = os.environ.get("SYSTEM_PULLREQUEST_PULLREQUESTNUMBER") or os.environ.get(
"SYSTEM_PULLREQUEST_PULLREQUESTID")
repo = os.environ.get("BUILD_REPOSITORY_PROVIDER")
reason = args.build_reason if args.build_reason else os.environ.get("BUILD_REASON")
build_repo_provider = os.environ.get("BUILD_REPOSITORY_PROVIDER")
build_reason = args.build_reason if args.build_reason else os.environ.get("BUILD_REASON")
build_id = os.environ.get("BUILD_BUILDID")
job_name = os.environ.get("SYSTEM_JOBDISPLAYNAME")
repo_name = args.repo_name if args.repo_name else os.environ.get("BUILD_REPOSITORY_NAME")
branch_name = os.environ.get("SYSTEM_PULLREQUEST_TARGETBRANCH") if build_reason.upper() == "PULLREQUEST" \
else os.environ.get("BUILD_SOURCEBRANCHNAME")

# Only pr test show pr id
pr_info = f"PR_{pr_id}_" if build_reason.upper() == "PULLREQUEST" else ""

# Only pr test and baseline test show repo and branch
source_repo_info = f"{repo_name}_{branch_name}_" if args.test_plan_type == "PR" else ""

test_plan_prefix = f"{repo}_{reason}_PR_{pr_id}_BUILD_{build_id}_JOB_{job_name}".replace(' ', '_')
test_plan_prefix = (f"{build_repo_provider}_{build_reason}_{source_repo_info}{pr_info}"
f"BUILD_{build_id}_JOB_{job_name}").replace(' ', '_')

scripts = args.scripts
specific_param = json.loads(args.specific_param)
Expand Down Expand Up @@ -1058,6 +1086,7 @@ def poll(self, test_plan_id, interval=60, timeout=-1, expected_state="", expecte
requester=args.requester,
max_execute_seconds=args.max_execute_seconds,
lock_wait_timeout_seconds=args.lock_wait_timeout_seconds,
build_reason=build_reason
)
elif args.action == "poll":
tp.poll(args.test_plan_id, args.interval, args.timeout, args.expected_state, args.expected_result)
Expand Down
19 changes: 19 additions & 0 deletions ansible/config_sonic_basedon_testbed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,25 @@
service: name=chrony state=restarted enabled=true
when: chrony_service.status.LoadState != "not-found"

- name: Check if "config bmp" is supported
shell: "config -h | grep 'BMP-related configuration'"
register: bmp_support_check
ignore_errors: true
changed_when: false
failed_when: false

- name: Enable bmp relevant config dump
block:
- name: execute cli "config bmp enable bgp-neighbor-table" to enable bgp-neighbor-table
command: sudo config bmp enable bgp-neighbor-table

- name: execute cli "config bmp enable bgp-rib-in-table" to enable bgp-rib-in-table
command: sudo config bmp enable bgp-rib-in-table

- name: execute cli "config bmp enable bgp-rib-out-table" to enable bgp-rib-out-table
command: sudo config bmp enable bgp-rib-out-table
when: bmp_support_check.rc == 0

- name: config static route for trex traffic passthrough
become: true
command: "{{ item }}"
Expand Down
25 changes: 23 additions & 2 deletions ansible/devutil/conn_graph_helper.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,32 @@
import os
import inspect
import sys
import imp
try:
import importlib.util
import importlib.machinery
use_importlib = True
except ImportError:
import imp
use_importlib = False

CONN_GRAPH_LOG = "/tmp/conn_graph_debug.txt"


def load_source(modname, filename):
if use_importlib:
loader = importlib.machinery.SourceFileLoader(modname, filename)
spec = importlib.util.spec_from_file_location(modname, filename, loader=loader)
module = importlib.util.module_from_spec(spec)
# The module is always executed and not cached in sys.modules.
# Uncomment the following line to cache the module.
# sys.modules[module.__name__] = module
loader.exec_module(module)
else:
# For Python 2.x compatibility
module = imp.load_source(modname, filename)
return module


def get_conn_graph_facts(hostnames):
"""
@summary: Load conn_graph_facts from conn_graph_facts.xml
Expand All @@ -18,7 +39,7 @@ def get_conn_graph_facts(hostnames):
if ansible_path not in sys.path:
sys.path.append(ansible_path)

utils = imp.load_source('conn_graph_utils', os.path.join(
utils = load_source('conn_graph_utils', os.path.join(
ansible_path, 'library/conn_graph_facts.py'))
utils.LAB_GRAPHFILE_PATH = os.path.join(
ansible_path, utils.LAB_GRAPHFILE_PATH)
Expand Down
4 changes: 2 additions & 2 deletions ansible/group_vars/all/creds.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
eos_default_login: "admin"
eos_default_password: ""
eos_login: admin
eos_password: 123456
eos_password: "123456"
eos_root_user: root
eos_root_password: 123456
eos_root_password: "123456"

junos_default_login: "root"
junos_default_password: ""
Expand Down
5 changes: 0 additions & 5 deletions ansible/group_vars/sonic/sku-sensors-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2549,8 +2549,6 @@ sensors_checks:
- mp2855-i2c-39-69/PMIC-14 COMEX VDDCR_CPU PHASE TEMP/temp1_crit_alarm
- mp2855-i2c-39-69/PMIC-14 COMEX VDDCR_SOC PHASE TEMP/temp2_crit_alarm

- 00000800400-mdio-8/temp1/temp1_max_alarm

- jc42-i2c-43-1e/SODIMM3 Temp/temp1_max_alarm
- jc42-i2c-43-1e/SODIMM3 Temp/temp1_min_alarm
- jc42-i2c-43-1e/SODIMM3 Temp/temp1_crit_alarm
Expand Down Expand Up @@ -2614,9 +2612,6 @@ sensors_checks:
- - mp2855-i2c-39-69/PMIC-14 COMEX VDDCR_SOC PHASE TEMP/temp2_input
- mp2855-i2c-39-69/PMIC-14 COMEX VDDCR_SOC PHASE TEMP/temp2_crit

- - 00000800400-mdio-8/temp1/temp1_input
- 00000800400-mdio-8/temp1/temp1_crit

- - jc42-i2c-43-1e/SODIMM3 Temp/temp1_input
- jc42-i2c-43-1e/SODIMM3 Temp/temp1_crit

Expand Down
6 changes: 3 additions & 3 deletions ansible/group_vars/sonic/variables
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ broadcom_th_hwskus: ['Force10-S6100', 'Arista-7060CX-32S-C32', 'Arista-7060CX-32
broadcom_th2_hwskus: ['Arista-7260CX3-D108C8', 'Arista-7260CX3-D108C10', 'Arista-7260CX3-C64', 'Arista-7260CX3-Q64']
broadcom_th3_hwskus: ['DellEMC-Z9332f-M-O16C64', 'DellEMC-Z9332f-O32']
broadcom_th4_hwskus: ['Arista-7060DX5-32', 'Arista-7060DX5-64S']
broadcom_th5_hwskus: ['Arista-7060X6-64DE', 'Arista-7060X6-64DE-64x400G', 'Arista-7060X6-64DE-O128S2', 'Arista-7060X6-64DE-256x200G', 'Arista-7060X6-64PE', 'Arista-7060X6-64PE-64x400G', 'Arista-7060X6-64PE-O128S2', 'Arista-7060X6-64PE-256x200G', 'Arista-7060X6-64PE-C256S2', 'Arista-7060X6-64PE-C224O8', 'Arista-7060X6-64PE-B-C512S2', 'Arista-7060X6-64PE-B-C448O16']
broadcom_j2c+_hwskus: ['Nokia-IXR7250E-36x100G', 'Nokia-IXR7250E-36x400G', 'Arista-7800R3A-36DM2-C36', 'Arista-7800R3A-36DM2-D36', 'Arista-7800R3AK-36DM2-C36', 'Arista-7800R3AK-36DM2-D36']
broadcom_th5_hwskus: ['Arista-7060X6-64DE', 'Arista-7060X6-64DE-64x400G', 'Arista-7060X6-64DE-O128S2', 'Arista-7060X6-64DE-256x200G', 'Arista-7060X6-64PE', 'Arista-7060X6-64PE-64x400G', 'Arista-7060X6-64PE-O128S2', 'Arista-7060X6-64PE-256x200G', 'Arista-7060X6-64PE-C256S2', 'Arista-7060X6-64PE-C224O8', 'Arista-7060X6-64PE-B-C512S2', 'Arista-7060X6-64PE-B-C448O16', 'Arista-7060X6-16PE-384C-O128S2']
broadcom_j2c+_hwskus: ['Nokia-IXR7250E-36x100G', 'Nokia-IXR7250E-36x400G', 'Arista-7800R3A-36DM2-C36', 'Arista-7800R3A-36DM2-D36', 'Arista-7800R3AK-36DM2-C36', 'Arista-7800R3AK-36DM2-D36', 'Nokia-IXR7250-X3B']
broadcom_jr2_hwskus: ['Arista-7800R3-48CQ2-C48', 'Arista-7800R3-48CQM2-C48']

mellanox_spc1_hwskus: [ 'ACS-MSN2700', 'ACS-MSN2740', 'ACS-MSN2100', 'ACS-MSN2410', 'ACS-MSN2010', 'Mellanox-SN2700', 'Mellanox-SN2700-A1', 'Mellanox-SN2700-D48C8','Mellanox-SN2700-D40C8S8', 'Mellanox-SN2700-A1-D48C8']
Expand All @@ -35,7 +35,7 @@ marvell_hwskus: [ "et6448m", "Nokia-7215" ]
innovium_tl7_hwskus: ["Wistron_sw_to3200k_32x100" , "Wistron_sw_to3200k"]

cisco_hwskus: ["Cisco-8102-C64", "Cisco-8101-T32", "Cisco-8111-O32", "Cisco-8101-C64", "Cisco-8101-C48T8", "Cisco-8101-O8V48", "Cisco-8101-O8C48","Cisco-8111-C32", "Cisco-8111-O32", "Cisco-8111-O64", "Cisco-8122-O64", "Cisco-8122-O64S2", "Cisco-8122-O128", "Cisco-8800-LC-48H-C48", "Cisco-88-LC0-36FH-M-O36", "Cisco-88-LC0-36FH-O36", "cisco-8101-p4-32x100-vs", "Cisco-8102-28FH-DPU-O-T1"]
cisco-8000_gb_hwskus: ["Cisco-8102-C64", "Cisco-8101-T32", "Cisco-8101-O32", "Cisco-8101-C64", "Cisco-8101-C48T8", "Cisco-8101-O8V48", "Cisco-8101-O8C48","Cisco-8111-C32", "Cisco-88-LC0-36FH-M-O36", "Cisco-88-LC0-36FH-O36", "Cisco-8102-28FH-DPU-O-T1"]
cisco-8000_gb_hwskus: ["Cisco-8102-C64", "Cisco-8101-T32", "Cisco-8101-O32", "Cisco-8101-C64", "Cisco-8101-V64", "Cisco-8101-C48T8", "Cisco-8101-O8V48", "Cisco-8101-O8C48", "Cisco-8111-C32", "Cisco-88-LC0-36FH-M-O36", "Cisco-88-LC0-36FH-O36", "Cisco-8102-28FH-DPU-O-T1"]
cisco-8000_gr_hwskus: ["Cisco-8111-O32", "Cisco-8111-O64"]
cisco-8000_gr2_hwskus: ["Cisco-8122-O64", "Cisco-8122-O64S2", "Cisco-8122-O128"]
cisco-8000_pac_hwskus: ["Cisco-8800-LC-48H-C48"]
Expand Down
5 changes: 2 additions & 3 deletions ansible/health_checker.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#!/usr/bin/env python3

import imp
import os
import logging
import sys
Expand All @@ -13,6 +11,7 @@
except ImportError:
# ToDo: Support running without Ansible
has_ansible = False
from devutil.conn_graph_helper import load_source

ANSIBLE_DIR = os.path.abspath(os.path.dirname(__file__))
SONIC_MGMT_DIR = os.path.dirname(ANSIBLE_DIR)
Expand All @@ -35,7 +34,7 @@

def get_testbeds_dict():
"""Return a dictionary containing mapping from dut hostname to testbed name."""
testbed = imp.load_source('testbed', os.path.join(
testbed = load_source('testbed', os.path.join(
SONIC_MGMT_DIR, 'tests/common/testbed.py'))
testbeds_dict = testbed.TestbedInfo(TESTBED_FILE).testbed_topo
return testbeds_dict
Expand Down
9 changes: 6 additions & 3 deletions ansible/library/announce_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1107,10 +1107,12 @@ def fib_t2_lag(topo, ptf_ip, action="announce"):
t1_vms = {}
# T3 VMs per linecard(asic) - key is the dut index, and value is a list of T3 VMs
t3_vms = {}

for key, value in vms.items():
m = re.match(r"(\d+)\.(\d+)@(\d+)", value['vlans'][0])
dut_index = int(m.group(1))
if type(value['vlans'][0]) == int:
dut_index = 0
else:
m = re.match(r"(\d+)\.(\d+)@(\d+)", value['vlans'][0])
dut_index = int(m.group(1))
if 'T1' in key:
if dut_index not in t1_vms:
t1_vms[dut_index] = list()
Expand All @@ -1120,6 +1122,7 @@ def fib_t2_lag(topo, ptf_ip, action="announce"):
if dut_index not in t3_vms:
t3_vms[dut_index] = list()
t3_vms[dut_index].append(key)

route_set += generate_t2_routes(t1_vms, topo, ptf_ip, action)
route_set += generate_t2_routes(t3_vms, topo, ptf_ip, action)
send_routes_in_parallel(route_set)
Expand Down
5 changes: 3 additions & 2 deletions ansible/library/generate_golden_config_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,9 @@ def generate(self):
# update dns config
config = self.update_dns_config(config)

# To enable bmp feature
if self.check_version_for_bmp() is True:
# To enable bmp feature when the image version is >= 202411 and the device is not supervisor
# Note: the Chassis supervisor is not holding any BGP sessions so the BMP feature is not needed
if self.check_version_for_bmp() is True and device_info.is_supervisor() is False:
if multi_asic.is_multi_asic():
config = self.overwrite_feature_golden_config_db_multiasic(config, "bmp")
else:
Expand Down
Loading