From: https://github.com/vyos/vyatta-config-mgmt/pull/2
Summary
support command-style output with compare command (like show configuration commands)
Example
[email protected]# 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] [email protected]# 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