SUMMARY
If a DHCP interface fails to get an IP address, deleting the interface results in a bash script error.
STEPS TO REPRODUCE
- Start a Vyos ISO on a LAN with no DHCP server
- Login
- Run the following commands:
__
configure set interfaces ethernet eth0 address dhcp commit delete interfaces ethernet commit
OBSERVED RESULT
[ interfaces ethernet eth0 address dhcp ] Usage: grep [OPTION]... PATTERN [FILE]... Try 'grep --help' for more information [edit]
EXPECTED RESULT
[edit]
SOFTWARE/OS VERSIONS
vyos-1.2.0-rolling+201905200337-amd64.iso
ADDITIONAL INFORMATION
This is caused by the vyatta-address script in vyatta-cfg-system assuming it will always get an address out of a "ip address show".