Bug-3075: BMP initial configuration 97/22197/6
authorMilos Fabian <milfabia@cisco.com>
Tue, 9 Jun 2015 08:50:19 +0000 (10:50 +0200)
committerMilos Fabian <milfabia@cisco.com>
Fri, 3 Jul 2015 11:54:36 +0000 (11:54 +0000)
-initial configuration xml files
-instatiate BMP extension provider, dispatcher and application

Change-Id: I633c45d61dfa463c275c90bd1a68e8755f494c6d
Signed-off-by: Milos Fabian <milfabia@cisco.com>
artifacts/pom.xml
bgp/controller-config/pom.xml
bgp/controller-config/src/main/resources/initial/32-bmp.xml [new file with mode: 0644]
bgp/controller-config/src/main/resources/initial/42-bmp-example.xml [new file with mode: 0644]

index d0dff9b31d94361e825bf2c24a75afd158a1c4f0..6c92fddb63bd0f726c356ee369d444fad0c50d02 100644 (file)
                 <artifactId>bgp-bmp-impl</artifactId>
                 <version>${project.version}</version>
             </dependency>
+            <dependency>
+                <groupId>${project.groupId}</groupId>
+                <artifactId>bgp-controller-config</artifactId>
+                <version>${project.version}</version>
+                <type>xml</type>
+                <classifier>bmp-config</classifier>
+            </dependency>
+            <dependency>
+                <groupId>${project.groupId}</groupId>
+                <artifactId>bgp-controller-config</artifactId>
+                <version>${project.version}</version>
+                <type>xml</type>
+                <classifier>bmp-config-example</classifier>
+            </dependency>
 
             <!-- Feature artifact -->
             <dependency>
index 4bdf052d7305eedb52f91cd56ab8d7094a997b76..514d464dd364674b4b75559f0fa387f61c146b74 100644 (file)
                                     <type>xml</type>
                                     <classifier>config-example</classifier>
                                 </artifact>
+                                <artifact>
+                                    <file>${project.build.directory}/classes/initial/32-bmp.xml</file>
+                                    <type>xml</type>
+                                    <classifier>bmp-config</classifier>
+                                </artifact>
+                                <artifact>
+                                    <file>${project.build.directory}/classes/initial/42-bmp-example.xml</file>
+                                    <type>xml</type>
+                                    <classifier>bmp-config-example</classifier>
+                                </artifact>
                             </artifacts>
                         </configuration>
                     </execution>
