Last active
October 7, 2015 14:46
-
-
Save tfukushima/1ed9cf30f3889464cade to your computer and use it in GitHub Desktop.
A patch for the failure on creating an endpoint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git kuryr/controllers.py kuryr/controllers.py | |
index 927f66d..26ef490 100644 | |
--- kuryr/controllers.py | |
+++ kuryr/controllers.py | |
@@ -422,7 +422,7 @@ def network_driver_create_endpoint(): | |
}) | |
else: | |
neutron_network_id = filtered_networks[0]['id'] | |
- interface = json_data['Interface'] | |
+ interface = json_data['Interface'] or {} | |
response_interface = _create_subnets_and_or_port( | |
interface, neutron_network_id, endpoint_id) | |
diff --git kuryr/schemata/commons.py kuryr/schemata/commons.py | |
index 487b05d..a24319d 100644 | |
--- kuryr/schemata/commons.py | |
+++ kuryr/schemata/commons.py | |
@@ -76,7 +76,7 @@ COMMONS = { | |
u'$ref': u'#/definitions/commons/definitions/cidr' | |
} | |
}, | |
- u'type': u'object', | |
+ u'type': [u'object', u'null'], | |
u'description': u'Interface used in requests against Endpoints.', | |
u'example': { | |
u'AddressIPv6': u'fe80::f816:3eff:fe20:57c3/64', |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment