diff --git a/src/sonic-yang-models/tests/files/sample_config_db.json b/src/sonic-yang-models/tests/files/sample_config_db.json index ed1f75c6579..8ebb1d65567 100644 --- a/src/sonic-yang-models/tests/files/sample_config_db.json +++ b/src/sonic-yang-models/tests/files/sample_config_db.json @@ -2335,6 +2335,9 @@ "src_mac": "ToRMac", "interval_pck_loss_count_update": "3" }, + "TIMED_OSCILLATION": { + "oscillation_enabled": "false" + }, "MUXLOGGER": { "log_verbosity": "debug" }, diff --git a/src/sonic-yang-models/tests/yang_model_tests/tests/mux-linkmgr.json b/src/sonic-yang-models/tests/yang_model_tests/tests/mux-linkmgr.json index 7c4aeadffdd..050728cb944 100644 --- a/src/sonic-yang-models/tests/yang_model_tests/tests/mux-linkmgr.json +++ b/src/sonic-yang-models/tests/yang_model_tests/tests/mux-linkmgr.json @@ -5,10 +5,13 @@ "MUX_LINKMGR_LINK_PROBER_CHANGE_MAC_ADDR": { "desc": "Use well-known mac and vlan mac as dst/src in linkmgrd link prober. " }, + "MUX_LINKMGR_TIMED_OSCILLATION_DISABLE_OSCILLATION": { + "desc": "Disable timed oscillation." + }, "MUX_LINKMGR_MUXLOGGER_CHANGE_VERBOSITY_LEVEL": { "desc": "Consume verbosity level config changes. " }, "MUX_LINKMGR_SERVICE_MGMT_KILL_RADV_DISABLED": { "desc": "Disable feature to kill radv." } -} \ No newline at end of file +} diff --git a/src/sonic-yang-models/tests/yang_model_tests/tests_config/mux-linkmgr.json b/src/sonic-yang-models/tests/yang_model_tests/tests_config/mux-linkmgr.json index 1feff4f4403..8a9f9e01c22 100644 --- a/src/sonic-yang-models/tests/yang_model_tests/tests_config/mux-linkmgr.json +++ b/src/sonic-yang-models/tests/yang_model_tests/tests_config/mux-linkmgr.json @@ -23,6 +23,16 @@ } } }, + "MUX_LINKMGR_TIMED_OSCILLATION_DISABLE_OSCILLATION": { + "sonic-mux-linkmgr:sonic-mux-linkmgr": { + "sonic-mux-linkmgr:MUX_LINKMGR": { + "sonic-mux-linkmgr:TIMED_OSCILLATION": + { + "oscillation_enabled": "false" + } + } + } + }, "MUX_LINKMGR_MUXLOGGER_CHANGE_VERBOSITY_LEVEL": { "sonic-mux-linkmgr:sonic-mux-linkmgr": { "sonic-mux-linkmgr:MUX_LINKMGR": { @@ -43,4 +53,4 @@ } } } -} \ No newline at end of file +} diff --git a/src/sonic-yang-models/yang-models/sonic-mux-linkmgr.yang b/src/sonic-yang-models/yang-models/sonic-mux-linkmgr.yang index d7b07ed7335..001ec4298ed 100644 --- a/src/sonic-yang-models/yang-models/sonic-mux-linkmgr.yang +++ b/src/sonic-yang-models/yang-models/sonic-mux-linkmgr.yang @@ -84,6 +84,22 @@ module sonic-mux-linkmgr { } } + container TIMED_OSCILLATION { + + leaf oscillation_enabled { + type boolean; + default true; + description "Flag to enable/disable timed oscillation. "; + } + + leaf interval_sec { + type uint32; + default 300; + units seconds; + description "Interval between MUX oscillations. "; + } + } + container MUXLOGGER { leaf log_verbosity { @@ -114,4 +130,4 @@ module sonic-mux-linkmgr { } } } -} \ No newline at end of file +}