deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject git commit: Adds log_rule and rule_action for FirewallRule model - related to https://issues.apache.org/jira/browse/DTACLOUD-310
Date Mon, 03 Sep 2012 08:42:14 GMT
Updated Branches:
  refs/heads/master e4867b99d -> 8adbe9822


Adds log_rule and rule_action for FirewallRule model - related to
https://issues.apache.org/jira/browse/DTACLOUD-310


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/8adbe982
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/8adbe982
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/8adbe982

Branch: refs/heads/master
Commit: 8adbe982207b146a185d1b9e4826b6d4f299c84c
Parents: e4867b9
Author: marios <marios@redhat.com>
Authored: Mon Sep 3 11:41:13 2012 +0300
Committer: marios <marios@redhat.com>
Committed: Mon Sep 3 11:41:13 2012 +0300

----------------------------------------------------------------------
 server/lib/deltacloud/collections/firewalls.rb |    2 ++
 server/lib/deltacloud/models/firewall_rule.rb  |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/8adbe982/server/lib/deltacloud/collections/firewalls.rb
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/collections/firewalls.rb b/server/lib/deltacloud/collections/firewalls.rb
index 603a62e..42dc4ad 100644
--- a/server/lib/deltacloud/collections/firewalls.rb
+++ b/server/lib/deltacloud/collections/firewalls.rb
@@ -16,6 +16,8 @@
 module Deltacloud::Collections
   class Firewalls < Base
 
+    include Deltacloud::Features
+
     set :capability, lambda { |m| driver.respond_to? m }
 
     check_features :for => lambda { |c, f| driver.class.has_feature?(c, f) }

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/8adbe982/server/lib/deltacloud/models/firewall_rule.rb
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/models/firewall_rule.rb b/server/lib/deltacloud/models/firewall_rule.rb
index 3959eb6..32e8085 100644
--- a/server/lib/deltacloud/models/firewall_rule.rb
+++ b/server/lib/deltacloud/models/firewall_rule.rb
@@ -20,4 +20,6 @@ class FirewallRule < BaseModel
   attr_accessor :port_to
   attr_accessor :sources
   attr_accessor :direction #ingress egress
+  attr_accessor :rule_action #Accept/Deny - initially added for FGCP
+  attr_accessor :log_rule #log when rule triggered true/false - added for FGCP
 end


Mime
View raw message