Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
yang: use filter types in route-map
Import the new YANG model filter and use its types.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
  • Loading branch information
rzalamena committed Aug 1, 2019
1 parent 2332428 commit 04ef6e7
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions yang/frr-route-map.yang
Expand Up @@ -6,6 +6,9 @@ module frr-route-map {
import ietf-inet-types {
prefix inet;
}
import frr-filter {
prefix filter;
}

organization "Free Range Routing";
contact
Expand Down Expand Up @@ -168,18 +171,14 @@ module frr-route-map {
when "./condition = 'ipv4-address-list' or
./condition = 'ipv4-next-hop-list'";
leaf access-list-num {
type uint8 {
range "1..199";
}
type filter:access-list-standard;
}
}
case access-list-num-extended {
when "./condition = 'ipv4-address-list' or
./condition = 'ipv4-next-hop-list'";
leaf access-list-num-extended {
type uint16 {
range "1300..2699";
}
type filter:access-list-extended;
}
}
case list-name {
Expand All @@ -190,7 +189,7 @@ module frr-route-map {
./condition = 'ipv6-address-list' or
./condition = 'ipv6-prefix-list'";
leaf list-name {
type string;
type filter:access-list-name;
}
}
case ipv6-address {
Expand Down

0 comments on commit 04ef6e7

Please sign in to comment.