diff --git a/bgp/controller-config/src/main/resources/initial/32-bmp.xml b/bgp/controller-config/src/main/resources/initial/32-bmp.xml
new file mode 100644 (file)
index 0000000..5b03369
--- /dev/null
@@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- vi: set et smarttab sw=4 tabstop=4: -->
+<!--
+    Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
+
+    This program and the accompanying materials are made available under the
+    terms of the Eclipse Public License v1.0 which accompanies this distribution,
+    and is available at http://www.eclipse.org/legal/epl-v10.html
+-->
+<snapshot>
+    <required-capabilities>
+        <capability>urn:opendaylight:params:xml:ns:yang:controller:bmp:spi?module=odl-bmp-spi-cfg&amp;revision=2015-05-13</capability>
+        <capability>urn:opendaylight:params:xml:ns:yang:controller:bmp:impl?module=odl-bmp-impl-cfg&amp;revision=2015-05-18</capability>
+        <capability>urn:opendaylight:params:xml:ns:yang:controller:bgp:parser:spi?module=odl-bgp-parser-spi-cfg&amp;revision=2013-11-15</capability>
+        <capability>urn:opendaylight:params:xml:ns:yang:controller:netty?module=netty&amp;revision=2013-11-19</capability>
+    </required-capabilities>
+    <configuration>
+        <data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
+
+            <modules xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
+                <module>
+                    <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bmp:spi">prefix:bmp-extensions-impl</type>
+                    <name>global-bmp-extensions</name>
+                    <extension>
+                        <type xmlns:bmp-spi="urn:opendaylight:params:xml:ns:yang:controller:bmp:spi">bmp-spi:extension</type>
+                        <name>bmp-parser-base</name>
+                    </extension>
+                </module>
+                <module>
+                    <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bmp:impl">prefix:bmp-parser-base</type>
+                    <name>bmp-parser-base</name>
+                    <bgp-extensions>
+                        <type xmlns:bgpspi="urn:opendaylight:params:xml:ns:yang:controller:bgp:parser:spi">bgpspi:extensions</type>
+                        <name>global-bgp-extensions</name>
+                    </bgp-extensions>
+                </module>
+                <module>
+                    <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bmp:impl">prefix:bmp-dispatcher-impl</type>
+                    <name>global-bmp-dispatcher</name>
+                    <bmp-extensions>
+                        <type xmlns:bmp-spi="urn:opendaylight:params:xml:ns:yang:controller:bmp:spi">bmp-spi:extensions</type>
+                        <name>global-bmp-extensions</name>
+                    </bmp-extensions>
+                    <boss-group>
+                        <type xmlns:netty="urn:opendaylight:params:xml:ns:yang:controller:netty">netty:netty-threadgroup</type>
+                        <name>global-boss-group</name>
+                    </boss-group>
+                    <worker-group>
+                        <type xmlns:netty="urn:opendaylight:params:xml:ns:yang:controller:netty">netty:netty-threadgroup</type>
+                        <name>global-worker-group</name>
+                    </worker-group>
+                </module>
+            </modules>
+
+            <services xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
+                <service>
+                    <type xmlns:bmp-spi="urn:opendaylight:params:xml:ns:yang:controller:bmp:spi">bmp-spi:extensions</type>
+                    <instance>
+                        <name>global-bmp-extensions</name>
+                        <provider>/modules/module[type='bmp-extensions-impl'][name='global-bmp-extensions']</provider>
+                    </instance>
+                </service>
+                <service>
+                    <type xmlns:bmp-spi="urn:opendaylight:params:xml:ns:yang:controller:bmp:spi">bmp-spi:extension</type>
+                    <instance>
+                        <name>bmp-parser-base</name>
+                        <provider>/modules/module[type='bmp-parser-base'][name='bmp-parser-base']</provider>
+                    </instance>
+                </service>
+                <service>
+                    <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bmp:impl">prefix:bmp-dispatcher</type>
+                    <instance>
+                        <name>global-bmp-dispatcher</name>
+                        <provider>/modules/module[type='bmp-dispatcher-impl'][name='global-bmp-dispatcher']</provider>
+                    </instance>
+                </service>
+            </services>
+        </data>
+
+    </configuration>
+</snapshot>
diff --git a/bgp/controller-config/src/main/resources/initial/42-bmp-example.xml b/bgp/controller-config/src/main/resources/initial/42-bmp-example.xml
new file mode 100644 (file)
index 0000000..c177711
--- /dev/null
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- vi: set et smarttab sw=4 tabstop=4: -->
+<!--
+      Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ and is available at http://www.eclipse.org/legal/epl-v10.html
+-->
+<snapshot>
+    <required-capabilities>
+        <capability>urn:opendaylight:params:xml:ns:yang:controller:bmp:impl?module=odl-bmp-impl-cfg&amp;revision=2015-05-18</capability>
+        <capability>urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:spi?module=odl-bgp-rib-spi-cfg&amp;revision=2013-11-15</capability>
+        <capability>urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding?module=opendaylight-md-sal-binding&amp;revision=2013-10-28</capability>
+        <capability>urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom?module=opendaylight-md-sal-dom&amp;revision=2013-10-28</capability>
+    </required-capabilities>
+
+    <configuration>
+        <data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
+            <modules xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
+                <module>
+                    <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bmp:impl">prefix:bmp-monitor-impl</type>
+                    <name>example-bmp-monitor</name>
+                    <!--<binding-address>0.0.0.0</binding-address>-->
+                    <binding-port>12345</binding-port>
+                    <extensions>
+                        <type xmlns:ribspi="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:spi">ribspi:extensions</type>
+                        <name>global-rib-extensions</name>
+                    </extensions>
+                    <bmp-dispatcher>
+                        <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bmp:impl">prefix:bmp-dispatcher</type>
+                        <name>global-bmp-dispatcher</name>
+                    </bmp-dispatcher>
+                    <dom-data-provider>
+                        <type xmlns:sal="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">sal:dom-async-data-broker</type>
+                        <name>pingpong-broker</name>
+                    </dom-data-provider>
+                    <codec-tree-factory>
+                        <type xmlns:binding="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">binding:binding-codec-tree-factory</type>
+                        <name>runtime-mapping-singleton</name>
+                    </codec-tree-factory>
+                </module>
+            </modules>
+
+            <services xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
+                <service>
+                    <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bmp:impl">prefix:bmp-monitor</type>
+                    <instance>
+                        <name>example-bmp-monitor</name>
+                        <provider>/config/modules/module[name='bmp-monitor-impl']/instance[name='example-bmp-monitor']</provider>
+                    </instance>
+                </service>
+            </services>
+        </data>
+    </configuration>
+</snapshot>