1 <?xml version="1.0" encoding="UTF-8"?>
3 Copyright (c) 2017 Inocybe Technologies Inc. and others. All rights reserved.
5 This program and the accompanying materials are made available under the
6 terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 and is available at http://www.eclipse.org/legal/epl-v10.html
9 <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
10 xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
11 xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
12 xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.4.0"
13 odl:use-default-for-reference-types="true">
15 <!-- JSONRestconfService -->
17 <bean id="jsonRestconfService"
18 class="org.opendaylight.netconf.sal.restconf.impl.JSONRestconfServiceImpl"
19 destroy-method="close"/>
21 <service ref="jsonRestconfService"
22 interface="org.opendaylight.netconf.sal.restconf.api.JSONRestconfService" />
24 <!-- Restconf providers -->
26 <cm:property-placeholder persistent-id="org.opendaylight.restconf" update-strategy="reload">
27 <cm:default-properties>
28 <cm:property name="websocket-port" value="8185"/>
29 </cm:default-properties>
30 </cm:property-placeholder>
33 This cfg file defines the type of the DOMDataBroker service to use. 'default' indicates to use
34 the default DOMDataBroker provided by MD-SAL. This setting is useful for providing a custom
35 DOMDataBroker implementation that does, e.g., validation or additional security checking on
36 top of the default DOMDataBroker.
38 <cm:property-placeholder persistent-id="org.opendaylight.restconf.databroker"
39 placeholder-prefix = "@{" placeholder-suffix = "}" update-strategy="reload">
40 <cm:default-properties>
41 <cm:property name="databroker-service-type" value="default"/>
42 </cm:default-properties>
43 </cm:property-placeholder>
45 <!-- We need the AAAService available even though we don't use it -->
46 <reference interface="org.opendaylight.aaa.api.AAAService"/>
48 <reference id="schemaService" interface="org.opendaylight.controller.sal.core.api.model.SchemaService"/>
49 <reference id="domRpcService" interface="org.opendaylight.controller.md.sal.dom.api.DOMRpcService"/>
50 <reference id="domMountPointService" interface="org.opendaylight.controller.md.sal.dom.api.DOMMountPointService"/>
51 <reference id="domNotificationService" interface="org.opendaylight.controller.md.sal.dom.api.DOMNotificationService"/>
52 <reference id="domDataBroker" interface="org.opendaylight.controller.md.sal.dom.api.DOMDataBroker"
53 ext:filter="(type=@{databroker-service-type})"/>
55 <bean id="webSocketPort" class="org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber">
56 <argument value="${websocket-port}"/>
59 <bean id="restconfProviderDraft02" class="org.opendaylight.netconf.sal.restconf.impl.RestconfProviderImpl"
60 init-method="start" destroy-method="close">
61 <argument ref="domDataBroker"/>
62 <argument ref="schemaService"/>
63 <argument ref="domRpcService"/>
64 <argument ref="domNotificationService"/>
65 <argument ref="domMountPointService"/>
66 <argument ref="webSocketPort"/>
69 <bean id="restconfProviderDraft18" class="org.opendaylight.restconf.RestConnectorProvider"
70 init-method="start" destroy-method="close">
71 <argument ref="domDataBroker"/>
72 <argument ref="schemaService"/>
73 <argument ref="domRpcService"/>
74 <argument ref="domNotificationService"/>
75 <argument ref="domMountPointService"/>
78 <service ref="restconfProviderDraft18"
79 interface="org.opendaylight.netconf.sal.rest.api.RestConnector" />