Page MenuHomeVyOS Platform

Changing VLAN interface address from DHCP to static is not handeled in vyatta-address script
Closed, ResolvedPublicBUG

Description

This happens after an interface was assigned a DHCP address for a long time (days) and then switching back to a static address.

vyos@vyos# delete interfaces ethernet eth0 vif 201 address dhcp
vyos@vyos# set interfaces ethernet eth0 vif 201 address 172.18.201.10/24
vyos@vyos# commit

[ interfaces ethernet eth0 vif 201 address dhcp ]
sed: can't read /var/lib/dhcp/dhclient_eth0.201.leases: No such file or director                                                                                                y
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.

The commit is performed but the error message is annoying.

Details

Difficulty level
Easy (less than an hour)
Version
1.2.0
Why the issue appeared?
Design mistake

Event Timeline

c-po triaged this task as Normal priority.
c-po created this task.
c-po updated the task description. (Show Details)
c-po changed Why the issue appeared? from Will be filled on close to Design mistake.
c-po renamed this task from Switching from interface DHCP to static assignmend causes error to Changing VLAN interface address from DHCP to static is not handeled in vyatta-address script.Apr 29 2019, 7:33 PM
c-po changed Version from 1.2.0-rolling+201904230829 to 1.2.0.
c-po moved this task from Need Triage to Finished on the VyOS 1.3 Equuleus board.
c-po moved this task from Needs Triage to Finished on the VyOS 1.2 Crux (VyOS 1.2.2) board.