summaryrefslogtreecommitdiffstats
path: root/v3po/api/src/main/yang/subinterface-span.yang
blob: 9308c5d4a3f47c895d360bee056fa6505de9a79f (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
module subinterface-span {
  yang-version 1;
  namespace "urn:opendaylight:params:xml:ns:yang:subinterface-span";
  prefix "subif-span";

  revision "2017-05-10" {
    description
      "Initialial revision that adds support for mirroring interfaces on subinterfaces.
       Vpp implementation allows/implements only two cases:
        - Src: interface |Dst: interface - covered in v3po.yang
        - Src: interface |Dst: subinterface - covered by this model";
  }

  revision "2017-06-07" {
    description "Eliminated config leafrefs in operational tree";
  }

  import v3po {
    prefix "v3po";
  }

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

  import yang-ext {
    prefix "ext";
  }

  augment /if:interfaces/if:interface/vpp-vlan:sub-interfaces/vpp-vlan:sub-interface {
      ext:augment-identifier "vpp-subinterface-span-augmentation";

      container span {
        uses v3po:span-attributes;
      }
  }

  augment /if:interfaces-state/if:interface/vpp-vlan:sub-interfaces/vpp-vlan:sub-interface {
      ext:augment-identifier "vpp-subinterface-span-state-augmentation";
      container span-state {
        uses v3po:span-state-attributes;
      }
  }
}