Merge pull request #18716 from y-bharath14/srib-yang-v11

yang: Fix pyang errors in frr-interface.yang
This commit is contained in:
Mark Stapp 2025-04-24 08:01:39 -04:00 committed by GitHub
commit 4da04350df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -52,14 +52,17 @@ module frr-interface {
revision 2020-02-05 { revision 2020-02-05 {
description description
"Added operational data"; "Added operational data";
reference "FRRouting";
} }
revision 2019-09-09 { revision 2019-09-09 {
description description
"Added interface-ref typedef"; "Added interface-ref typedef";
reference "FRRouting";
} }
revision 2018-03-28 { revision 2018-03-28 {
description description
"Initial revision."; "Initial revision.";
reference "FRRouting";
} }
identity other { identity other {
@ -229,9 +232,14 @@ module frr-interface {
"IPv6 enabled."; "IPv6 enabled.";
} }
} }
description
"Type definition for interface flags.";
} }
grouping if-common-operational { grouping if-common-operational {
description
"Common operational data for interfaces.";
leaf if-index { leaf if-index {
type int32 { type int32 {
range "0..2147483647"; range "0..2147483647";
@ -289,6 +297,9 @@ module frr-interface {
} }
container lib { container lib {
description
"Library container.";
list interface { list interface {
key "name"; key "name";
description description
@ -301,9 +312,9 @@ module frr-interface {
leaf vrf { leaf vrf {
type frr-vrf:vrf-ref; type frr-vrf:vrf-ref;
config false;
description description
"VRF this interface is associated with."; "VRF this interface is associated with.";
config false;
} }
leaf description { leaf description {
@ -314,6 +325,8 @@ module frr-interface {
container state { container state {
config false; config false;
description
"State information for the interface.";
uses if-common-operational; uses if-common-operational;
} }
} }