Example #1
0
def setup():
    # disable ipv6 to avoid mac learning with automatically sent
    # ipv6 packets e.g. autoconf upon "ip link set up"
    subprocess.call(
        ['sysctl -w net.ipv6.conf.default.disable_ipv6=1 >/dev/null'],
        shell=True)

    check_all_midolman_hosts(True)

    clear_physical_topology()
    clear_virtual_topology_for_tenants(
            tenant_name_prefix=TEST_TENANT_NAME_PREFIX)
Example #2
0
def setup():
    # disable ipv6 to avoid mac learning with automatically sent
    # ipv6 packets e.g. autoconf upon "ip link set up"
    subprocess.call(
        ['sysctl -w net.ipv6.conf.default.disable_ipv6=1 >/dev/null'],
        shell=True)

    check_all_midolman_hosts(True)

    clear_physical_topology()
    clear_virtual_topology_for_tenants(
        tenant_name_prefix=TEST_TENANT_NAME_PREFIX)
    def clear(self):
        """
        This method deletes MidoNet virtual topology without
        looking at the objects we created. After that, we delete
        all the objects we created referencing MidoNet ones.
        """
        clear_virtual_topology_for_tenants(
            tenant_name_prefix=TEST_TENANT_NAME_PREFIX)

        del self._resource_references[:]
        self._routers.clear()
        self._bridges.clear()
        self._bridge_router.clear()
        self._chains.clear()
        self._port_groups.clear()
        del self._links[:]
    def clear(self):
        """
        This method deletes MidoNet virtual topology without
        looking at the objects we created. After that, we delete
        all the objects we created referencing MidoNet ones.
        """
        clear_virtual_topology_for_tenants(
            tenant_name_prefix=TEST_TENANT_NAME_PREFIX)

        del self._resource_references[:]
        self._routers.clear()
        self._bridges.clear()
        self._bridge_router.clear()
        self._chains.clear()
        self._port_groups.clear()
        del self._links[:]