#NEWLINE# def _get_subnet_context( self , gateway_ip , cidr , network ) : #NEWLINE# #INDENT# subnet = { #NEWLINE# #INDENT# 'tenant_id' : network . current [ 'tenant_id' ] , #NEWLINE# 'network_id' : network . current [ 'id' ] , #NEWLINE# 'id' : ( '[%s/%s]' % ( gateway_ip , cidr ) ) , #NEWLINE# 'name' : ( '[%s/%s]' % ( gateway_ip , cidr ) ) , #NEWLINE# 'gateway_ip' : gateway_ip , #NEWLINE# 'cidr' : cidr , #NEWLINE# #UNINDENT# } #NEWLINE# return FakeSubnetContext ( subnet , network )