#NEWLINE# def _process_segment_ers( self , context , es_db , es ) : #NEWLINE# #INDENT# if ( es [ 'external_routes' ] is not attr . ATTR_NOT_SPECIFIED ) : #NEWLINE# #INDENT# es_db . external_routes = [ ] #NEWLINE# for rt in es [ 'external_routes' ] : #NEWLINE# #INDENT# target = ExternalRoute ( external_segment_id = es_db . id , destination = rt [ 'destination' ] , nexthop = ( rt [ 'nexthop' ] or ADDRESS_NOT_SPECIFIED ) ) #NEWLINE# es_db . external_routes . append ( target )