Public bug reported:

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

** Affects: iproute2 (Ubuntu)
     Importance: High
     Assignee: Stefan Bader (smb)
         Status: Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to iproute2 in Ubuntu.
https://bugs.launchpad.net/bugs/1789431

Title:
  ip rule show has unexpected space in destination prefix

Status in iproute2 package in Ubuntu:
  Triaged

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/iproute2/+bug/1789431/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to