ip rule show has unexpected space in destination prefix

Bug #1789431 reported by Stefan Bader
This bug affects 1 person
Affects Status Importance Assigned to Milestone
iproute2 (Ubuntu)
Fix Released
Stefan Bader

Bug Description

Introduced by upstream iproute2 v4.17.0:
  0dd4ccc5 "iprule: add json support"

This commit changes the output of "ip rule show" to support json output but also accidentally inserts a space character between ipv4 address and "/<length>". This breaks for example the route_with_policy test of netplan.io.

  ip rule add from to lookup 99
  ip rule show
Expected: *: from to lookup 99
Actual output: *: from to /24 lookup 99

Related branches

Revision history for this message
Stefan Bader (smb) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package iproute2 - 4.18.0-1ubuntu2

iproute2 (4.18.0-1ubuntu2) cosmic; urgency=low

  * d/p/1006-ubuntu-iprule-fix-output.patch
    Fix destination prefix output of "ip rule show" (LP: #1789431).

 -- Stefan Bader <email address hidden> Tue, 28 Aug 2018 16:38:47 +0200

Changed in iproute2 (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers