From cc9f7265a892d0095c138148acc28dd6bf044a97 Mon Sep 17 00:00:00 2001 From: Chirag Shah Date: Mon, 3 Feb 2020 13:31:32 -0800 Subject: [PATCH] yang: add vrf ref to interface model module: frr-interface +--rw lib +--rw interface* [name vrf] +--rw name string +--rw vrf frr-vrf:vrf-ref +--rw description? string Signed-off-by: Chirag Shah --- yang/frr-interface.yang | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/yang/frr-interface.yang b/yang/frr-interface.yang index 1f3eebb2ab..5dcda076d4 100644 --- a/yang/frr-interface.yang +++ b/yang/frr-interface.yang @@ -3,6 +3,10 @@ module frr-interface { namespace "http://frrouting.org/yang/interface"; prefix frr-interface; + import frr-vrf { + prefix frr-vrf; + } + organization "FRRouting"; contact @@ -25,7 +29,6 @@ module frr-interface { key "name vrf"; description "Interface."; - leaf name { type string { length "1..16"; @@ -33,13 +36,13 @@ module frr-interface { description "Interface name."; } + leaf vrf { - type string { - length "1..36"; - } + type frr-vrf:vrf-ref; description "VRF this interface is associated with."; } + leaf description { type string; description