Page MenuHomeVyOS Platform

Missing check in edit command
Open, WishlistPublicBUG

Description

If I try to insert the wrong command by 'set', I receive an error.

vyos@vyos# set interfaces ethernet 0



  Invalid Ethernet interface name
  Value validation failed
  Set failed

[edit]

But if I try to insert the wrong command by 'edit', I do not receive an error.

vyos@vyos# edit interfaces ethernet 0
[edit interfaces ethernet 0]
vyos@vyos# set address 192.0.2.1/24
[edit interfaces ethernet 0]
vyos@vyos# top
[edit]
vyos@vyos# show interfaces
+ethernet 0 {
+    address 192.0.2.1/24
+}
 ethernet eth0 {
     address dhcp
     hw-id 0c:c4:4d:46:00:00
 }
}

Details

Difficulty level
Unknown (require assessment)
Version
1.4-rolling-202206090217, 1.3.1-S1
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Cosmetic issue (typos etc.)