Skip to content

Commit

Permalink
Merge pull request sonic-net#48 from mssonicbld/sonicbld/202205-merge
Browse files Browse the repository at this point in the history
[code sync] Merge code from sonic-net/sonic-buildimage:202205 to 202205
  • Loading branch information
mssonicbld authored Jun 28, 2023
2 parents f25d9d6 + 24a10e1 commit 2b7ed10
Show file tree
Hide file tree
Showing 8 changed files with 158 additions and 7 deletions.
6 changes: 1 addition & 5 deletions .azure-pipelines/run-test-scheduler-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ parameters:
type: string
default: "ceos"

- name: SPECIFIED_PARAMS
type: string
default: "{}"

- name: COMMON_EXTRA_PARAMS
type: string
default: ""
Expand All @@ -61,7 +57,7 @@ steps:
python ./.azure-pipelines/test_plan.py create -t ${{ parameters.TOPOLOGY }} -o new_test_plan_id.txt --min-worker ${{ parameters.MIN_WORKER }} --max-worker ${{ parameters.MAX_WORKER }} \
--test-set ${{ parameters.TEST_SET }} --kvm-build-id $(KVM_BUILD_ID) \
--deploy-mg-extra-params "${{ parameters.DEPLOY_MG_EXTRA_PARAMS }}" --mgmt-branch ${{ parameters.MGMT_BRANCH }} \
--vm-type ${{ parameters.VM_TYPE }} --specified-params "${{ parameters.SPECIFIED_PARAMS }}" --common-extra-params "${{ parameters.COMMON_EXTRA_PARAMS }}" --num-asic ${{ parameters.NUM_ASIC }}
--vm-type ${{ parameters.VM_TYPE }} --common-extra-params "${{ parameters.COMMON_EXTRA_PARAMS }}" --num-asic ${{ parameters.NUM_ASIC }}
TEST_PLAN_ID=`cat new_test_plan_id.txt`
echo "Created test plan $TEST_PLAN_ID"
Expand Down
3 changes: 1 addition & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,8 @@ stages:
MIN_WORKER: $(T0_SONIC_INSTANCE_NUM)
MAX_WORKER: $(T0_SONIC_INSTANCE_NUM)
TEST_SET: t0-sonic
COMMON_EXTRA_PARAMS: "--neighbor_type=sonic --enable_macsec --macsec_profile=128_SCI,256_XPN_SCI"
COMMON_EXTRA_PARAMS: "--neighbor_type=sonic "
VM_TYPE: vsonic
SPECIFIED_PARAMS: '{\"test_pretest.py\":[\"--completeness_level=confident\",\"--allow_recover\"],\"test_posttest.py\":[\"--completeness_level=confident\",\"--allow_recover\"]}'
MGMT_BRANCH: 202205

