From 34cdbeb75f3c74d803fb60c509fc06e4f6365f0c Mon Sep 17 00:00:00 2001 From: Zachary Puls Date: Tue, 27 Feb 2018 09:22:32 -0600 Subject: model: Added "commands" flag to "show configuration" on VyOS/Vyatta/EdgeOS (#1164) --- lib/oxidized/model/vyatta.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/oxidized/model/vyatta.rb') diff --git a/lib/oxidized/model/vyatta.rb b/lib/oxidized/model/vyatta.rb index 8d977aa..aa0bc74 100644 --- a/lib/oxidized/model/vyatta.rb +++ b/lib/oxidized/model/vyatta.rb @@ -13,7 +13,7 @@ class Vyatta < Oxidized::Model cfg end - cmd 'show configuration | no-more' + cmd 'show configuration commands | no-more' cfg :telnet do username /login:\s/ -- cgit v1.2.1 From 577128f962f02e81ce7664e32fb97a46f2c220e8 Mon Sep 17 00:00:00 2001 From: Adam Smith Date: Thu, 15 Mar 2018 01:54:55 -0700 Subject: add removal of secrets in edgeos, vyatta --- lib/oxidized/model/vyatta.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/oxidized/model/vyatta.rb') diff --git a/lib/oxidized/model/vyatta.rb b/lib/oxidized/model/vyatta.rb index aa0bc74..57ec9d3 100644 --- a/lib/oxidized/model/vyatta.rb +++ b/lib/oxidized/model/vyatta.rb @@ -9,6 +9,10 @@ class Vyatta < Oxidized::Model end cmd :secret do |cfg| + cfg.gsub! /encrypted-password (\S+).*/, 'encrypted-password ' + cfg.gsub! /plaintext-password (\S+).*/, 'plaintext-password ' + cfg.gsub! /password (\S+).*/, 'password ' + cfg.gsub! /pre-shared-secret (\S+).*/, 'pre-shared-secret ' cfg.gsub! /community (\S+) {/, 'community {' cfg end -- cgit v1.2.1