Skip to content

Commit 25662c6

Browse files
zjswhhhmssonicbld
authored andcommitted
add service_mgmt (#15927)
Adding yang model for CONFIG_DB table MUX_LINKMGR|SERVICE_MGMT. sign-off: Jing Zhang [email protected]
1 parent 96148d5 commit 25662c6

File tree

5 files changed

+33
-0
lines changed

5 files changed

+33
-0
lines changed

src/sonic-yang-models/doc/Configuration.md

+3
Original file line numberDiff line numberDiff line change
@@ -1223,6 +1223,9 @@ The **MUX_LINKMGR** table is used for dualtor device configuration.
12231223
},
12241224
"MUXLOGGER": {
12251225
"log_verbosity": "debug"
1226+
},
1227+
"SERVICE_MGMT": {
1228+
"kill_radv": "True"
12261229
}
12271230
}
12281231
}

src/sonic-yang-models/tests/files/sample_config_db.json

+3
Original file line numberDiff line numberDiff line change
@@ -1947,6 +1947,9 @@
19471947
},
19481948
"MUXLOGGER": {
19491949
"log_verbosity": "debug"
1950+
},
1951+
"SERVICE_MGMT": {
1952+
"kill_radv": "False"
19501953
}
19511954
},
19521955

src/sonic-yang-models/tests/yang_model_tests/tests/mux-linkmgr.json

+3
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@
77
},
88
"MUX_LINKMGR_MUXLOGGER_CHANGE_VERBOSITY_LEVEL": {
99
"desc": "Consume verbosity level config changes. "
10+
},
11+
"MUX_LINKMGR_SERVICE_MGMT_KILL_RADV_DISABLED": {
12+
"desc": "Disable feature to kill radv."
1013
}
1114
}

src/sonic-yang-models/tests/yang_model_tests/tests_config/mux-linkmgr.json

+10
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,15 @@
3232
}
3333
}
3434
}
35+
},
36+
"MUX_LINKMGR_SERVICE_MGMT_KILL_RADV_DISABLED": {
37+
"sonic-mux-linkmgr:sonic-mux-linkmgr": {
38+
"sonic-mux-linkmgr:MUX_LINKMGR": {
39+
"sonic-mux-linkmgr:SERVICE_MGMT":
40+
{
41+
"kill_radv": "False"
42+
}
43+
}
44+
}
3545
}
3646
}

src/sonic-yang-models/yang-models/sonic-mux-linkmgr.yang

+14
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,20 @@ module sonic-mux-linkmgr {
9898
description "Linkmgrd log verbosity level. ";
9999
}
100100
}
101+
102+
container SERVICE_MGMT {
103+
104+
leaf kill_radv {
105+
type enumeration {
106+
enum True;
107+
enum False;
108+
}
109+
110+
default True;
111+
112+
description "Kill radv service instead of gracefully stopping it. ";
113+
}
114+
}
101115
}
102116
}
103117
}

0 commit comments

Comments
 (0)