#NEWLINE# def _update_distributed_attr( self , context , router_id , router_db , data ) : #NEWLINE# #INDENT# 'Update the model to support the dvr case of a router.' #NEWLINE# if data . get ( 'distributed' ) : #NEWLINE# #INDENT# old_owner = const . DEVICE_OWNER_ROUTER_INTF #NEWLINE# new_owner = const . DEVICE_OWNER_DVR_INTERFACE #NEWLINE# for rp in router_db . attached_ports . filter_by ( port_type = old_owner ) : #NEWLINE# #INDENT# rp . port_type = new_owner #NEWLINE# rp . port . device_owner = new_owner