summaryrefslogtreecommitdiff
path: root/templates/policy
diff options
context:
space:
mode:
Diffstat (limited to 'templates/policy')
-rw-r--r--templates/policy/route-map/node.tag/rule/node.tag/match/rpki/node.def15
1 files changed, 15 insertions, 0 deletions
diff --git a/templates/policy/route-map/node.tag/rule/node.tag/match/rpki/node.def b/templates/policy/route-map/node.tag/rule/node.tag/match/rpki/node.def
new file mode 100644
index 00000000..3b1f8b47
--- /dev/null
+++ b/templates/policy/route-map/node.tag/rule/node.tag/match/rpki/node.def
@@ -0,0 +1,15 @@
+type: txt
+help: Match RPKI validation result
+
+syntax:expression: $VAR(@) in "notfound", "invalid", "valid"; "Must be either notfound, invalid, or valid"
+
+commit:expression: $VAR(../../action/) != ""; "You must specify an action"
+
+update: vtysh -c "configure terminal" \
+ -c "route-map $VAR(../../../@) $VAR(../../action/@) $VAR(../../@)" \
+ -c "match rpki $VAR(@)"
+
+delete: vtysh -c "configure terminal" \
+ -c "route-map $VAR(../../../@) $VAR(../../action/@) $VAR(../../@)" \
+ -c "no match rpki $VAR(@)"
+