Skip to content

Commit

Permalink
yang: add vrf ref to interface model
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
chiragshah6 committed Feb 4, 2020
1 parent 2d2d0ee commit 87ee53f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions yang/frr-interface.yang
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ module frr-interface {
namespace "http://frrouting.org/yang/interface";
prefix frr-interface;

import frr-vrf {
prefix frr-vrf;
}

organization
"Free Range Routing";
contact
Expand All @@ -25,21 +29,20 @@ module frr-interface {
key "name vrf";
description
"Interface.";

leaf name {
type string {
length "1..16";
}
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
Expand Down

0 comments on commit 87ee53f

Please sign in to comment.