Page MenuHomeVyOS Platform

0001-T1973-Allow-route-map-rule-to-match-prefix-s-BGP-loc.patch

Authored By
bbs2web
Jan 20 2020, 2:41 PM
Size
1 KB
Referenced Files
None
Subscribers
None

0001-T1973-Allow-route-map-rule-to-match-prefix-s-BGP-loc.patch

From 426b5ed0971600cb598a04429038f1dd51e8a6f6 Mon Sep 17 00:00:00 2001
From: bbs2web <[email protected]>
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 <[email protected]>
---
.../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

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)

Event Timeline