Thomas Vachuska
Committed by Gerrit Code Review

FIxing basic device config and demoting some config-related messages to debug.

Change-Id: I38b8479a9e3f367c26b0400de4c7b92719f19dcc
......@@ -58,7 +58,7 @@ public final class BasicDeviceConfig extends BasicElementConfig<DeviceId> {
* @return driver name of null if not set
*/
public String driver() {
return get(DRIVER, subject.toString());
return get(DRIVER, null);
}
/**
......
......@@ -741,7 +741,7 @@ public class DeviceManager
public void event(NetworkConfigEvent event) {
DeviceEvent de = null;
if (event.configClass().equals(BasicDeviceConfig.class)) {
log.info("Detected Device network config event {}", event.type());
log.debug("Detected device network config event {}", event.type());
DeviceId did = (DeviceId) event.subject();
BasicDeviceConfig cfg = networkConfigService.getConfig(did, BasicDeviceConfig.class);
......
......@@ -252,7 +252,7 @@ public class HostManager
if ((event.type() == NetworkConfigEvent.Type.CONFIG_ADDED ||
event.type() == NetworkConfigEvent.Type.CONFIG_UPDATED) &&
event.configClass().equals(BasicHostConfig.class)) {
log.info("Detected Host network config event {}", event.type());
log.debug("Detected host network config event {}", event.type());
kickOutBadHost(((HostId) event.subject()));
}
}
......
......@@ -337,6 +337,8 @@ public class LinkManager
LinkKey lk = (LinkKey) event.subject();
BasicLinkConfig cfg = networkConfigService.getConfig(lk, BasicLinkConfig.class);
log.debug("Detected link network config event {}", event.type());
if (!isAllowed(cfg)) {
log.info("Kicking out links between {} and {}", lk.src(), lk.dst());
removeLink(lk.src(), lk.dst());
......
# Thomas' VirtualBox-based 3 ONOS instances & ONOS mininet box
export ONOS_NIC=192.168.56.*
export OC1="192.168.56.11"
export OC1="192.168.56.14"
export OC2="192.168.56.12"
export OC3="192.168.56.13"
export OCN="192.168.56.7"
export OCN="192.168.56.11"
......