#NEWLINE# def _check_host_routes( self , host_routes ) : #NEWLINE# #INDENT# for r in host_routes . split ( '\n' ) : #NEWLINE# #INDENT# r = r . strip ( ) #NEWLINE# if ( not r ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# route = r . split ( ',' ) #NEWLINE# if ( len ( route ) != 2 ) : #NEWLINE# #INDENT# msg = ( _ ( 'Host Routes format error: Destination CIDR and nexthop must be specified (value=%s)' ) % r ) #NEWLINE# raise forms . ValidationError ( msg ) #NEWLINE# #UNINDENT# self . _convert_ip_network ( route [ 0 ] , 'host_routes' ) #NEWLINE# self . _convert_ip_address ( host_routes [ 1 ] , 'host_routes' )