knife-cisco_asa 0.1.1 → 0.1.2
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 +4 -0
- data/lib/chef/knife/cisco_asa_host_remove.rb +6 -4
- data/lib/knife-cisco_asa/version.rb +1 -1
- metadata +1 -1
data/CHANGELOG.md
CHANGED
@@ -21,7 +21,7 @@ module CiscoAsaKnifePlugin
|
|
21
21
|
option :nat,
|
22
22
|
:long => "--nat IP",
|
23
23
|
:description => "NAT IP"
|
24
|
-
|
24
|
+
|
25
25
|
def run
|
26
26
|
|
27
27
|
hostname = name_args.first.upcase
|
@@ -43,10 +43,12 @@ module CiscoAsaKnifePlugin
|
|
43
43
|
ui.info "Removing host from Cisco ASA:"
|
44
44
|
ui.info "#{ui.color "ASA:", :cyan} #{get_config(:cisco_asa_host)}"
|
45
45
|
ui.info "#{ui.color "Host:", :cyan} #{hostname}"
|
46
|
-
ui.info "#{ui.color "NAT IP:", :cyan} #{natip}"
|
47
46
|
|
48
|
-
|
49
|
-
|
47
|
+
if get_config(:nat)
|
48
|
+
ui.info "#{ui.color "NAT IP:", :cyan} #{get_config(:nat)}"
|
49
|
+
commands << "object network #{hostname}"
|
50
|
+
commands << " no nat (inside,outside) static #{get_config(:nat)} dns"
|
51
|
+
end
|
50
52
|
|
51
53
|
if get_config(:groups)
|
52
54
|
get_config(:groups).split(",").each do |group|
|