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
@@ -1,3 +1,11 @@
1
+ ## v0.1.4
2
+
3
+ * Bumped version only.
4
+
5
+ ## v0.1.3
6
+
7
+ * Fixed ASA hostname references
8
+
1
9
  ## v0.1.2
2
10
 
3
11
  * Fixed handling of removing host with --nat
@@ -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(:cisco_asa_host)}: ") { |q| q.echo = "*" } unless get_config(:cisco_asa_enable_password)
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(:cisco_asa_host), :user => get_config(:cisco_asa_username), :password => get_config(:cisco_asa_password), :transport => :ssh)
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(:cisco_asa_host)}"
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(:cisco_asa_host)}"
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)
@@ -1,5 +1,5 @@
1
1
  module Knife
2
2
  module CiscoAsa
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-cisco_asa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: