diff options
author | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2019-07-25 22:01:07 +0200 |
---|---|---|
committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2019-08-02 00:58:52 +0200 |
commit | 04ef6e75550cbdb212197294937659762f934a66 (patch) | |
tree | 4ecda282dff0003b42d862634d7abea5182b180b /yang/frr-route-map.yang | |
parent | yang: initial filter YANG model import (diff) | |
download | frr-04ef6e75550cbdb212197294937659762f934a66.tar.xz frr-04ef6e75550cbdb212197294937659762f934a66.zip |
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>
Diffstat (limited to 'yang/frr-route-map.yang')
-rw-r--r-- | yang/frr-route-map.yang | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/yang/frr-route-map.yang b/yang/frr-route-map.yang index 349f427f5..0ce40b474 100644 --- a/yang/frr-route-map.yang +++ b/yang/frr-route-map.yang @@ -6,6 +6,9 @@ module frr-route-map { import ietf-inet-types { prefix inet; } + import frr-filter { + prefix filter; + } organization "Free Range Routing"; contact @@ -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 { @@ -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 { |