Metadata addresses

Define well-known metadata addresses in neutron-lib so they are easily
shared between various implementations like dhcp-agent and ovn.

Change-Id: Ic382feb7fca036b3c7aae5f21399b7639520a92b
Partial-Bug: #1460177
Related-Change: https://review.opendev.org/738247
This commit is contained in:
Bence Romsics 2020-06-26 15:30:06 +02:00
parent 1361d8cfa4
commit 60eab578fc
1 changed files with 17 additions and 1 deletions

View File

@ -606,7 +606,23 @@ ACCEPT_RA_WITH_FORWARDING = 2
PRIVATE_CIDR_RANGE = '169.254.0.0/16' PRIVATE_CIDR_RANGE = '169.254.0.0/16'
DVR_FIP_LL_CIDR = '169.254.64.0/18' DVR_FIP_LL_CIDR = '169.254.64.0/18'
L3_HA_NET_CIDR = '169.254.192.0/18' L3_HA_NET_CIDR = '169.254.192.0/18'
METADATA_CIDR = '169.254.169.254/32'
# Well-known addresses of the metadata service.
# When binding to an address, used with a port.
METADATA_V4_IP = '169.254.169.254'
# When configuring an address on an interface.
# When adding a route.
METADATA_V4_CIDR = '169.254.169.254/32'
# When checking if a metadata subnet is present.
METADATA_V4_SUBNET = '169.254.0.0/16'
METADATA_V6_IP = 'fe80::a9fe:a9fe'
METADATA_V6_CIDR = 'fe80::a9fe:a9fe/64'
METADATA_PORT = 80
# For backwards compatibility, prefer METADATA_V4_CIDR instead.
METADATA_CIDR = METADATA_V4_CIDR
# The only defined IpamAllocation status at this stage is 'ALLOCATED'. # The only defined IpamAllocation status at this stage is 'ALLOCATED'.
# More states will be available in the future - e.g.: RECYCLABLE # More states will be available in the future - e.g.: RECYCLABLE