Page MenuHomeVyOS Platform

cli: logical redundancy with boolean type
Closed, ResolvedPublic

Description

I think exist another way that more simple to set param set system options reboot-on-panic true. Today I had some logical issue with this command

dimka@vyos-rtr1# set system options reboot-on-panic 
Possible completions:
   <boolean>    Reboot system on kernel panic

      
[edit]
dimka@vyos-rtr1# set system options reboot-on-panic 1

  "1" is not a valid value of type "bool"
  Value validation failed
  Set failed


[edit]
dimka@vyos-rtr1# set system options reboot-on-panic yes

  "yes" is not a valid value of type "bool"
  Value validation failed
  Set failed

[edit]
dimka@vyos-rtr1# set system options reboot-on-panic true

The fourth attempt was successful. I propose use only set system options reboot-on-panic without boolean types.

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)

Event Timeline

Dmitry created this task.
Dmitry created this object in space S1 VyOS Public.

Unfortunately we have multiple commands like this.

Fixed, VyOS 1.3-rolling-202007240117

vyos@r1-roll# set system options reboot-on-panic 
Possible completions:
  <Enter>	Execute the current command

Can we close it?

Yes, I have migrated this a long time ago

c-po claimed this task.
c-po set Is it a breaking change? to Unspecified (possibly destroys the router).