yellowman / nsh

OpenBSD networking configuration shell
http://www.nmedia.net/nsh/
Other
174 stars 27 forks source link

reject redundant interface unit arguments to interface command #110

Closed stspdotname closed 1 year ago

stspdotname commented 1 year ago

Otherwise we end up creating a badly named interface in case the user enters extra digits:

nsh(config-p)/interface vlan100 200 % Interface name is vlan100200 not "vlan100 200" nsh(interface-vlan100200)/

Problem spotted by Tom Smyth.