def add_port_profile_to_delete_table(self, profile_name, device_id):
        """Adds a port profile to the delete table."""
        if not self.has_port_profile_to_delete(profile_name, device_id):
            port_profile = ucsm_model.PortProfileDelete(
                profile_id=profile_name, device_id=device_id)
            with self.session.begin(subtransactions=True):
                self.session.add(port_profile)
            return port_profile
def add_port_profile_to_delete_table ( self , profile_name , device_id ) : if not self . has_port_profile_to_delete ( profile_name , device_id ) : port_profile = ucsm_model . PortProfileDelete ( profile_id = profile_name , device_id = device_id ) with self . session . begin ( subtransactions = True ) : self . session . add ( port_profile ) return port_profile
Adds a port profile to the delete table.