<s> def get_network_parameters ( osc ) : <EOL> params = { } <EOL> tenant_networks = osc . neutron ( ) . list_networks ( ) <EOL> for tenant_network in tenant_networks [ '<STR_LIT>' ] : <EOL> if tenant_network [ '<STR_LIT>' ] : <EOL> params [ '<STR_LIT>' ] = tenant_network [ '<STR_LIT:id>' ] <EOL> else : <EOL> params [ '<STR_LIT>' ] = tenant_network [ '<STR_LIT:id>' ] <EOL> params [ '<STR_LIT>' ] = get_ipv4_subnet_id ( osc , tenant_network ) <EOL> return params <EOL> def get_ipv4_subnet_id ( osc , tenant_network ) : <EOL> for tenant_sub_id in tenant_network [ '<STR_LIT>' ] : <EOL> subnet_data = osc . neutron ( ) . show_subnet ( tenant_sub_id ) <EOL> if subnet_data [ '<STR_LIT>' ] [ '<STR_LIT>' ] == <NUM_LIT:4> : <EOL> return tenant_sub_id </s>
