iproute2: frr route protocols are not converted to string on xenial

Bug #1771783 reported by Nicolas Dichtel on 2018-05-17
This bug affects 1 person
Affects Status Importance Assigned to Milestone
iproute2 (Ubuntu)

Bug Description

FRR puts its own proto numbers when inserting a route, example:
$ ip route
[snip] via dev eth2 proto 188 metric 20

iproute2 defines some protocols, but not all:

A patch has been pushed upstream so that external applications can define their protocols numbers:
719e331ff619 ("Add support for rt_protos.d")

affects: linux (Ubuntu) → iproute2 (Ubuntu)
Khaled El Mously (kmously) wrote :

The attachment "proposed-patch-1.debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Khaled El Mously (kmously) wrote :

Proposed fix for lp #1771764 and lp #1771783

Please ignore the first proposal.

It works on my side:

$ ./ip/ip r a via dev mgmt0 proto 188 metric 20
$ ./ip/ip r | grep 2.2.2 via dev mgmt0 proto 188 metric 20
$ mkdir -p /etc/iproute2/rt_protos.d
$ echo "188 foo" > /etc/iproute2/rt_protos.d/bar.conf
$ ./ip/ip r | grep 2.2.2 via dev mgmt0 proto foo metric 20

tags: added: xenial
Changed in iproute2 (Ubuntu):
importance: Undecided → Wishlist
tags: added: patch-accepted-upstream
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers