]> git.proxmox.com Git - mirror_frr.git/blob - yang/frr-ospf-route-map.yang
Merge pull request #9378 from AnuradhaKaruppiah/evpn-mh-cleanup
[mirror_frr.git] / yang / frr-ospf-route-map.yang
1 module frr-ospf-route-map {
2 yang-version 1.1;
3 namespace "http://frrouting.org/yang/ospf-route-map";
4 prefix frr-ospf-route-map;
5
6 import ietf-inet-types {
7 prefix inet;
8 }
9
10 import frr-route-map {
11 prefix frr-route-map;
12 }
13
14 organization
15 "Free Range Routing";
16 contact
17 "FRR Users List: <mailto:frog@lists.frrouting.org>
18 FRR Development List: <mailto:dev@lists.frrouting.org>";
19 description
20 "This module defines ospf route map settings";
21
22 revision 2020-01-02 {
23 description
24 "Initial revision";
25 }
26
27 identity metric-type {
28 base frr-route-map:rmap-set-type;
29 description
30 "Set the type of metric";
31 }
32
33 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" {
34 case metric-type {
35 when "derived-from-or-self(/frr-route-map:lib/frr-route-map:route-map/frr-route-map:entry/frr-route-map:set-action/frr-route-map:action, 'metric-type')";
36 leaf metric-type {
37 type enumeration {
38 enum "type-1" {
39 value 0;
40 description
41 "OSPF6 external type 1 metric";
42 }
43 enum "type-2" {
44 value 1;
45 description
46 "OSPF6 external type 2 metric";
47 }
48 }
49 }
50 }
51 }
52 }