- job: dualtor_elastictest
Expand Down
20 changes: 20 additions & 0 deletions src/sonic-yang-models/doc/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Table of Contents
* [Management VRF](#management-vrf)
* [MAP_PFC_PRIORITY_TO_QUEUE](#map_pfc_priority_to_queue)
* [MUX_CABLE](#muxcable)
* [MUX_LINKMGR](#mux_linkmgr)
* [NTP Global Configuration](#ntp-global-configuration)
* [NTP and SYSLOG servers](#ntp-and-syslog-servers)
* [Peer Switch](#peer-switch)
Expand Down Expand Up @@ -1149,6 +1150,25 @@ The **MUX_CABLE** table is used for dualtor interface configuration. The `cable_
}
```

### MUX_LINKMGR
The **MUX_LINKMGR** table is used for dualtor device configuration.
```
{
"MUX_LINKMGR": {
"LINK_PROBER": {
"interval_v4": "100",
"interval_v6": "1000",
"positive_signal_count": "1",
"negative_signal_count": "3",
"suspend_timer": "500",
"use_well_known_mac": "enabled",
"src_mac": "ToRMac",
"interval_pck_loss_count_update": "3"
}
}
}
```

### NTP Global Configuration

These configuration options are used to modify the way that
Expand Down
1 change: 1 addition & 0 deletions src/sonic-yang-models/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def run(self):
'./yang-models/sonic-mgmt_vrf.yang',
'./yang-models/sonic-mirror-session.yang',
'./yang-models/sonic-mux-cable.yang',
'./yang-models/sonic-mux-linkmgr.yang',
'./yang-models/sonic-ntp.yang',
'./yang-models/sonic-nat.yang',
'./yang-models/sonic-nvgre-tunnel.yang',
Expand Down
13 changes: 13 additions & 0 deletions src/sonic-yang-models/tests/files/sample_config_db.json
Original file line number Diff line number Diff line change
Expand Up @@ -1827,6 +1827,19 @@
}
},

"MUX_LINKMGR": {
"LINK_PROBER": {
"interval_v4": "100",
"interval_v6": "1000",
"positive_signal_count": "1",
"negative_signal_count": "3",
"suspend_timer": "500",
"use_well_known_mac": "enabled",
"src_mac": "ToRMac",
"interval_pck_loss_count_update": "3"
}
},


"POLICER": {
"everflow_static_policer": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"MUX_LINKMGR_LINK_PROBER_INTERVAL_CHANGE": {
"desc": "Consume ICMP heartbeat interval and timeout config changes. "
},
"MUX_LINKMGR_LINK_PROBER_CHANGE_MAC_ADDR": {
"desc": "Use well-known mac and vlan mac as dst/src in linkmgrd link prober. "
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"MUX_LINKMGR_LINK_PROBER_INTERVAL_CHANGE": {
"sonic-mux-linkmgr:sonic-mux-linkmgr": {
"sonic-mux-linkmgr:MUX_LINKMGR": {
"sonic-mux-linkmgr:LINK_PROBER":
{
"interval_v4": "1000",
"interval_v6": "10000",
"positive_signal_count": 3,
"negative_signal_count": 9
}
}
}
},
"MUX_LINKMGR_LINK_PROBER_CHANGE_MAC_ADDR": {
"sonic-mux-linkmgr:sonic-mux-linkmgr": {
"sonic-mux-linkmgr:MUX_LINKMGR": {
"sonic-mux-linkmgr:LINK_PROBER":
{
"use_well_known_mac": "enabled",
"src_mac": "VlanMac"
}
}
}
}
}
88 changes: 88 additions & 0 deletions src/sonic-yang-models/yang-models/sonic-mux-linkmgr.yang
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
module sonic-mux-linkmgr {
namespace "https://github.com/sonic-net/sonic-mux-linkmgr";
prefix mux_linkmgr;
yang-version 1.1;

organization
"SONiC";

contact
"SONiC";

description
"SONiC DualToR Linkmgrd configuration data";

revision 2023-06-07 {
description
"Initial revision";
}

container sonic-mux-linkmgr {

container MUX_LINKMGR {

container LINK_PROBER {

leaf interval_v4 {
type uint32;
default 100;
units milliseconds;

description "IPv4 ICMP heartbeat interval. ";
}

leaf interval_v6 {
type uint32;
default 1000;
units milliseconds;

description "IPv6 ICMP heartbeat interval. ";
}

leaf positive_signal_count {
type uint32;
default 1;

description "Linkmgrd positive signal count. ";
}

leaf negative_signal_count {
type uint32;
default 3;

description "Linkmgrd negative signal count. ";
}

leaf suspend_timer {
type uint32;

description "ICMP heartbeat suspending timer, currently not in use. ";
}

leaf use_well_known_mac {
type enumeration {
enum enabled;
enum disabled;
}

description "ICMP heartbeat use well known mac as dst mac or not. ";
}

leaf src_mac {
type enumeration {
enum ToRMac;
enum VlanMac;
}

description "ICMP heartbeat use what mac as src mac. ";
}

leaf interval_pck_loss_count_update {
type uint32;

description "The frequency of streaming ICMP heartbeat loss data to telemetry. ";
}
}
}
}
}

0 comments on commit 2b7ed10

Please sign in to comment.