Jump to: navigation, search

OpenDaylight Controller:Config:Examples:Netconf:Example Configuration

Example controller configuration file that contains three target Netconf servers named "controller", "yuma", and "xrvr":

Disclaimer: it is not guaranteed that this configuration file will work on all possible systems or images.

<?xml version="1.0" encoding="UTF-8"?>
<persisted-snapshots>
    <snapshots>
        <snapshot>
            <required-capabilities>
                <capability>urn:opendaylight:params:xml:ns:yang:controller:config?module=config&amp;revision=2013-04-05</capability>
                <capability>urn:opendaylight:params:xml:ns:yang:controller:logback:config?module=config-logging&amp;revision=2013-07-16</capability>
                <capability>urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl?module=opendaylight-sal-binding-broker-impl&amp;revision=2013-10-28</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:connector:netconf?module=odl-sal-netconf-connector-cfg&amp;revision=2013-10-28</capability>
                <capability>urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:impl?module=opendaylight-sal-dom-broker-impl&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>
                <capability>urn:opendaylight:params:xml:ns:yang:controller:netty:eventexecutor?module=netty-event-executor&amp;revision=2013-11-12</capability>
                <capability>urn:opendaylight:params:xml:ns:yang:controller:netty:threadgroup?module=threadgroup&amp;revision=2013-11-07</capability>
                <capability>urn:opendaylight:params:xml:ns:yang:controller:netty:timer?module=netty-timer&amp;revision=2013-11-19</capability>
                <capability>urn:opendaylight:params:xml:ns:yang:controller:netty?module=netty&amp;revision=2013-11-19</capability>
                <capability>urn:opendaylight:params:xml:ns:yang:controller:shutdown:impl?module=shutdown-impl&amp;revision=2013-12-18</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:md:sal:connector:netconf">prefix:sal-netconf-connector</type>
                            <name>xrvr1</name>
                            <port xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">830</port>
                            <username xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">xrvr</username>
                            <worker-thread-group xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">
                                <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:netty">prefix:netty-threadgroup</type>
                                <name>global-worker-group</name>
                            </worker-thread-group>
                            <address xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">192.168.4.11</address>
                            <tcp-only xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">false</tcp-only>
                            <event-executor xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">
                                <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:netty">prefix:netty-event-executor</type>
                                <name>global-event-executor</name>
                            </event-executor>
                            <password xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">welcome</password>
                            <boss-thread-group xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">
                                <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:netty">prefix:netty-threadgroup</type>
                                <name>global-boss-group</name>
                            </boss-thread-group>
                            <dom-registry xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">
                                <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">prefix:dom-broker-osgi-registry</type>
                                <name>dom-broker</name>
                            </dom-registry>
                        </module>
                        <module>
                            <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">prefix:sal-netconf-connector</type>
                            <name>yuma</name>
                            <port xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">830</port>
                            <username xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">testuser</username>
                            <worker-thread-group xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">
                                <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:netty">prefix:netty-threadgroup</type>
                                <name>global-worker-group</name>
                            </worker-thread-group>
                            <address xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">192.168.4.217</address>
                            <tcp-only xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">false</tcp-only>
                            <event-executor xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">
                                <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:netty">prefix:netty-event-executor</type>
                                <name>global-event-executor</name>
                            </event-executor>
                            <password xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">yumapro123</password>
                            <boss-thread-group xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">
                                <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:netty">prefix:netty-threadgroup</type>
                                <name>global-boss-group</name>
                            </boss-thread-group>
                            <dom-registry xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">
                                <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">prefix:dom-broker-osgi-registry</type>
                                <name>dom-broker</name>
                            </dom-registry>
                        </module>
                        <module>
                            <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">prefix:sal-netconf-connector</type>
                            <name>controller</name>
                            <port xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">8383</port>
                            <username xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">foo</username>
                            <worker-thread-group xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">
                                <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:netty">prefix:netty-threadgroup</type>
                                <name>global-worker-group</name>
                            </worker-thread-group>
                            <address xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">192.168.4.1</address>
                            <tcp-only xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">true</tcp-only>
                            <event-executor xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">
                                <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:netty">prefix:netty-event-executor</type>
                                <name>global-event-executor</name>
                            </event-executor>
                            <password xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">bar</password>
                            <boss-thread-group xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">
                                <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:netty">prefix:netty-threadgroup</type>
                                <name>global-boss-group</name>
                            </boss-thread-group>
                            <dom-registry xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf">
                                <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">prefix:dom-broker-osgi-registry</type>
                                <name>dom-broker</name>
                            </dom-registry>
                        </module>
                        <module>
                            <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:logback:config">prefix:logback</type>
                            <name>singleton</name>
                            <console-appenders xmlns="urn:opendaylight:params:xml:ns:yang:controller:logback:config">
                                <threshold-filter>ERROR</threshold-filter>
                                <name>STDOUT</name>
                                <encoder-pattern>%date{&quot;yyyy-MM-dd HH:mm:ss.SSS z&quot;} [%thread] %-5level %logger{36} - %msg%n</encoder-pattern>
                            </console-appenders>
                            <file-appenders xmlns="urn:opendaylight:params:xml:ns:yang:controller:logback:config">
                                <append>true</append>
                                <file-name>logs/audit.log</file-name>
                                <name>audit-file</name>
                                <encoder-pattern>%date{&quot;yyyy-MM-dd HH:mm:ss.SSS z&quot;} %msg %n</encoder-pattern>
                            </file-appenders>
                            <loggers xmlns="urn:opendaylight:params:xml:ns:yang:controller:logback:config">
                                <level>INFO</level>
                                <logger-name>audit</logger-name>
                                <appenders>audit-file</appenders>
                            </loggers>
                            <loggers xmlns="urn:opendaylight:params:xml:ns:yang:controller:logback:config">
                                <level>WARN</level>
                                <logger-name>org.opendaylight.controller.logging.bridge.internal</logger-name>
                            </loggers>
                            <loggers xmlns="urn:opendaylight:params:xml:ns:yang:controller:logback:config">
                                <level>ERROR</level>
                                <logger-name>ROOT</logger-name>
                                <appenders>STDOUT</appenders>
                                <appenders>opendaylight.log</appenders>
                            </loggers>
                            <loggers xmlns="urn:opendaylight:params:xml:ns:yang:controller:logback:config">
                                <level>INFO</level>
                                <logger-name>org.opendaylight</logger-name>
                            </loggers>
                            <loggers xmlns="urn:opendaylight:params:xml:ns:yang:controller:logback:config">
                                <level>WARN</level>
                                <logger-name>io.netty</logger-name>
                            </loggers>
                            <rolling-appenders xmlns="urn:opendaylight:params:xml:ns:yang:controller:logback:config">
                                <append>true</append>
                                <max-file-size>10MB</max-file-size>
                                <file-name>logs/opendaylight.log</file-name>
                                <name>opendaylight.log</name>
                                <file-name-pattern>logs/opendaylight.%d.log.zip</file-name-pattern>
                                <encoder-pattern>%date{&quot;yyyy-MM-dd HH:mm:ss.SSS z&quot;} [%thread] %-5level %logger{35} - %msg%n</encoder-pattern>
                                <clean-history-on-start>false</clean-history-on-start>
                                <max-history>1</max-history>
                                <rolling-policy-type>TimeBasedRollingPolicy</rolling-policy-type>
                            </rolling-appenders>
                        </module>
                        <module>
                            <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:shutdown:impl">prefix:shutdown</type>
                            <name>shutdown</name>
                            <secret xmlns="urn:opendaylight:params:xml:ns:yang:controller:shutdown:impl"/>
                        </module>
                        <module>
                            <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:netty:timer">prefix:netty-hashed-wheel-timer</type>
                            <name>global-timer</name>
                        </module>
                        <module>
                            <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:netty:threadgroup">prefix:netty-threadgroup-fixed</type>
                            <name>global-boss-group</name>
                        </module>
                        <module>
                            <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:netty:threadgroup">prefix:netty-threadgroup-fixed</type>
                            <name>global-worker-group</name>
                        </module>
                        <module>
                            <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:impl">prefix:schema-service-singleton</type>
                            <name>yang-schema-service</name>
                        </module>
                        <module>
                            <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:impl">prefix:hash-map-data-store</type>
                            <name>hash-map-data-store</name>
                        </module>
                        <module>
                            <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:impl">prefix:dom-broker-impl</type>
                            <name>dom-broker</name>
                            <data-store xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:impl">
                                <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">prefix:dom-data-store</type>
                                <name>hash-map-data-store</name>
                            </data-store>
                        </module>
                        <module>
                            <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:netty:eventexecutor">prefix:netty-global-event-executor</type>
                            <name>global-event-executor</name>
                        </module>
                        <module>
                            <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">prefix:binding-broker-impl</type>
                            <name>binding-broker-impl</name>
                            <notification-service xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">
                                <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">prefix:binding-notification-service</type>
                                <name>binding-notification-broker</name>
                            </notification-service>
                            <data-broker xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">
                                <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">prefix:binding-data-broker</type>
                                <name>binding-data-broker</name>
                            </data-broker>
                        </module>
                        <module>
                            <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">prefix:runtime-generated-mapping</type>
                            <name>runtime-mapping-singleton</name>
                        </module>
                        <module>
                            <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">prefix:binding-notification-broker</type>
                            <name>binding-notification-broker</name>
                        </module>
                        <module>
                            <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">prefix:binding-data-broker</type>
                            <name>binding-data-broker</name>
                            <dom-broker xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">
                                <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">prefix:dom-broker-osgi-registry</type>
                                <name>dom-broker</name>
                            </dom-broker>
                            <mapping-service xmlns="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">
                                <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">prefix:binding-dom-mapping-service</type>
                                <name>runtime-mapping-singleton</name>
                            </mapping-service>
                        </module>
                    </modules>
                    <services xmlns="urn:opendaylight:params:xml:ns:yang:controller:config">
                        <service>
                            <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">prefix:schema-service</type>
                            <instance>
                                <name>yang-schema-service</name>
                                <provider>/modules/module[type='schema-service-singleton'][name='yang-schema-service']</provider>
                            </instance>
                        </service>
                        <service>
                            <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">prefix:dom-data-store</type>
                            <instance>
                                <name>hash-map-data-store</name>
                                <provider>/modules/module[type='hash-map-data-store'][name='hash-map-data-store']</provider>
                            </instance>
                        </service>
                        <service>
                            <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom">prefix:dom-broker-osgi-registry</type>
                            <instance>
                                <name>dom-broker</name>
                                <provider>/modules/module[type='dom-broker-impl'][name='dom-broker']</provider>
                            </instance>
                        </service>
                        <service>
                            <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding:impl">prefix:binding-dom-mapping-service</type>
                            <instance>
                                <name>runtime-mapping-singleton</name>
                                <provider>/modules/module[type='runtime-generated-mapping'][name='runtime-mapping-singleton']</provider>
                            </instance>
                        </service>
                        <service>
                            <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:netty">prefix:netty-timer</type>
                            <instance>
                                <name>global-timer</name>
                                <provider>/modules/module[type='netty-hashed-wheel-timer'][name='global-timer']</provider>
                            </instance>
                        </service>
                        <service>
                            <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:netty">prefix:netty-threadgroup</type>
                            <instance>
                                <name>global-boss-group</name>
                                <provider>/modules/module[type='netty-threadgroup-fixed'][name='global-boss-group']</provider>
                            </instance>
                            <instance>
                                <name>global-worker-group</name>
                                <provider>/modules/module[type='netty-threadgroup-fixed'][name='global-worker-group']</provider>
                            </instance>
                        </service>
                        <service>
                            <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:netty">prefix:netty-event-executor</type>
                            <instance>
                                <name>global-event-executor</name>
                                <provider>/modules/module[type='netty-global-event-executor'][name='global-event-executor']</provider>
                            </instance>
                        </service>
                        <service>
                            <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">prefix:binding-data-consumer-broker</type>
                            <instance>
                                <name>ref_binding-data-broker</name>
                                <provider>/modules/module[type='binding-data-broker'][name='binding-data-broker']</provider>
                            </instance>
                        </service>
                        <service>
                            <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">prefix:binding-rpc-registry</type>
                            <instance>
                                <name>binding-rpc-broker</name>
                                <provider>/modules/module[type='binding-broker-impl'][name='binding-broker-impl']</provider>
                            </instance>
                        </service>
                        <service>
                            <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">prefix:binding-notification-service</type>
                            <instance>
                                <name>binding-notification-broker</name>
                                <provider>/modules/module[type='binding-notification-broker'][name='binding-notification-broker']</provider>
                            </instance>
                        </service>
                        <service>
                            <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">prefix:binding-broker-osgi-registry</type>
                            <instance>
                                <name>binding-osgi-broker</name>
                                <provider>/modules/module[type='binding-broker-impl'][name='binding-broker-impl']</provider>
                            </instance>
                        </service>
                        <service>
                            <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">prefix:binding-notification-subscription-service</type>
                            <instance>
                                <name>ref_binding-notification-broker</name>
                                <provider>/modules/module[type='binding-notification-broker'][name='binding-notification-broker']</provider>
                            </instance>
                        </service>
                        <service>
                            <type xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding">prefix:binding-data-broker</type>
                            <instance>
                                <name>binding-data-broker</name>
                                <provider>/modules/module[type='binding-data-broker'][name='binding-data-broker']</provider>
                            </instance>
                        </service>
                    </services>
                </data>
            </configuration>
        </snapshot>
    </snapshots>
</persisted-snapshots>