settle-dad.sh expects netmask to be provided, but netmask is not marked 'required'

Bug #1543657 reported by Graham Clinch
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ifupdown (Ubuntu)
New
Undecided
Unassigned

Bug Description

=
Description: Ubuntu Xenial Xerus (development branch)
Release: 16.04

ifupdown:
  Installed: 0.8.10ubuntu1
  Candidate: 0.8.10ubuntu1
=

For the inet6 static method, interfaces(5) implies that only 'address' is required (and thus netmask is optional), however settle-dad.sh assumes IF_NETMASK is being set. If only address is supplied, the following message is logged:

Waiting for DAD... Error: inet6 prefix is expected rather than "2001:db8:ab:cd::12/"

and settle-dad.sh returns immediately, before DAD has settled.

'ip address list' appears to ignore the netmask if it is supplied, so settle-dad could probably just use '[..] to "${IF_ADDRESS}"'. Alternatively, 'netmask' could be documented as 'required'.

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.