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";
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