Page MenuHomeVyOS Platform

Add "tag" for static route
Closed, ResolvedPublicFEATURE REQUEST

Description

Ability to add "tag" for the static routes.
Proposed CLI:

set protocols static route 203.0.113.6/32 blackhole tag 666

In the FRR:

r5(config)# ip route 203.0.113.6/32 Null0 tag 666

One of the uses cases it easy to use in route-maps for blackholing (we allow match tags but we can't set tags for routes right now)

set policy route-map ISP01 rule 10 match tag 666
set policy route-map ISP01 rule 10 set community 111:666
set policy route-map ISP02 rule 10 match tag 666
set policy route-map ISP02 rule 10 set community 222:666

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Feature (new functionality)

Event Timeline

PR https://github.com/vyos/vyatta-cfg-quagga/pull/57

vyos@r5# set protocols static route 203.0.113.6/32 blackhole tag 666
[edit]
vyos@r5# commit
[edit]
vyos@r5# run show ip route 203.0.113.6
Routing entry for 203.0.113.6/32
  Known via "static", distance 1, metric 0, tag 666, best
  Last update 00:00:36 ago
  * unreachable (blackhole), weight 1

Change metric

set protocols static route 203.0.113.6/32 blackhole distance '22'
set protocols static route 203.0.113.6/32 blackhole tag '666'

show route

vyos@r5# run show ip route 203.0.113.6
Routing entry for 203.0.113.6/32
  Known via "static", distance 22, metric 0, tag 666, best
  Last update 00:00:43 ago
  * unreachable (blackhole), weight 1
Viacheslav changed the task status from Open to Needs testing.Nov 28 2020, 4:41 PM
Viacheslav claimed this task.
erkin set Issue type to Feature (new functionality).Aug 29 2021, 12:11 PM
erkin removed a subscriber: Active contributors.