From cda3aaade9309cd250194c91ef51bfd95fe49fbf Mon Sep 17 00:00:00 2001 From: sever-sever Date: Fri, 30 Oct 2020 08:58:49 +0000 Subject: route-map: T3032: Add set table x for route-map --- .../route-map/node.tag/rule/node.tag/set/table/node.def | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 templates/policy/route-map/node.tag/rule/node.tag/set/table/node.def (limited to 'templates') diff --git a/templates/policy/route-map/node.tag/rule/node.tag/set/table/node.def b/templates/policy/route-map/node.tag/rule/node.tag/set/table/node.def new file mode 100644 index 00000000..b9e47fed --- /dev/null +++ b/templates/policy/route-map/node.tag/rule/node.tag/set/table/node.def @@ -0,0 +1,14 @@ +type: u32 +help: Set prefixes to table +val_help: u32:1-200; Table value + +syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 200; "table must be between 1 and 200" +commit:expression: $VAR(../../action/) != ""; "you must specify an action" + +update: vtysh -c "configure terminal" \ + -c "route-map $VAR(../../../@) $VAR(../../action/@) $VAR(../../@)" \ + -c "set table $VAR(@)" + +delete: vtysh -c "configure terminal" \ + -c "route-map $VAR(../../../@) $VAR(../../action/@) $VAR(../../@)" \ + -c "no set table " -- cgit v1.2.3