#NEWLINE# def _validate_eui64_applicable( self , subnet ) : #NEWLINE# #INDENT# if ipv6_utils . is_auto_address_subnet ( subnet ) : #NEWLINE# #INDENT# if ( netaddr . IPNetwork ( subnet [ 'cidr' ] ) . prefixlen != 64 ) : #NEWLINE# #INDENT# msg = _ ( 'Invalid CIDR %s for IPv6 address mode. OpenStack uses the EUI-64 address format, which requires the prefix to be /64.' ) #NEWLINE# raise exc . InvalidInput ( error_message = ( msg % subnet [ 'cidr' ] ) )