def destroy(self):
        self._endpoint.unregisterInterface(self)
        self._endpoint = None

        self._namespace.unregisterInterface(self)
        self._namespace = None

        # Endpoint should destroy all connections
        assert len(self._connections) == 0

        super(Interface, self).destroy()
Test pack/unpack for E-VPN Prefix routes
dataset/ETHPy150Open rapyuta/rce/rce-core/rce/core/network.py/Interface.destroy--crossover with--dataset/ETHPy150Open Exa-Networks/exabgp/qa/tests/nlri_tests.py/TestNLRIs.test99_EVPNPrefixCreatePackUnpack