

def _test_linuxbridge_cleanup(self, bridge_exists, callback):
    br_fixture = self.useFixture(tools.SafeCleanupFixture(net_helpers.LinuxBridgeFixture(prefix=lb_agent.BRIDGE_NAME_PREFIX))).fixture
    config = self(br_fixture)
    config.update({
        'VXLAN': {
            'enable_vxlan': 'False',
        },
    })
    temp_dir = self.useFixture(fixtures.TempDir()).path
    conf = self.useFixture(config_fixtures.ConfigFileFixture(base_filename='neutron.conf', config=config, temp_dir=temp_dir))
    cmd = ('neutron-linuxbridge-cleanup', '--config-file', conf.filename)
    ip_wrapper = ip_lib.IPWrapper(br_fixture.namespace)
    ip_wrapper.netns.execute(cmd)
    self.assertEqual(bridge_exists, ip_lib.device_exists(br_fixture.bridge.name, br_fixture.namespace))

dataset/ETHPy150Open openstack/neutron/neutron/tests/functional/cmd/test_linuxbridge_cleanup.py LinuxbridgeCleanupTest._test_linuxbridge_cleanup/VarMisuse@41/62 `callback`->`self`