]> git.puffer.fish Git - matthieu/frr.git/commitdiff
yang: add vrf ref to interface model
authorChirag Shah <chirag@cumulusnetworks.com>
Mon, 3 Feb 2020 21:31:32 +0000 (13:31 -0800)
committerSantosh P K <sapk@vmware.com>
Thu, 16 Apr 2020 14:49:10 +0000 (07:49 -0700)
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>
yang/frr-interface.yang

index 1f3eebb2abf1ef36a19d2f50e4833b99134b6256..5dcda076d41266014f8fec55db3e52ad7378fbc3 100644 (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