[YANG] Add YANG model for synchronous mode (#9194)
Add YANG model leaf for synchronous mode and default value
This commit is contained in:
parent
ff32ac3ed4
commit
7f45af9710
@ -32,6 +32,15 @@
|
||||
"DEVICE_METADATA_TYPE_INCORRECT_PATTERN": {
|
||||
"desc": "DEVICE_METADATA_TYPE_INCORRECT_PATTERN pattern failure.",
|
||||
"eStrKey" : "Pattern"
|
||||
},
|
||||
"DEVICE_METADATA_DEFAULT_SYNCHRONOUS_MODE": {
|
||||
"desc": "DEVICE_METADATA DEFAULT VALUE FOR SYNCHRONOUS MODE.",
|
||||
"eStrKey" : "Verify",
|
||||
"verify": {
|
||||
"xpath": "/sonic-device_metadata:sonic-device_metadata/DEVICE_METADATA/localhost/hostname",
|
||||
"key": "sonic-device_metadata:synchronous_mode",
|
||||
"value": "enable"
|
||||
}
|
||||
},
|
||||
"DEVICE_METADATA_CORRECT_BUFFER_MODEL_PATTERN": {
|
||||
"desc": "DEVICE_METADATA correct value for BUFFER_MODEL field"
|
||||
|
@ -44,6 +44,17 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"DEVICE_METADATA_DEFAULT_SYNCHRONOUS_MODE": {
|
||||
"sonic-device_metadata:sonic-device_metadata": {
|
||||
"sonic-device_metadata:DEVICE_METADATA": {
|
||||
"sonic-device_metadata:localhost": {
|
||||
"bgp_asn": "65001",
|
||||
"hostname": "DUT-CSW",
|
||||
"platform": "Stone-DX010"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"DEV_META_DEV_NEIGH_VERSION_TABLE": {
|
||||
"sonic-device_metadata:sonic-device_metadata": {
|
||||
"sonic-device_metadata:DEVICE_METADATA": {
|
||||
|
@ -113,6 +113,14 @@ module sonic-device_metadata {
|
||||
otherwise, sonic-bgpcfgd handles the FRR configurations based on the predefined templates.";
|
||||
default "false";
|
||||
}
|
||||
|
||||
leaf synchronous_mode {
|
||||
type enumeration {
|
||||
enum enable;
|
||||
enum disable;
|
||||
}
|
||||
default enable;
|
||||
}
|
||||
}
|
||||
/* end of container localhost */
|
||||
}
|
||||
|
Reference in New Issue
Block a user