#NEWLINE# def _get_diff_ips( self , orig , port ) : #NEWLINE# #INDENT# orig_ips = set ( [ ip [ 'ip_address' ] for ip in orig [ 'fixed_ips' ] ] ) #NEWLINE# port_ips = set ( [ ip [ 'ip_address' ] for ip in port [ 'fixed_ips' ] ] ) #NEWLINE# orig_chg_ips = orig_ips . difference ( port_ips ) #NEWLINE# port_chg_ips = port_ips . difference ( orig_ips ) #NEWLINE# if ( orig_chg_ips or orig ) : #NEWLINE# #INDENT# return ( orig_chg_ips , port_chg_ips )