<s> from neutron . api . v2 import attributes <EOL> from neutron . db import common_db_mixin <EOL> from neutron . extensions import availability_zone as az_ext <EOL> from neutron . extensions import network_availability_zone as net_az <EOL> class NetworkAvailabilityZoneMixin ( net_az . NetworkAvailabilityZonePluginBase ) : <EOL> """<STR_LIT>""" <EOL> def _extend_availability_zone ( self , net_res , net_db ) : <EOL> net_res [ az_ext . AZ_HINTS ] = az_ext . convert_az_string_to_list ( <EOL> net_db [ az_ext . AZ_HINTS ] ) <EOL> net_res [ az_ext . AVAILABILITY_ZONES ] = ( <EOL> self . get_network_availability_zones ( net_db ) ) <EOL> common_db_mixin . CommonDbMixin . register_dict_extend_funcs ( <EOL> attributes . NETWORKS , [ '<STR_LIT>' ] ) </s>
