summaryrefslogtreecommitdiffstats
path: root/yang/frr-ospf6-route-map.yang
blob: 7e2e56de0f13a08218e66b786bcbb9e4e433e3e4 (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
module frr-ospf6-route-map {
  yang-version 1.1;
  namespace "http://frrouting.org/yang/ospf6-route-map";
  prefix frr-ospf6-route-map;

  import ietf-inet-types {
    prefix inet;
  }

  import frr-route-map {
    prefix frr-route-map;
  }

  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 ospf6 route map settings";

  revision 2020-01-02 {
    description
      "Initial revision";
  }

  identity forwarding-address {
    base frr-route-map:rmap-set-type;
    description
      "Set the forwarding address";
  }

  identity metric-type {
    base frr-route-map:rmap-set-type;
    description
      "Set the type of metric";
  }

  augment "/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:set-action/frr-route-map:rmap-set-action/frr-route-map:set-action" {
    case ipv6-address {
      when "derived-from-or-self(../frr-route-map:action, 'forwarding-address')";
      leaf ipv6-address {
        type inet:ipv6-address;
      }
    }
  }
}