diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-09-09 18:59:09 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-09-10 22:29:10 +0200 |
commit | f22b9250853229c93617ffdad139a4762f5f7348 (patch) | |
tree | 7a16186c64ede82b7abdfa07a1ea9b742cc4f19f /yang/frr-isisd.yang | |
parent | Merge pull request #4952 from mjstapp/fix_bgp_peer_hook (diff) | |
download | frr-f22b9250853229c93617ffdad139a4762f5f7348.tar.xz frr-f22b9250853229c93617ffdad139a4762f5f7348.zip |
yang: create interface reference type
Instead of copy-pasting a 16 character string type for use as an
interface reference, create a new typedef that leafref's the name node
of an interface. This way the constraints change with the constraints on
an interface name itself, and it's self documenting.
Incidentally ripd and ripngd forgot the 16 character constraint in their
offset-list configs and IS-IS forgot it entirely, so this also fixes
minor bugs.
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'yang/frr-isisd.yang')
-rw-r--r-- | yang/frr-isisd.yang | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/yang/frr-isisd.yang b/yang/frr-isisd.yang index 9180b0c5f..3313dc2f2 100644 --- a/yang/frr-isisd.yang +++ b/yang/frr-isisd.yang @@ -27,6 +27,11 @@ module frr-isisd { description "This module defines a model for managing FRR isisd daemon."; + revision 2019-09-09 { + description + "Changed interface references to use + frr-interface:interface-ref typedef"; + } revision 2018-07-26 { description "Initial revision."; @@ -296,7 +301,7 @@ module frr-isisd { description "Interface specific IS-IS notification data grouping"; leaf interface-name { - type string; + type frr-interface:interface-ref; description "IS-IS interface name"; } |