From: marios <[email protected]>
Signed-off-by: marios <[email protected]> --- server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb b/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb index 53a0ac2..90efb5d 100644 --- a/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb +++ b/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb @@ -35,6 +35,8 @@ class FgcpDriver < Deltacloud::BaseDriver feature :instances, :metrics feature :images, :user_name feature :images, :user_description + feature :firewalls, :rule_action + feature :firewalls, :log_rule define_hardware_profile('default') @@ -935,6 +937,24 @@ eofwpxml end #TODO +# +#MESSAGE FOR DIES: the optional parameters (rule action and log rule) will be available +#in opts[:rule_action] ('accept' or 'deny') and opts[:log_rule] ('true' or 'false') +#These are advertised in the /api entry point under the firewalls collection like: +# +# <link href='http://localhost:3001/api/firewalls' rel='firewalls'> +# <feature name='rule_action'> +# </feature> +# <feature name='log_rule'> +# </feature> +# </link> +# +# The firewall_rule model now also has attributes for these: +# FirewallRule.new({ ... :rule_action => params[:rule_action], :log_rule => params[:log_rule] ...}) etc +# +# DELETE THIS COMMENT PLEASE +# +# # def create_firewall_rule(credentials, opts={}) # p opts # end -- 1.7.11.4
