#NEWLINE# def _create_subnet( self ) : #NEWLINE# #INDENT# subnet = { #NEWLINE# #INDENT# 'tenant_id' : self . tenant_id , #NEWLINE# 'id' : self . subnet_id , #NEWLINE# 'name' : 'test_sub' , #NEWLINE# 'network_id' : self . network_id , #NEWLINE# 'ip_version' : 4 , #NEWLINE# 'cidr' : '10.10.10.0/29' , #NEWLINE# 'enable_dhcp' : False , #NEWLINE# 'gateway_ip' : '10.10.10.1' , #NEWLINE# 'shared' : False , #NEWLINE# 'allocation_pools' : constants . ATTR_NOT_SPECIFIED , #NEWLINE# 'dns_nameservers' : constants . ATTR_NOT_SPECIFIED , #NEWLINE# 'host_routes' : constants . ATTR_NOT_SPECIFIED , #NEWLINE# #UNINDENT# } #NEWLINE# return self . plugin . create_subnet ( subnet . cxt , { #NEWLINE# #INDENT# 'subnet' : subnet , #NEWLINE# #UNINDENT# } )