<exclude>org.opendaylight.controller.thirdparty:org.openflow.openflowj</exclude>
<exclude>org.opendaylight.controller:clustering.stub</exclude>
<exclude>org.opendaylight.controller:logging.bridge</exclude>
+ <exclude>org.opendaylight.controller:protocol_plugins.stub</exclude>
+ <exclude>org.opendaylight.controller:*.integrationtest</exclude>
</excludes>
<binaries>
<outputDirectory>opendaylight/plugins</outputDirectory>
<include>com.sun.jersey:jersey-core</include>
<include>com.sun.jersey:jersey-json</include>
<include>com.sun.jersey:jersey-server</include>
-
</includes>
<useTransitiveDependencies>false</useTransitiveDependencies>
<outputFileNameMapping>
/**
* Utility class for converting openflow description statistics into SAL
* NodeDescription object
- *
- *
- *
*/
public class DescStatisticsConverter {
private static final Logger log = LoggerFactory
public DescStatisticsConverter(List<OFStatistics> statsList) {
this.hwDesc = null;
- this.ofDesc = (OFDescriptionStatistics) statsList.get(0);
+ this.ofDesc = (statsList == null || statsList.isEmpty())?
+ null : (OFDescriptionStatistics) statsList.get(0);
}
public NodeDescription getHwDescription() {
<!-- Sonar properties using jacoco to retrieve integration test results -->
<sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
<sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
- <sonar.jacoco.Reportpath>target/jacobo.exec</sonar.jacoco.Reportpath>
+ <sonar.jacoco.Reportpath>target/jacoco.exec</sonar.jacoco.Reportpath>
<sonar.jacoco.itReportPath>target/jacoco-it.exec</sonar.jacoco.itReportPath>
<sonar.language>java</sonar.language>
</properties>
--- /dev/null
+<configuration scan="true">
+
+ <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+ <encoder>
+ <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
+ </pattern>
+ </encoder>
+ </appender>
+
+ <root level="error">
+ <appender-ref ref="STDOUT" />
+ </root>
+</configuration>
IForwardingStaticRouting staticRouting = (IForwardingStaticRouting) ServiceHelper
.getInstance(IForwardingStaticRouting.class, containerName,
this);
+ if (staticRouting == null) {
+ return null;
+ }
List<Map<String, String>> staticRoutes = new ArrayList<Map<String, String>>();
ConcurrentMap<String, StaticRouteConfig> routeConfigs = staticRouting
.getStaticRouteConfigs();
var body = [];
var tr = {};
var entry = [];
-
+ entry.push(data['flow']['ingressPort']);
entry.push(data['flow']['etherType']);
entry.push(data['flow']['vlanId']);
entry.push(data['flow']['vlanPriority']);
return $table;
},
description : function(body) {
- var header = ['Ethernet Type', 'VLAN ID', 'VLAN Priority', 'Source MAC', 'Dest MAC', 'Source IP', 'Dest IP', 'TOS', 'Source Port', 'Dest Port', 'Protocol', 'Cookie'];
+ var header = ['Input Port', 'Ethernet Type', 'VLAN ID', 'VLAN Priority', 'Source MAC', 'Dest MAC', 'Source IP', 'Dest IP', 'TOS', 'Source Port', 'Dest Port', 'Protocol', 'Cookie'];
var $thead = one.lib.dashlet.table.header(header);
var attributes = ['table-striped', 'table-bordered', 'table-condensed'];
var $table = one.lib.dashlet.table.table(attributes);