diff options
author | Eugene Nikanorov <enikanorov@mirantis.com> | 2014-09-15 22:10:45 +0400 |
---|---|---|
committer | Kyle Mestery <mestery@mestery.com> | 2014-10-07 15:58:52 +0000 |
commit | 0a64b61f8cbf41e1bf74961c235f03ac6cc6ead6 (patch) | |
tree | 764e6ee41f209e92053e039d531496dc49730b89 | |
parent | 205162f58050fcb94db53cd51b674d2093dfe700 (diff) | |
download | neutron-0a64b61f8cbf41e1bf74961c235f03ac6cc6ead6.tar.gz |
Add missing methods to NoopFirewallDriver
The fix adds missing methods into generic Firewall class
and in NoopFirewall driver class.
Change-Id: I6402448075ed414434dc007f5c403fc85b6b1456
Closes-Bug: #1369685
Related-Bug: #1365806
(cherry picked from commit 9a6c073656a7e0b1a26b2bca0ba381489d04e322)
-rw-r--r-- | neutron/agent/firewall.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/neutron/agent/firewall.py b/neutron/agent/firewall.py index 7ce1f99209..8ce8e7b16b 100644 --- a/neutron/agent/firewall.py +++ b/neutron/agent/firewall.py @@ -105,6 +105,14 @@ class FirewallDriver(object): finally: self.filter_defer_apply_off() + def update_security_group_members(self, sg_id, ips): + """Update group members in a security group.""" + raise NotImplementedError() + + def update_security_group_rules(self, sg_id, rules): + """Update rules in a security group.""" + raise NotImplementedError() + class NoopFirewallDriver(FirewallDriver): """Noop Firewall Driver. @@ -134,3 +142,9 @@ class NoopFirewallDriver(FirewallDriver): @property def ports(self): return {} + + def update_security_group_members(self, sg_id, ips): + pass + + def update_security_group_rules(self, sg_id, rules): + pass |