[YANG] Add YANG model for synchronous mode (#9194)

Add YANG model leaf for synchronous mode and default value
This commit is contained in:
Shi Su 2021-11-15 21:57:12 -08:00 committed by GitHub
parent ff32ac3ed4
commit 7f45af9710
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 28 additions and 0 deletions

View File

@ -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"

View File

@ -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": {

View File

@ -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 */
}