Add blueprint XML for bgp-linkstate 26/40326/4
authorTom Pantelis <tpanteli@brocade.com>
Tue, 14 Jun 2016 21:24:44 +0000 (17:24 -0400)
committerTom Pantelis <tpanteli@brocade.com>
Thu, 23 Jun 2016 00:17:57 +0000 (20:17 -0400)
Change-Id: Ie0e6476f4457cbf146e17cbbab6759a163fad9d9
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
bgp/linkstate/src/main/resources/org/opendaylight/blueprint/bgp-linkstate.xml [new file with mode: 0644]
bgp/linkstate/src/main/yang/bgp-linkstate-app-config.yang [new file with mode: 0644]

diff --git a/bgp/linkstate/src/main/resources/org/opendaylight/blueprint/bgp-linkstate.xml b/bgp/linkstate/src/main/resources/org/opendaylight/blueprint/bgp-linkstate.xml
new file mode 100644 (file)
index 0000000..eabe9d1
--- /dev/null
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
+           xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0">
+
+  <reference id="rsvpExtensionContext" interface="org.opendaylight.protocol.rsvp.parser.spi.RSVPExtensionConsumerContext"/>
+
+  <odl:clustered-app-config id="linkStateAppConfig"
+      binding-class="org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.bgp.linkstate.app.config.rev160614.BgpLinkstateAppConfig"/>
+
+  <bean id="BGPActivator" class="org.opendaylight.protocol.bgp.linkstate.BGPActivator">
+    <argument>
+      <bean factory-ref="linkStateAppConfig" factory-method="isIanaLinkstateAttributeType"/>
+    </argument>
+    <argument>
+      <bean factory-ref="rsvpExtensionContext" factory-method="getRsvpRegistry"/>
+    </argument>
+  </bean>
+
+  <bean id="RIBActivator" class="org.opendaylight.protocol.bgp.linkstate.RIBActivator"/>
+
+  <service ref="BGPActivator" interface="org.opendaylight.protocol.bgp.parser.spi.BGPExtensionProviderActivator"
+          odl:type="org.opendaylight.protocol.bgp.linkstate.BGPActivator"/>
+
+  <service ref="RIBActivator" interface="org.opendaylight.protocol.bgp.rib.spi.RIBExtensionProviderActivator"
+          odl:type="org.opendaylight.protocol.bgp.linkstate.RIBActivator"/>
+</blueprint>
\ No newline at end of file
diff --git a/bgp/linkstate/src/main/yang/bgp-linkstate-app-config.yang b/bgp/linkstate/src/main/yang/bgp-linkstate-app-config.yang
new file mode 100644 (file)
index 0000000..b8bd9a1
--- /dev/null
@@ -0,0 +1,22 @@
+module bgp-linkstate-app-config {
+    yang-version 1;
+    namespace "urn:opendaylight:params:xml:ns:yang:controller:bgp:linkstate-app-config";
+    prefix "bgp-linkstate-app-config";
+
+    description
+      "Configuration for the BGP linkstate application.";
+
+    revision "2016-06-14" {
+        description
+            "Initial revision.";
+    }
+
+    container bgp-linkstate-app-config {
+        leaf iana-linkstate-attribute-type {
+            description "If true (default) linkstate attribute type (=29) allocated by IANA is used,
+                         else type (=99) is used for parsing/serialization";
+            type boolean;
+            default true;
+        }
+    }
+}
\ No newline at end of file