lib/chef/knife/profitbricks_firewall_create.rb in knife-profitbricks-1.1.1 vs lib/chef/knife/profitbricks_firewall_create.rb in knife-profitbricks-1.1.2
- old
+ new
@@ -6,24 +6,24 @@
include Knife::ProfitbricksBase
banner 'knife profitbricks firewall create (options)'
option :datacenter_id,
- short: '-D DATACENTER_UUID',
- long: '--datacenter-id DATACENTER_UUID',
- description: 'UUID of the data center',
+ short: '-D DATACENTER_ID',
+ long: '--datacenter-id DATACENTER_ID',
+ description: 'ID of the data center',
proc: proc { |datacenter_id| Chef::Config[:knife][:datacenter_id] = datacenter_id }
option :server_id,
- short: '-S SERVER_UUID',
- long: '--server-id SERVER_UUID',
- description: 'UUID of the server'
+ short: '-S SERVER_ID',
+ long: '--server-id SERVER_ID',
+ description: 'ID of the server'
option :nic_id,
- short: '-N NIC_UUID',
- long: '--nic-id NIC_UUID',
- description: 'UUID of the NIC'
+ short: '-N NIC_ID',
+ long: '--nic-id NIC_ID',
+ description: 'ID of the NIC'
option :name,
short: '-n NAME',
long: '--name NAME',
description: 'Name of the NIC'
@@ -32,10 +32,10 @@
short: '-P PROTOCOL',
long: '--protocol PROTOCOL',
default: 'TCP',
description: 'The protocol of the firewall rule (TCP, UDP, ICMP,' \
' ANY)',
- required: true
+ required: true
option :sourcemac,
short: '-m MAC',
long: '--source-mac MAC',
description: 'Only traffic originating from the respective MAC' \