package org.opendaylight.controller.forwardingrulesmanager;
import java.io.Serializable;
-import java.lang.reflect.Field;
import java.net.Inet6Address;
import java.net.InetAddress;
import java.util.ArrayList;
/**
* Configuration Java Object which represents a flow configuration information
- * for Forwarding Rrules Manager.
+ * for Forwarding Rules Manager.
*/
@XmlRootElement
public boolean isInternalFlow() {
// Controller generated static flows have name starting with "**"
- if (this.name == null)
- return false;
- return this.name.startsWith("**");
+ return (this.name != null && this.name.startsWith("**"));
}
public String getName() {
this.actions = actions;
}
- public static List<String> getFieldsNames() {
- List<String> fieldList = new ArrayList<String>();
- for (Field fld : FlowConfig.class.getDeclaredFields()) {
- fieldList.add(fld.getName());
- }
- // Remove 4 static fields + 2 internal field
- for (int i = 0; i < 6; i++)
- fieldList.remove(0);
-
- return fieldList;
- }
-
public boolean isPortGroupEnabled() {
return (portGroup != null);
}
}
}
- log.debug("Get Nexthop address = " + address + " Type = "
- + setNHType.toString());
+ log.debug("Get Nexthop address = {} Type = {}", address, setNHType.toString());
if (setNHType == SetNextHopType.RESOLVE_L2RW) {
try {
return InetAddress.getByName(address);
} catch (Exception e) {
log
- .debug("Exception during nextHopAddress resolution : "
- + e.getMessage());
+ .debug("Exception during nextHopAddress resolution : ",
+ e);
}
}
}