summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorTodd Willey <todd@ansolabs.com>2011-01-17 19:40:35 -0500
committerTodd Willey <todd@ansolabs.com>2011-01-17 19:40:35 -0500
commit3403e773f5a38c5d415e4ab66799c6e239223a0d (patch)
tree3fda3e2053329e1bfbb2e7ca565aae8ccd7309bb /nova/api
parent8e6684a58eea3ecacdde99e1940d2ae351b8465c (diff)
Stubbed-out code for working with provider-firewalls.
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/ec2/admin.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/nova/api/ec2/admin.py b/nova/api/ec2/admin.py
index 758b612e8..b784c5a00 100644
--- a/nova/api/ec2/admin.py
+++ b/nova/api/ec2/admin.py
@@ -209,3 +209,11 @@ class AdminController(object):
def describe_host(self, _context, name, **_kwargs):
"""Returns status info for single node."""
return host_dict(db.host_get(name))
+
+ def block_external_addresses(self, context, cidr):
+ """Add provider-level firewall rules to block incoming traffic."""
+ LOG.audit(_("Blocking access to all projects incoming from %s"),
+ cidr, context=context)
+ raise NotImplementedError(_("Awaiting implementation."))
+ # TODO(todd): implement
+ # return {'status': 'OK', 'message': 'Disabled (number) IPs'}