ip rule show has unexpected space in destination prefix

Bug #1789431 reported by Stefan Bader
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
iproute2 (Ubuntu)
Fix Released
High
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.

Testcase:
  ip rule add from 10.1.0.0/24 to 10.2.0.0/24 lookup 99
  ip rule show
Expected: *: from 10.1.0.0/24 to 10.2.0.0/24 lookup 99
Actual output: *: from 0.1.0.0/24 to 10.2.0.0 /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

Remote bug watches

Bug watches keep track of this bug in other bug trackers.