#NEWLINE# def _update_dhcp_port( self , network , port ) : #NEWLINE# #INDENT# for index in range ( len ( network . ports ) ) : #NEWLINE# #INDENT# if ( network . ports [ index ] . id == port . id ) : #NEWLINE# #INDENT# network . ports [ index ] = port #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# network . ports . append ( port )