~mwhudson/netplan:common-link-handlers

Last commit made on 2018-09-06
Get this branch:
git clone -b common-link-handlers https://git.launchpad.net/~mwhudson/netplan
Only Michael Hudson-Doyle can upload to this branch. If you are Michael Hudson-Doyle please log in for upload directions.

Branch merges

Branch information

Name:
common-link-handlers
Repository:
lp:~mwhudson/netplan

Recent commits

c1ee5f0... by Michael Hudson-Doyle

remove duplication of link handlers

ad14292... by Mathieu Trudel-Lapierre

Update changelog for new bugfix release

269827f... by Mathieu Trudel-Lapierre

Fix typo in NM on-link route error check

8096e4b... by Daniel Axtens

NetworkManager: error on unrenderable route

NM cannot render anything other than to, via and metric.

If an attempt is made to specify any of these, throw an error.

Signed-off-by: Daniel Axtens <email address hidden>

1985d47... by Daniel Axtens

networkd: route source is PreferredSource= not From=

And it can only take an address, not an address + netmask.
We don't currently validate that but let's at least make the
tests and examples right.

Signed-off-by: Daniel Axtens <email address hidden>

78d75c8... by Daniel Axtens

Don't render dns-search for ipv4 when no addresses configured

LP: #1786726

In an IPv6 static setup with NetworkManager, such as the following:

    ens8:
      accept-ra: false
      addresses: ['23:b0:87:58:65:f7:fb:8b/45', '63:94:73:e1:46:15:79:58/50']
      nameservers:
        addresses: ['f2:9d:bc:04:7b:87:ec:28']
        search: [lab, home]
      renderer: NetworkManager

we see the following error in syslog:

NetworkManager[19666]: <warn> [1532665946.1502] keyfile: error loading connection from file /run/NetworkManager/system-connections/netplan-ens8: invalid connection: ipv4.dns-search: this property is not allowed for 'method=link-local'

netplan renders an ipv4 dns search property, even though there is no
configured ipv4 address. NetworkManager doesn't like this and it
prevents the connection from being configured.

Don't render ipv4 dns-search unless we have an ipv4 address.

Signed-off-by: Daniel Axtens <email address hidden>

d40cd2f... by Daniel Axtens

Route type is "prohibit", not "prohibited"

LP: #1783940

Signed-off-by: Daniel Axtens <email address hidden>

ecc04b1... by Daniel Axtens

Set permissive umask on networkd .network and .netdev files

LP: #1736965
LP: #1768560

Without this, a restrictive umask causes systemd-networkd to fail
with permission denied errors.

Signed-off-by: Daniel Axtens <email address hidden>

5017b88... by Mathieu Trudel-Lapierre

lint: fix invalid spacing

38b5e28... by Mathieu Trudel-Lapierre

tests: add error test for missing 'to' for a link scope route