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/edgeos.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/oxidized/model/edgeos.rb') diff --git a/lib/oxidized/model/edgeos.rb b/lib/oxidized/model/edgeos.rb index 2a8d663..bb0aab5 100644 --- a/lib/oxidized/model/edgeos.rb +++ b/lib/oxidized/model/edgeos.rb @@ -13,7 +13,7 @@ class Edgeos < 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/edgeos.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/oxidized/model/edgeos.rb') diff --git a/lib/oxidized/model/edgeos.rb b/lib/oxidized/model/edgeos.rb index bb0aab5..aa7a197 100644 --- a/lib/oxidized/model/edgeos.rb +++ b/lib/oxidized/model/edgeos.rb @@ -9,6 +9,10 @@ class Edgeos < 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 From 21e3d6490496573f25ef77fe8172766ac7d1a736 Mon Sep 17 00:00:00 2001 From: Wild Kat Date: Sat, 21 Apr 2018 13:27:05 +0200 Subject: the great makeover - standardize layout, alignment, indentation --- lib/oxidized/model/edgeos.rb | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/oxidized/model/edgeos.rb') diff --git a/lib/oxidized/model/edgeos.rb b/lib/oxidized/model/edgeos.rb index aa7a197..a723904 100644 --- a/lib/oxidized/model/edgeos.rb +++ b/lib/oxidized/model/edgeos.rb @@ -1,5 +1,4 @@ class Edgeos < Oxidized::Model - # EdgeOS # prompt /\@.*?\:~\$\s/ @@ -27,5 +26,4 @@ class Edgeos < Oxidized::Model cfg :telnet, :ssh do pre_logout 'exit' end - end -- cgit v1.2.1