Page MenuHomeVyOS Platform

support command-style output with compare command
Closed, ResolvedPublicFEATURE REQUEST

Description

From: https://github.com/vyos/vyatta-config-mgmt/pull/2

Summary

support command-style output with compare command (like show configuration commands)

Example

vyos@rts-brd-01# compare 
[edit system login user one]
>full-name one-111
[edit system login]
+user three {
+    full-name three-3
+    level admin
+}
-user two {
-    authentication {
-        encrypted-password !
-        plaintext-password ""
-    }
-    full-name two-2
-    level admin
-}
[edit]

vyos@rts-brd-01# compare commands
delete system login user 'two'
set system login user one full-name 'one-111'
set system login user three full-name 'three-3'
set system login user three level 'admin'
[edit]

Completion helper

[email protected]# compare
Possible completions:
  commands      Compare working & active configurations and show "set" commands
  <Enter>       Compare working & active configurations

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Improvement (missing useful functionality)

Event Timeline

c-po created this task.
c-po changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.
c-po changed Issue type from Unspecified (please specify) to Improvement (missing useful functionality).
[email protected]# compare
[edit protocols bgp]
>local-as 20
+neighbor 1.1.1.1 {
+    remote-as 2000
+}
[edit]
[email protected]# compare commands
set protocols bgp local-as '20'
set protocols bgp neighbor 1.1.1.1 remote-as '2000'
c-po moved this task from Need Triage to Finished on the VyOS 1.4 Sagitta board.
c-po moved this task from Need Triage to Finished on the VyOS 1.3 Equuleus (1.3.0) board.