fields = {
'type': Parameter(str, "Network type", max = 20),
}
def validate_type(self, name):
fields = {
'type': Parameter(str, "Network type", max = 20),
}
def validate_type(self, name):
-
- # Make sure network type does not alredy exist
- conflicts = NetworkTypes(self.api, [name])
+
+ # Make sure network type does not alredy exist
+ conflicts = NetworkTypes(self.api, [name])
sql = "SELECT %s FROM network_types" % \
", ".join(NetworkType.fields)
sql = "SELECT %s FROM network_types" % \
", ".join(NetworkType.fields)