import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.google.common.collect.ObjectArrays;
-
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.ArrayList;
@Override
public Option[] getLoggingOptions(final boolean extras) {
Option[] options = new Option[] {
- /*editConfigurationFilePut(SouthboundITConstants.ORG_OPS4J_PAX_LOGGING_CFG,
- "log4j.logger.org.opendaylight.ovsdb",
- LogLevelOption.LogLevel.DEBUG.name()),*/
editConfigurationFilePut(SouthboundITConstants.ORG_OPS4J_PAX_LOGGING_CFG,
+ "log4j.logger.org.opendaylight.ovsdb",
+ LogLevelOption.LogLevel.DEBUG.name()),
+ /*editConfigurationFilePut(SouthboundITConstants.ORG_OPS4J_PAX_LOGGING_CFG,
"log4j.logger.org.opendaylight.ovsdb.southbound-impl",
- LogLevelOption.LogLevel.DEBUG.name())
+ LogLevelOption.LogLevel.DEBUG.name())*/
};
if (extras == true) {
"log4j.logger.org.opendaylight.ovsdb",
LogLevelOption.LogLevel.DEBUG.name()),
editConfigurationFilePut(SouthboundITConstants.ORG_OPS4J_PAX_LOGGING_CFG,
+ "log4j.logger.org.opendaylight.ovsdb.lib",
+ LogLevelOption.LogLevel.TRACE.name()),
+ /*editConfigurationFilePut(SouthboundITConstants.ORG_OPS4J_PAX_LOGGING_CFG,
"log4j.logger.org.opendaylight.ovsdb.openstack.net-virt",
- LogLevelOption.LogLevel.DEBUG.name())
+ LogLevelOption.LogLevel.DEBUG.name())*/
};
options = ObjectArrays.concat(options, extraOptions, Option.class);
}
return options;
}
-
public boolean setExtras() {
Properties props = new Properties(System.getProperties());
boolean extras = props.getProperty(SouthboundITConstants.SERVER_EXTRAS,
}
}
}
-}
\ No newline at end of file
+
+ @Test
+ public void testNetVirt() throws InterruptedException {
+ ConnectionInfo connectionInfo = getConnectionInfo(addressStr, portStr);
+ connectOvsdbNode(connectionInfo);
+
+ LOG.info(">>>>> waiting");
+ Thread.sleep(10000);
+ LOG.info(">>>>> back");
+ Assert.assertTrue(disconnectOvsdbNode(connectionInfo));
+ }
+}