diff options
| author | Sandy Walsh <sandy.walsh@rackspace.com> | 2011-01-27 23:53:28 -0600 |
|---|---|---|
| committer | Sandy Walsh <sandy.walsh@rackspace.com> | 2011-01-27 23:53:28 -0600 |
| commit | eabc4c00eea8859c37efed3f180edbc41fd3b71d (patch) | |
| tree | 55e443f1aff547645c4dbc54429c48bd7cefdbe5 /bin | |
| parent | 2a64ccb8139eb30aab394391cf137d4cb83ce55e (diff) | |
| download | nova-eabc4c00eea8859c37efed3f180edbc41fd3b71d.tar.gz nova-eabc4c00eea8859c37efed3f180edbc41fd3b71d.tar.xz nova-eabc4c00eea8859c37efed3f180edbc41fd3b71d.zip | |
Working on api / manager / db support for zones
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/nova-manage | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/nova-manage b/bin/nova-manage index 7835ca551..b62687aec 100755 --- a/bin/nova-manage +++ b/bin/nova-manage @@ -569,6 +569,15 @@ class DbCommands(object): print migration.db_version() +class ZoneCommands(object): + """Methods for defining zones.""" + + def create(self, name): + """Create a new Zone for this deployment.""" + ctxt = context.get_admin_context() + db.create_zone(ctxt, name) + + class VolumeCommands(object): """Methods for dealing with a cloud in an odd state""" @@ -620,6 +629,7 @@ CATEGORIES = [ ('service', ServiceCommands), ('log', LogCommands), ('db', DbCommands), + ('zone', ZoneCommands), ('volume', VolumeCommands)] |
