knife-cisco_asa 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG.md
CHANGED
@@ -57,11 +57,11 @@ module CiscoAsaKnifePlugin
|
|
57
57
|
|
58
58
|
def get_cisco_asa_config
|
59
59
|
config[:cisco_asa_password] = ask("Cisco Password for #{get_config(:cisco_asa_username)}: ") { |q| q.echo = "*" } unless get_config(:cisco_asa_password)
|
60
|
-
config[:cisco_asa_enable_password] = ask("Enable Password for #{get_config(:
|
60
|
+
config[:cisco_asa_enable_password] = ask("Enable Password for #{get_config(:cisco_asa_hostname)}: ") { |q| q.echo = "*" } unless get_config(:cisco_asa_enable_password)
|
61
61
|
end
|
62
62
|
|
63
63
|
def run_config_commands(commands)
|
64
|
-
asa = Cisco::Base.new(:host => get_config(:
|
64
|
+
asa = Cisco::Base.new(:host => get_config(:cisco_asa_hostname), :user => get_config(:cisco_asa_username), :password => get_config(:cisco_asa_password), :transport => :ssh)
|
65
65
|
asa.enable(get_config(:cisco_asa_enable_password))
|
66
66
|
asa.cmd("conf t")
|
67
67
|
commands.each do |command|
|
@@ -58,7 +58,7 @@ module CiscoAsaKnifePlugin
|
|
58
58
|
commands = []
|
59
59
|
|
60
60
|
ui.info "Adding host to Cisco ASA:"
|
61
|
-
ui.info "#{ui.color "ASA:", :cyan} #{get_config(:
|
61
|
+
ui.info "#{ui.color "ASA:", :cyan} #{get_config(:cisco_asa_hostname)}"
|
62
62
|
ui.info "#{ui.color "Host:", :cyan} #{hostname}"
|
63
63
|
ui.info "#{ui.color "IP:", :cyan} #{ip}"
|
64
64
|
|
@@ -41,7 +41,7 @@ module CiscoAsaKnifePlugin
|
|
41
41
|
commands = []
|
42
42
|
|
43
43
|
ui.info "Removing host from Cisco ASA:"
|
44
|
-
ui.info "#{ui.color "ASA:", :cyan} #{get_config(:
|
44
|
+
ui.info "#{ui.color "ASA:", :cyan} #{get_config(:cisco_asa_hostname)}"
|
45
45
|
ui.info "#{ui.color "Host:", :cyan} #{hostname}"
|
46
46
|
|
47
47
|
if get_config(:nat)
|