Page MenuHomeVyOS Platform

"Deactivate" certain config snippets
Open, WishlistPublicFEATURE REQUEST

Description

The ability to just deactivate certain parts of the entire config, without having to remove it completely, is very benefical + supportive in my opinion. (Such as the "deactivate"-command from JUNOS..)

For example, sometimes there is no simple 'disable'-option or it isn't very fitting in the specific situation. Also often times, there already is some kind of configuration in progress, but not enough time (or info etc.) to finish it (be able to commit) and also no (good) way to save the current state / delta.

The "deactivate"-command would then just comment-out the (sometimes unfinished) configuration parts without error checking it etc.

Same (simple) syntax as in JUNOS for example:

"deactivate interfaces openvpn vtun0"

OUTPUT:

interfaces {
    openvpn {
/* ##DEACTIVATED by user vyos at DD/MM/YY HH:MM## 
         vtun0 {
             mode server 
             local-port 1194
             persistent-tunnel
             protocol udp
          } */
     }
}

or even:

"deactivate interfaces openvpn vtun0 comment 'Config Errors, to be reviewd by person xy'"

OUTPUT:

interfaces {
    openvpn {
/* ##DEACTIVATED by user vyos at DD/MM/YY HH:MM Reason: Config Errors, to be reviewd by person xy## 
         vtun0 {
             mode server 
             local-port 1194
             persistent-tunnel
             protocol udp
          } */
     }
}

The "activate" command (eg. "activate interfaces openvpn vtun0") then deletes the comment(s) and just leaves the configuration.

ps: is the default tag (VyOS 1.4 Sagitta) when creating tasks still correct? Shouldn't it be 1.5 by now?

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)
Issue type
Feature (new functionality)

Event Timeline

aga triaged this task as Wishlist priority.Sep 28 2023, 11:47 PM
aga created this task.
aga created this object in space S1 VyOS Public.
Viacheslav changed the subtype of this task from "Task" to "Feature Request".Sep 29 2023, 7:26 AM