[yang]: Adding comments for vlan import (#14792)

vlan import for yang currently doesn't work, so was removed from the original PR: #14521

Adds comments to remember to add later

Signed-off-by: Nikola Dancejic <ndancejic@microsoft.com>
This commit is contained in:
Nikola Dancejic 2023-09-23 01:46:43 -07:00 committed by GitHub
parent 504f1163d3
commit fb7f3ebf6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,6 +11,11 @@ module sonic-neigh {
prefix yang; prefix yang;
} }
// TODO: Uncomment the following lines when sonic-vlan.yang is available
// import sonic-vlan {
// prefix svlan;
// }
organization "SONiC"; organization "SONiC";
contact "SONiC"; contact "SONiC";
@ -27,10 +32,15 @@ module sonic-neigh {
key "vlan neighbor"; key "vlan neighbor";
leaf vlan { leaf vlan {
// TODO: Remove the following lines when sonic-vlan.yang is available
description "Neighbor Vlan interface ex. Vlan1000"; description "Neighbor Vlan interface ex. Vlan1000";
type string { type string {
pattern "Vlan[0-9]+"; pattern "Vlan[0-9]+";
} }
// TODO: Uncomment the following lines when sonic-vlan.yang is available
// type leafref {
// path "/svlan:sonic-vlan/svlan:VLAN/svlan:VLAN_LIST/svlan:name";
// }
} }
leaf neighbor { leaf neighbor {