[Bug 1735821] Re: netplan needs bridge port-priority support

Launchpad Bug Tracker 1735821 at bugs.launchpad.net
Fri Feb 16 19:43:48 UTC 2018


This bug was fixed in the package nplan - 0.33

---------------
nplan (0.33) bionic; urgency=medium

  * replug: Do not unbind ath9kl_sdio. Thanks Oliver! (LP: #1741910)
  * doc: fix syntax for IPv6 example addresses. IPv6 needs to be escaped in
    YAML. (LP: #1735317)
  * debian/postinst: Write breadcrumbs on disk in /etc/network/interfaces to
    denote the migration to using netplan. (LP: #1744968)
  * bridge: implement port-priority support for the NM and networkd backends.
    (LP: #1735821)
  * doc: routes are not top-level but per-interface. (LP: #1726695)
  * Rework CLI parsing / code layout to better handle subcommands.

 -- Mathieu Trudel-Lapierre <cyphermox at ubuntu.com>  Tue, 23 Jan 2018
11:32:47 -0500

** Changed in: nplan (Ubuntu)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to nplan in Ubuntu.
https://bugs.launchpad.net/bugs/1735821

Title:
  netplan needs bridge port-priority support

Status in nplan package in Ubuntu:
  Fix Released

Bug description:
  Now that systemd supports port-priority for bridges (LP: #1668347)
  netplan should handle port-priority like it does path-cost.

  1) % lsb_release -rd
  Description:	Ubuntu 16.04.3 LTS
  Release:	16.04

  1) # lsb_release -rd
  Description:	Ubuntu Bionic Beaver (development branch)
  Release:	18.04

  2) # apt-cache policy nplan
  nplan:
    Installed: 0.30
    Candidate: 0.32
    Version table:
       0.32 500
          500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
   *** 0.30 100
          100 /var/lib/dpkg/status

  3) netplan generate renders a networkd .network file which has
  [Bridge] section including  Priority  value set on each of the bridge
  ports specified

  4) netplan fails to parse the input yaml with

  Sample config that should parse:

  % cat br-pp.yaml
  network:
      version: 2
      ethernets:
          eth0:
              match:
                  macaddress: '52:54:00:12:34:04'
      bridges:
          br0:
              addresses:
              - 192.168.14.2/24
              interfaces:
              - eth0
              parameters:
                  path-cost:
                      eth0: 50
                  priority: 22
                  port-priority:
                      eth0: 14

  % netplan generate
  Error in network definition br-pp.yaml line 13 column 16: unknown key port-priority                    

  
  If fixed, then I would expect a /run/systemd/network/10-netplan-eth0.network that looks like
  [Match]
  MACAddress=52:54:00:12:34:00
  Name=eth0

  [Network]
  Bridge=br0
  LinkLocalAddressing=no
  IPv6AcceptRA=no

  [Bridge]
  Cost=50
  Priority=14

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



More information about the foundations-bugs mailing list