summaryrefslogtreecommitdiffstats
path: root/v3po/api/src/main/yang/unnumbered-interfaces@2018-01-03.yang
blob: 391e05363bcd8a5180462abb143b0658267a069e (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
47
48
49
module unnumbered-interfaces {
  yang-version 1;
  namespace "urn:opendaylight:params:xml:ns:yang:unnumbered:interfaces";
  prefix "uni";

  revision "2018-01-03" {
    description
      "Use if:interface-ref for name of the interface which provides IP.";
  }

  revision "2017-05-10" {
    description
      "Initialial revision";
  }

  import ietf-interfaces {
    prefix "if";
  }

  import vpp-vlan {
    prefix "vpp-vlan";
  }

  import yang-ext {
    prefix "ext";
  }

  grouping unnumbered-config-attributes {
    container unnumbered {
      presence "Sets interface as unnumbered";
      leaf use {
        type if:interface-ref;
        mandatory true;
        description
          "Name of interface or subinterface which IP is to be borrowed.";
      }
    }
  }

  augment /if:interfaces/if:interface {
    ext:augment-identifier "interface-unnumbered-augmentation";
    uses unnumbered-config-attributes;
  }

  augment /if:interfaces/if:interface/vpp-vlan:sub-interfaces/vpp-vlan:sub-interface {
    ext:augment-identifier "subinterface-unnumbered-augmentation";
    uses unnumbered-config-attributes;
  }
}