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

Version
1.2.0

Event Timeline

c-po claimed this task.
c-po triaged this task as Normal priority.
c-po updated the task description. (Show Details)
c-po edited a custom field.
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.