fix bugs
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Fri, 29 Mar 2013 00:46:58 +0000 (20:46 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Fri, 29 Mar 2013 00:46:58 +0000 (20:46 -0400)
plstackapi/core/models.py

index 5f48b13..30285c6 100644 (file)
@@ -167,8 +167,8 @@ class SubNet(PlCoreBase):
                          'name' : self.name,
                          'ip_version': self.ip_version,
                          'cidr': self.cidr,
-                         'allocation_pools': ['start': self.start,
-                                              'end': self.end]
+                         'allocation_pools': {'start': self.start,
+                                              'end': self.end}
                         }
         if not self.id:
             subnets = os_shell.quantum.list_subnets(name=self.name)