summaryrefslogtreecommitdiffstats
path: root/yang/frr-interface.yang
blob: d3cc66dfaa81d6822297fb5d41ed8c0a1da90369 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
module frr-interface {
  yang-version 1.1;
  namespace "http://frrouting.org/yang/interface";
  prefix frr-interface;

  organization
    "Free Range Routing";
  contact
    "FRR Users List:       <mailto:frog@lists.frrouting.org>
     FRR Development List: <mailto:dev@lists.frrouting.org>";
  description
    "This module defines a model for managing FRR interfaces.";

  revision 2018-03-28 {
    description
      "Initial revision.";
  }

  container lib {
    list interface {
      key "name vrf";
      description
        "Interface.";

      leaf name {
        type string {
          length "1..16";
        }
        description
          "Interface name.";
      }
      leaf vrf {
        type string {
          length "1..36";
        }
        description
          "VRF this interface is associated with.";
      }
      leaf description {
        type string;
        description
          "Interface description.";
      }
    }
  }
}