setcontrollers.xml 1.62 KB
<!--
  ~ Copyright 2016-present Open Networking Laboratory
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~     http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <edit-config>
    <target><running/></target>
    <default-operation>merge</default-operation>
    <config>
      <volt-ne xmlns="http://fujitsu.com/ns/volt/1.1">
        <volt-ofconfig>
          <of-controllers>
            <of-controller>
              <ofconfig-id>1</ofconfig-id>
              <controller-info>
                <id>1</id>
                <ip-address>172.10.10.55</ip-address>
                <port>2222</port>
                <protocol>tcp</protocol>
              </controller-info>
            </of-controller>
            <of-controller>
              <ofconfig-id>3</ofconfig-id>
              <controller-info>
                <id>3</id>
                <ip-address>172.20.33.11</ip-address>
                <port>6633</port>
                <protocol>tcp</protocol>
              </controller-info>
            </of-controller>
          </of-controllers>
        </volt-ofconfig>
      </volt-ne>
    </config>
  </edit-config>
</rpc>