Page Menu
Home
VyOS Platform
Search
Configure Global Search
Log In
Files
F458921
0001-T1974-Allow-route-map-rule-to-set-administrative-dis.patch
All Users
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
bbs2web
Jan 20 2020, 2:44 PM
2020-01-20 14:44:00 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
0001-T1974-Allow-route-map-rule-to-set-administrative-dis.patch
View Options
From 8e1fbaca0fe069f0db7329e24bd3e4815708ba51 Mon Sep 17 00:00:00 2001
From: bbs2web <bbs2web@hotmail.com>
Date: Mon, 20 Jan 2020 16:33:32 +0200
Subject: [PATCH] T1974 - Allow route-map rule to set administrative distance.
Signed-off-by: bbs2web <bbs2web@hotmail.com>
---
.../route-map/node.tag/rule/node.tag/set/distance/node.def | 14 ++++++++++++++
1 file changed, 14 insertions(+)
create mode 100644 templates/policy/route-map/node.tag/rule/node.tag/set/distance/node.def
diff --git a/templates/policy/route-map/node.tag/rule/node.tag/set/distance/node.def b/templates/policy/route-map/node.tag/rule/node.tag/set/distance/node.def
new file mode 100644
index 0000000..edf10a4
--- /dev/null
+++ b/templates/policy/route-map/node.tag/rule/node.tag/set/distance/node.def
@@ -0,0 +1,14 @@
+type: u32
+help: Locally significant administrative distance
+val_help: u32:0-255; Distance value
+
+syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 255; "metric must be between 0 and 255"
+commit:expression: $VAR(../../action/) != ""; "you must specify an action"
+
+update: vtysh -c "configure terminal" \
+ -c "route-map $VAR(../../../@) $VAR(../../action/@) $VAR(../../@)" \
+ -c "set distance $VAR(@)"
+
+delete: vtysh --noerror -c "configure terminal" \
+ -c "route-map $VAR(../../../@) $VAR(../../action/@) $VAR(../../@)" \
+ -c "no set distance "
--
1.7.12.4
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ca/51/aea040141dc5254b2c30dcbc65ad
Default Alt Text
0001-T1974-Allow-route-map-rule-to-set-administrative-dis.patch (1 KB)
Attached To
Mode
T1974: Allow route-map to set administrative distance
Attached
Detach File
Event Timeline
Log In to Comment