Page Menu
Home
VyOS Platform
Search
Configure Global Search
Log In
Files
F458920
0001-T1973-Allow-route-map-rule-to-match-prefix-s-BGP-loc.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:41 PM
2020-01-20 14:41:27 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
0001-T1973-Allow-route-map-rule-to-match-prefix-s-BGP-loc.patch
View Options
From 426b5ed0971600cb598a04429038f1dd51e8a6f6 Mon Sep 17 00:00:00 2001
From: bbs2web <bbs2web@hotmail.com>
Date: Mon, 20 Jan 2020 16:26:11 +0200
Subject: [PATCH] T1973 - Allow route-map rule to match prefix's BGP local
preference.
Signed-off-by: bbs2web <bbs2web@hotmail.com>
---
.../node.tag/rule/node.tag/match/local-preference/node.def | 14 ++++++++++++++
1 file changed, 14 insertions(+)
create mode 100644 templates/policy/route-map/node.tag/rule/node.tag/match/local-preference/node.def
diff --git a/templates/policy/route-map/node.tag/rule/node.tag/match/local-preference/node.def b/templates/policy/route-map/node.tag/rule/node.tag/match/local-preference/node.def
new file mode 100644
index 0000000..b5500b0
--- /dev/null
+++ b/templates/policy/route-map/node.tag/rule/node.tag/match/local-preference/node.def
@@ -0,0 +1,14 @@
+type: u32
+help: BGP local-preference to match
+val_help: u32:0-4294967295; Local Preference
+
+syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 4294967295; "metric must be between 0 and 4294967295"
+commit:expression: $VAR(../../action/) != ""; "you must specify an action"
+
+update: vtysh -c "configure terminal" \
+ -c "route-map $VAR(../../../@) $VAR(../../action/@) $VAR(../../@)" \
+ -c "match local-preference $VAR(@)"
+
+delete: vtysh -c "configure terminal" \
+ -c "route-map $VAR(../../../@) $VAR(../../action/@) $VAR(../../@)" \
+ -c "no match local-preference $VAR(@)"
--
1.7.12.4
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c2/e2/9fe03ccb7d3e455471c1490a98b5
Default Alt Text
0001-T1973-Allow-route-map-rule-to-match-prefix-s-BGP-loc.patch (1 KB)
Attached To
Mode
T1973: Allow route-map to match on BGP local preference value
Attached
Detach File
Event Timeline
Log In to Comment