Update the endpoint for LogicalSubnetworks

This commit is contained in:
Alexandru Coman 2017-02-14 10:32:48 +02:00
parent df0c39c213
commit 29b350852c
No known key found for this signature in database
GPG Key ID: A7B6A9021F704507
1 changed files with 4 additions and 1 deletions

View File

@ -448,8 +448,11 @@ class LogicalSubnetworks(_BaseHNVModel):
if the subnet is not associated with a vlan.
"""
# Note(alexcoman): The endpoint from the Northbound API (NBI) definition
# of the Microsoft Network Controller is not valid. The valid endpoint
# it's `subnets` not `logicalSubnetworks`.
_endpoint = ("/networking/v1/logicalNetworks/{parent_id}"
"/logicalSubnets/{resource_id}")
"/subnets/{resource_id}")
parent_id = model.Field(
name="parent_id", key="parentResourceID",