diff options
author | Daniil Baturin <daniil@vyos.io> | 2020-10-30 16:03:35 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-30 16:03:35 +0700 |
commit | bb294a0f502cd5c92ec5d118c45c5fa7761c010a (patch) | |
tree | ed6159133b2226cc724381f35e7470557a171056 /templates | |
parent | e759503e6b1cdd19c5a89a0b6fe535df5e306138 (diff) | |
parent | cda3aaade9309cd250194c91ef51bfd95fe49fbf (diff) | |
download | vyatta-cfg-quagga-bb294a0f502cd5c92ec5d118c45c5fa7761c010a.tar.gz vyatta-cfg-quagga-bb294a0f502cd5c92ec5d118c45c5fa7761c010a.zip |
Merge pull request #56 from sever-sever/T3032
route-map: T3032: Add set table x for route-map
Diffstat (limited to 'templates')
-rw-r--r-- | templates/policy/route-map/node.tag/rule/node.tag/set/table/node.def | 14 |
1 files changed, 14 insertions, 0 deletions
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 " |