add route table and route type label #2728
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds labels to show the route table for a particular route as well as the route type.
On a router, it is common to use different route tables to differentiate and isolate networks (known as VRFs in the networking world) for multiple tenants. The original PR does not seem to differentiate between different route tables (no response to #1811 (comment)) so this PR adds this feature. It also looks up the route table id to a user friendly name as defined in rt_tables config.
Also, "blackhole" route types are a route to ensure that packets destined for networks which the router is not able to route to do not keep propagating. On Linux, there are two options to do this, either through the route type of "blackhole", which silently discards the packet, or "unreachable", which sends an ICMP unreachable message.
On a device functioning as a router, it is usable to be able to monitor and identify these routes and types.
Example output