ubuntu@new-man:~$ dpkg -l netplan.io | grep ii
ii  netplan.io     0.40.1~18.04.1 amd64        YAML network configuration 
abstraction for various backends

Verification-done:

netplan now correctly reports either nothing at all (if the interface
does not exist on the system), or a meaningful error message that there
is no lease for the interface (in the event it is not managed by DHCP):

ubuntu@new-man:~$ netplan ip leases eth0
ubuntu@new-man:~$ netplan ip leases eth9
ubuntu@new-man:~$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode 
DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: ens6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP 
mode DEFAULT group default qlen 1000
    link/ether 52:54:00:ab:37:d8 brd ff:ff:ff:ff:ff:ff
ubuntu@new-man:~$ netplan ip leases ens6
No lease found for interface 'ens6': [Errno 2] No such file or directory: 
'/run/systemd/netif/leases/2'

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

Title:
  netplan ip leases <interface> traceback when interface not managed by
  netplan or set to DHCP

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/1768823/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to