Page MenuHomeVyOS Platform

Missing check in edit command
Open, Requires assessmentPublicBUG

Description

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

[email protected]# 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.

[email protected]# edit interfaces ethernet 0
[edit interfaces ethernet 0]
[email protected]# set address 192.0.2.1/24
[edit interfaces ethernet 0]
[email protected]# top
[edit]
[email protected]# 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.)