Implements basic segmented networking by providing a new "segment_id"
column. This column is used for lookups when assigning IP addresses out
of "shared" networks. If one attempts to create a port on a shared
network without providing the segment_id, ambiguity exceptions are
raised. Additionally, extends subnets to allow a segment_id to be passed
when the subnet is created.
This commit is contained in:
Matt Dietz
2013-12-08 15:31:40 +00:00
parent a21af5f589
commit 3d87fff9b7
10 changed files with 176 additions and 34 deletions

View File

@@ -19,6 +19,7 @@ from neutron.api import extensions
EXTENDED_ATTRIBUTES_2_0 = {
'subnets': {
"segment_id": {"allow_post": True, "default": False},
"enable_dhcp": {'allow_post': False, 'allow_put': False,
'default': False,
'is_visible': True},