Statistics loadable / installable in Karaf
[openflowjava.git] / openflowjava-config / src / main / resources / 45-openflowjava-stats.xml
diff --git a/openflowjava-config/src/main/resources/45-openflowjava-stats.xml b/openflowjava-config/src/main/resources/45-openflowjava-stats.xml
new file mode 100644 (file)
index 0000000..1276195
--- /dev/null
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!-- vi: set et smarttab sw=4 tabstop=4: -->\r
+<!--\r
+Copyright (c) 2013 Pantheon Technologies s.r.o. and others. All rights reserved.\r
+\r
+This program and the accompanying materials are made available under the\r
+terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
+and is available at http://www.eclipse.org/legal/epl-v10.html\r
+-->\r
+<snapshot>\r
+  <required-capabilities>\r
+    <!-- openflowjava -->\r
+    <capability>urn:opendaylight:params:xml:ns:yang:openflow:switch:connection:provider:impl?module=openflow-switch-connection-provider-impl&amp;revision=2014-03-28</capability>\r
+    <capability>urn:opendaylight:params:xml:ns:yang:openflow:switch:connection:provider?module=openflow-switch-connection-provider&amp;revision=2014-03-28</capability>\r
+  </required-capabilities>\r
+\r
+  <configuration>\r
+\r
+    <data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">\r
+      <modules xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">\r
+        <module>\r
+            <type xmlns:stats="urn:opendaylight:params:xml:ns:yang:openflow:switch:connection:provider:impl">stats:statistics-collection-service-impl</type>\r
+            <name>statistics-collection-service-impl</name>\r
+            <statistics>\r
+                <statistics-collect>true</statistics-collect>\r
+                <log-report-delay>10000</log-report-delay>\r
+            </statistics>\r
+            <openflow-switch-connection-provider>\r
+                <type xmlns:ofSwitch="urn:opendaylight:params:xml:ns:yang:openflow:switch:connection:provider">ofSwitch:openflow-switch-connection-provider</type>\r
+                <name>openflow-switch-connection-provider-default</name>\r
+            </openflow-switch-connection-provider>\r
+            <openflow-switch-connection-provider>\r
+                <type xmlns:ofSwitch="urn:opendaylight:params:xml:ns:yang:openflow:switch:connection:provider">ofSwitch:openflow-switch-connection-provider</type>\r
+                <name>openflow-switch-connection-provider-legacy</name>\r
+            </openflow-switch-connection-provider>\r
+        </module>\r
+      </modules>\r
+    </data>\r
+\r
+  </configuration>\r
+</snapshot>
\ No newline at end of file