-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yang model table DEVICE_NEIGHBOR_METADATA creation (#11894)
* yang mode support for neighbor metadata * add description in leaf node * modify description
- Loading branch information
Showing
8 changed files
with
301 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
src/sonic-yang-models/tests/yang_model_tests/tests/device_neighbor_metadata.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"DEVICE_NEIGHBOR_METADATA_TABLE": { | ||
"desc": "DEVICE_NEIGHBOR_METADATA_TABLE config pattern." | ||
}, | ||
"DEVICE_NEIGHBOR_METADATA_TYPE_INCORRECT_PATTERN": { | ||
"desc": "DEVICE_NEIGHBOR_METADATA_TYPE_INCORRECT_PATTERN pattern failure.", | ||
"eStrKey" : "Pattern" | ||
}, | ||
"DEVICE_NEIGHBOR_METADATA_TYPE_CORRECT_PATTERN": { | ||
"desc": "DEVICE_NEIGHBOR_METADATA correct value for Type field" | ||
}, | ||
"DEVICE_NEIGHBOR_METADATA_TYPE_NOT_PROVISIONED_PATTERN": { | ||
"desc": "DEVICE_NEIGHBOR_METADATA value as not-provisioned for Type field" | ||
} | ||
} |
107 changes: 107 additions & 0 deletions
107
src/sonic-yang-models/tests/yang_model_tests/tests_config/device_neighbor_metadata.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
{ | ||
"DEVICE_NEIGHBOR_METADATA_TYPE_INCORRECT_PATTERN": { | ||
"sonic-device_neighbor_metadata:sonic-device_neighbor_metadata": { | ||
"sonic-device_neighbor_metadata:DEVICE_NEIGHBOR_METADATA": { | ||
"DEVICE_NEIGHBOR_METADATA_LIST": [ | ||
{ | ||
"name": "Ethernet116", | ||
"hwsku": "Arista", | ||
"type": "ToRrouter" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"DEVICE_NEIGHBOR_METADATA_TYPE_CORRECT_PATTERN": { | ||
"sonic-device_neighbor_metadata:sonic-device_neighbor_metadata": { | ||
"sonic-device_neighbor_metadata:DEVICE_NEIGHBOR_METADATA": { | ||
"DEVICE_NEIGHBOR_METADATA_LIST": [ | ||
{ | ||
"name": "Ethernet116", | ||
"hwsku": "Arista", | ||
"type": "BackEndToRRouter" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"DEVICE_NEIGHBOR_METADATA_TYPE_NOT_PROVISIONED_PATTERN": { | ||
"sonic-device_neighbor_metadata:sonic-device_neighbor_metadata": { | ||
"sonic-device_neighbor_metadata:DEVICE_NEIGHBOR_METADATA": { | ||
"DEVICE_NEIGHBOR_METADATA_LIST": [ | ||
{ | ||
"name": "Ethernet116", | ||
"hwsku": "Arista", | ||
"type": "not-provisioned" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"DEVICE_NEIGHBOR_METADATA_TABLE": { | ||
"sonic-device_neighbor_metadata:sonic-device_neighbor_metadata": { | ||
"sonic-device_neighbor_metadata:DEVICE_NEIGHBOR_METADATA": { | ||
"DEVICE_NEIGHBOR_METADATA_LIST": [ | ||
{ | ||
"lo_addr": "25.77.193.11/32", | ||
"mgmt_addr": "0.0.0.0/0", | ||
"name": "dccsw01.nw", | ||
"hwsku": "Arista", | ||
"type": "ToRRouter", | ||
"deployment_id": "1" | ||
}, | ||
{ | ||
"lo_addr": "0.0.0.0/0", | ||
"mgmt_addr": "10.11.150.46/26", | ||
"name": "dccsw02.nw", | ||
"hwsku": "Arista", | ||
"type": "LeafRouter", | ||
"deployment_id": "1" | ||
}, | ||
{ | ||
"lo_addr_v6": "2a04:5555:40:a709::2/126", | ||
"mgmt_addr": "10.11.150.47/26", | ||
"name": "dccsw03.nw", | ||
"hwsku": "Arista", | ||
"type": "SpineRouter", | ||
"deployment_id": "1" | ||
}, | ||
{ | ||
"name": "dccsw04.nw", | ||
"mgmt_addr_v6": "2a04:5555:40:a708::2/126", | ||
"hwsku": "Arista", | ||
"type": "LeafRouter", | ||
"deployment_id": "1" | ||
}, | ||
{ | ||
"name": "dccsw05.nw", | ||
"hwsku": "Arista", | ||
"type": "LeafRouter", | ||
"deployment_id": "1" | ||
}, | ||
{ | ||
"lo_addr_v6": "2a04:5555:40:a710::2/126", | ||
"name": "dccsw06.nw", | ||
"hwsku": "Arista", | ||
"type": "LeafRouter", | ||
"deployment_id": "1" | ||
}, | ||
{ | ||
"lo_addr": "25.77.193.11/32", | ||
"name": "dccsw07.nw", | ||
"hwsku": "Arista", | ||
"type": "LeafRouter", | ||
"deployment_id": "1" | ||
}, | ||
{ | ||
"mgmt_addr": "10.11.150.48/26", | ||
"name": "dccsw08.nw", | ||
"hwsku": "Arista", | ||
"type": "LeafRouter", | ||
"deployment_id": "1" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.