Ejemplo n.º 1
0
def setup_l2adjacent_test(request, bigip, makelogdir):
    loghandler = setup_neutronless_test(request, bigip, makelogdir)
    LOG.info('Test setup: %s' % request.node.name)

    try:
        remove_elements(
            bigip, SEG_INDEPENDENT_LB_URIS | SEG_DEPENDENT_LB_URIS
            | SEG_LISTENER_URIS | AGENT_INIT_URIS)
    finally:
        LOG.info('removing pre-existing config')

    return loghandler
def setup_l2adjacent_test(request, bigip, makelogdir):
    loghandler = setup_neutronless_test(request, bigip, makelogdir, vlan=True)
    LOG.info('Test setup: %s' % request.node.name)

    try:
        remove_elements(bigip,
                        SEG_INDEPENDENT_LB_URIS |
                        SEG_DEPENDENT_LB_URIS |
                        SEG_LISTENER_URIS |
                        AGENT_INIT_URIS,
                        vlan=True)
    finally:
        LOG.info('removing pre-existing config')

    return loghandler
def setup_l2adjacent_test(request, bigip, makelogdir):
    loghandler = setup_neutronless_test(request, bigip, makelogdir, vlan=True)
    LOG.info('Test setup: %s' % request.node.name)

    # FIXME: This is a work around for GH issue #487
    # https://github.com/F5Networks/f5-openstack-agent/issues/487
    def kill_icontrol():
        time.sleep(2)

    request.addfinalizer(kill_icontrol)

    try:
        remove_elements(bigip,
                        SEG_INDEPENDENT_LB_URIS | SEG_DEPENDENT_LB_URIS
                        | SEG_LISTENER_URIS | AGENT_INIT_URIS,
                        vlan=True)
    finally:
        LOG.info('removing pre-existing config')

    return loghandler
def setup_l2adjacent_test(request, bigip, makelogdir):
    loghandler = setup_neutronless_test(request, bigip, makelogdir, vlan=True)
    LOG.info('Test setup: %s' % request.node.name)

    # FIXME: This is a work around for GH issue #487
    # https://github.com/F5Networks/f5-openstack-agent/issues/487
    def kill_icontrol():
        time.sleep(2)
    request.addfinalizer(kill_icontrol)

    try:
        remove_elements(bigip,
                        SEG_INDEPENDENT_LB_URIS |
                        SEG_DEPENDENT_LB_URIS |
                        SEG_LISTENER_URIS |
                        AGENT_INIT_URIS,
                        vlan=True)
    finally:
        LOG.info('removing pre-existing config')

    return loghandler