Bmc is a valid neighbor type in minigraph, however it was missing from the YANG model definition. Usually, the Bmc type device can be neighbor of BmcMgmtToRRouter. This PR is to introduce this type. Co-authored-by: Yaqiang Zhu <zyq1512099831@gmail.com>
This commit is contained in:
parent
7f35f4c200
commit
7a9c05c1e7
@ -9,6 +9,13 @@
|
|||||||
"DEVICE_NEIGHBOR_METADATA_TYPE_CORRECT_PATTERN": {
|
"DEVICE_NEIGHBOR_METADATA_TYPE_CORRECT_PATTERN": {
|
||||||
"desc": "DEVICE_NEIGHBOR_METADATA correct value for Type field"
|
"desc": "DEVICE_NEIGHBOR_METADATA correct value for Type field"
|
||||||
},
|
},
|
||||||
|
"DEVICE_NEIGHBOR_METADATA_TYPE_INCORRECT_PATTERN_BMC": {
|
||||||
|
"desc": "DEVICE_NEIGHBOR_METADATA_TYPE_INCORRECT_PATTERN pattern failure with IncorrectTypeBmc.",
|
||||||
|
"eStrKey" : "Pattern"
|
||||||
|
},
|
||||||
|
"DEVICE_NEIGHBOR_METADATA_TYPE_CORRECT_PATTERN_BMC": {
|
||||||
|
"desc": "DEVICE_NEIGHBOR_METADATA correct value for type field for Bmc"
|
||||||
|
},
|
||||||
"DEVICE_NEIGHBOR_METADATA_TYPE_NOT_PROVISIONED_PATTERN": {
|
"DEVICE_NEIGHBOR_METADATA_TYPE_NOT_PROVISIONED_PATTERN": {
|
||||||
"desc": "DEVICE_NEIGHBOR_METADATA value as not-provisioned for Type field"
|
"desc": "DEVICE_NEIGHBOR_METADATA value as not-provisioned for Type field"
|
||||||
}
|
}
|
||||||
|
@ -25,6 +25,32 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"DEVICE_NEIGHBOR_METADATA_TYPE_INCORRECT_PATTERN_BMC": {
|
||||||
|
"sonic-device_neighbor_metadata:sonic-device_neighbor_metadata": {
|
||||||
|
"sonic-device_neighbor_metadata:DEVICE_NEIGHBOR_METADATA": {
|
||||||
|
"DEVICE_NEIGHBOR_METADATA_LIST": [
|
||||||
|
{
|
||||||
|
"name": "Ethernet116",
|
||||||
|
"hwsku": "DUMMY_BMC_SKU",
|
||||||
|
"type": "IncorrectTypeBmc"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"DEVICE_NEIGHBOR_METADATA_TYPE_CORRECT_PATTERN_BMC": {
|
||||||
|
"sonic-device_neighbor_metadata:sonic-device_neighbor_metadata": {
|
||||||
|
"sonic-device_neighbor_metadata:DEVICE_NEIGHBOR_METADATA": {
|
||||||
|
"DEVICE_NEIGHBOR_METADATA_LIST": [
|
||||||
|
{
|
||||||
|
"name": "Ethernet116",
|
||||||
|
"hwsku": "DUMMY_BMC_SKU",
|
||||||
|
"type": "Bmc"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"DEVICE_NEIGHBOR_METADATA_TYPE_NOT_PROVISIONED_PATTERN": {
|
"DEVICE_NEIGHBOR_METADATA_TYPE_NOT_PROVISIONED_PATTERN": {
|
||||||
"sonic-device_neighbor_metadata:sonic-device_neighbor_metadata": {
|
"sonic-device_neighbor_metadata:sonic-device_neighbor_metadata": {
|
||||||
"sonic-device_neighbor_metadata:DEVICE_NEIGHBOR_METADATA": {
|
"sonic-device_neighbor_metadata:DEVICE_NEIGHBOR_METADATA": {
|
||||||
|
@ -83,7 +83,7 @@ module sonic-device_neighbor_metadata {
|
|||||||
leaf type {
|
leaf type {
|
||||||
description "Network element type";
|
description "Network element type";
|
||||||
type string {
|
type string {
|
||||||
pattern "ToRRouter|LeafRouter|SpineChassisFrontendRouter|ChassisBackendRouter|ASIC|Asic|Supervior|MgmtToRRouter|MgmtLeafRouter|SpineRouter|BackEndToRRouter|BackEndLeafRouter|EPMS|MgmtTsToR|BmcMgmtToRRouter|Server|MiniPower|SmartCable|Ixia|not-provisioned";
|
pattern "ToRRouter|LeafRouter|SpineChassisFrontendRouter|ChassisBackendRouter|ASIC|Asic|Supervior|MgmtToRRouter|MgmtLeafRouter|SpineRouter|BackEndToRRouter|BackEndLeafRouter|EPMS|MgmtTsToR|BmcMgmtToRRouter|Server|Bmc|MiniPower|SmartCable|Ixia|not-provisioned";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user