예제 #1
0
    async def remove(self, persisted_data: bool = True) -> None:
        await self.cleanup()

        self.debug('removing port')
        _ports_by_id.pop(self._id, None)

        if persisted_data:
            self.debug('removing persisted data')
            persist.remove(self.PERSIST_COLLECTION, filt={'id': self._id})

        self.trigger_remove()
예제 #2
0
def reset() -> None:
    logger.debug('clearing persisted data')
    persist.remove('webhooks')
예제 #3
0
def reset() -> None:
    logger.debug('clearing device persisted data')
    persist.remove('device')
예제 #4
0
def reset() -> None:
    logger.debug('clearing virtual ports persisted data')
    persist.remove('vports')
예제 #5
0
def remove(port_id: str) -> None:
    _vport_settings.pop(port_id, None)
    logger.debug('removing virtual port settings for %s', port_id)
    persist.remove('vports', filt={'id': port_id})
예제 #6
0
def reset() -> None:
    logger.debug('clearing persisted data')
    persist.remove('reverse')
예제 #7
0
def reset() -> None:
    logger.debug('clearing slaves persisted data')
    persist.remove('slaves')
    persist.remove('slave_ports')
예제 #8
0
def reset() -> None:
    logger.debug('clearing ports persisted data')
    persist.remove(BasePort.PERSIST_COLLECTION)