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 <chirag@cumulusnetworks.com>
This commit is contained in:
Chirag Shah 2020-02-03 13:31:32 -08:00 committed by Santosh P K
parent 3a7262b6a9
commit cc9f7265a8

View File

@ -3,6 +3,10 @@ module frr-interface {
namespace "http://frrouting.org/yang/interface"; namespace "http://frrouting.org/yang/interface";
prefix frr-interface; prefix frr-interface;
import frr-vrf {
prefix frr-vrf;
}
organization organization
"FRRouting"; "FRRouting";
contact contact
@ -25,7 +29,6 @@ module frr-interface {
key "name vrf"; key "name vrf";
description description
"Interface."; "Interface.";
leaf name { leaf name {
type string { type string {
length "1..16"; length "1..16";
@ -33,13 +36,13 @@ module frr-interface {
description description
"Interface name."; "Interface name.";
} }
leaf vrf { leaf vrf {
type string { type frr-vrf:vrf-ref;
length "1..36";
}
description description
"VRF this interface is associated with."; "VRF this interface is associated with.";
} }
leaf description { leaf description {
type string; type string;
description description