Hello, my name is Hitoshi Kaneko.
I belong to NTT Laboratories.

We have tried to set machine-NIC through ODL/Netconf  as a part of evaluation 
of OpenDaylight , and I have a question.

Our state is below .

(Target machine is Juniper vMX, ODL version is 0.5.3-Boron-SR3 )
(1)     "Getting NIC-IP-address through ODL/Netconf" was normal ended 
(2)     "Setting NIC-IP-address through SSH/Netconf" was normal ended 
But, 
(3)     "Setting NIC-IP-address through ODL/Netconf" was error ended



I.E. ,
① Setting NIC-IP-address through SSH/Netconf (Normal Ended)
-----------------------------------------------------------------------------
kaneko@kaneko-PowerEdge-T130-3:~$ ssh [email protected] -p 830 -s netconf
Password:
<!-- No zombies were killed during the creation of this user interface -->
<!-- user kaneko, class j-superuser -->
<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <capabilities>
    <capability>urn:ietf:params:netconf:base:1.0</capability>
    <capability>urn:ietf:params:netconf:capability:candidate:1.0</capability>
    
<capability>urn:ietf:params:netconf:capability:confirmed-commit:1.0</capability>
    <capability>urn:ietf:params:netconf:capability:validate:1.0</capability>
    
<capability>urn:ietf:params:netconf:capability:url:1.0?scheme=http,ftp,file</capability>
    <capability>urn:ietf:params:xml:ns:netconf:base:1.0</capability>
    
<capability>urn:ietf:params:xml:ns:netconf:capability:candidate:1.0</capability>
    
<capability>urn:ietf:params:xml:ns:netconf:capability:confirmed-commit:1.0</capability>
    
<capability>urn:ietf:params:xml:ns:netconf:capability:validate:1.0</capability>
    
<capability>urn:ietf:params:xml:ns:netconf:capability:url:1.0?protocol=http,ftp,file</capability>
    <capability>urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring</capability>
    <capability>http://xml.juniper.net/netconf/junos/1.0</capability>
    <capability>http://xml.juniper.net/dmi/system/1.0</capability>
  </capabilities>
  <session-id>7658</session-id>
</hello>
]]>]]>
<rpc>
  <edit-config>
    <target>
      <candidate/>
    </target>
    <config>
      <configuration>
        <interfaces>
          <interface>
            <name>ge-0/0/2</name>
            <unit>
              <name>0</name>
              <family>
                <inet>
                  <address>
                    <name>192.168.30.2/24</name>
                  </address>
                </inet>
              </family>
            </unit>
          </interface>
        </interfaces>
      </configuration>
    </config>
  </edit-config>
</rpc>
<rpc>
  <commit-configuration/>
</rpc>

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" 
xmlns:junos="http://xml.juniper.net/junos/17.2R1/junos";>
<ok/>
</rpc-reply>
]]>]]>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" 
xmlns:junos="http://xml.juniper.net/junos/17.2R1/junos";>
<ok/>
</rpc-reply>
]]>]]>


② Getting NIC-IP-address through ODL/Netconf  (Normal Ended)
-------------------------------------------------------
kaneko@kaneko-PowerEdge-T130-3:~$ curl -v -k -u admin:admin -H "Content-Type: 
application/xml" -X GET
http://localhost:8181/restconf/config/network-topology:network-topology/topology/topology-netconf/node/controller-config/yang-ext:mo
unt/configuration:configuration/interfaces/interface/ge-0%2F0%2F2 | jq .
Note: Unnecessary use of -X or --request, GET is already inferred.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* 
  Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 8181 (#0)
* Server auth using Basic with user 'admin'
> GET
> /restconf/config/network-topology:network-topology/topology/topology-n
> etconf/node/controller-config/yang-ext:mount/configuration:configurati
> on/interfaces/interface/ge-0%2F0%2F2 HTTP/1.1
> Host: localhost:8181
> Authorization: Basic YWRtaW46YWRtaW4=
> User-Agent: curl/7.47.0
> Accept: */*
> Content-Type: application/xml
> 
< HTTP/1.1 200 OK
< Set-Cookie: JSESSIONID=bopetp3134kfw42wyctko7m3;Path=/restconf
< Expires: Thu, 01 Jan 1970 00:00:00 GMT < Set-Cookie: rememberMe=deleteMe; 
Path=/restconf; Max-Age=0; Expires=Tue, 15-Oct-2019
15:09:36 GMT < Content-Type: application/yang.data+json < Vary: 
Accept-Encoding, User-Agent < Transfer-Encoding: chunked < Server:
Jetty(8.1.19.v20160209) < { [121 bytes data]
100   116    0   116    0     0   6273      0 --:--:-- --:--:-- --:--:--  6444
* Connection #0 to host localhost left intact {
  "interface": [
    {
      "name": "ge-0/0/2",
      "unit": [
        {
          "name": "0",
          "family": {
            "inet": {
              "address": [
                {
                  "name": "192.168.30.2/24"
                }
              ]
            }
          }
        }
      ]
    }
  ]
}
kaneko@kaneko-PowerEdge-T130-3:~$ 


After deleting NIC-IP-address through console of vMX , ③ Setting NIC-IP-address 
through ODL/Netconf (Error Ended)
------------------------------------------------------------------------------------
kaneko@kaneko-PowerEdge-T130-3:~$ curl -v -k -u admin:admin -H "Content-Type: 
application/xml" -X POST
http://localhost:8181/restconf/config/network-topology:network-topology/topology/topology-netconf/node/controller-config/yang-ext:mo
unt/configuration:configuration/interfaces -d '
> <interface>
>   <name>ge-0/0/2</name>
>   <unit>
>     <name>0</name>
>     <family>
>       <inet>
>         <address>
>           <name>192.168.30.2/24</name>
>         </address>
>       </inet>
>     </family>
>   </unit>
> </interface>' | jq .
Note: Unnecessary use of -X or --request, POST is already inferred.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* 
  Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 8181 (#0)
* Server auth using Basic with user 'admin'
> POST
/restconf/config/network-topology:network-topology/topology/topology-netconf/node/controller-config/yang-ext:mount/configuration:con
figuration/interfaces HTTP/1.1
> Host: localhost:8181
> Authorization: Basic YWRtaW46YWRtaW4=
> User-Agent: curl/7.47.0
> Accept: */*
> Content-Type: application/xml
> Content-Length: 217
> 
} [217 bytes data]
* upload completely sent off: 217 out of 217 bytes < HTTP/1.1 404 Not Found < 
Set-Cookie:
JSESSIONID=sgo57eq2yexb1ee3st3u1od2w;Path=/restconf
< Expires: Thu, 01 Jan 1970 00:00:00 GMT < Set-Cookie: rememberMe=deleteMe; 
Path=/restconf; Max-Age=0; Expires=Tue, 15-Oct-2019
17:12:59 GMT < Content-Type: application/json < Transfer-Encoding: chunked < 
Server: Jetty(8.1.19.v20160209) < { [132 bytes data]
100   338    0   121  100   217  21183  37990 --:--:-- --:--:-- --:--:-- 43400
* Connection #0 to host localhost left intact {
  "errors": {
    "error": [
      {
        "error-type": "protocol",
        "error-tag": "data-missing",
        "error-message": "Mount point does not exist."
      }
    ]
  }
}
kaneko@kaneko-PowerEdge-T130-3:~$
------------------------------------------------------------------------------------


Question:
Have feature of setting NIC-IP-address through ODL/Netconf  been supported by 
ODL ?
Case “yes” at above,
Will you teach me how to set NIC-IP-address or URL where it has been described .

Thank you .
Regards,
Hitoshi Kaneko
E-mail: Hitoshi Kaneko <[email protected]>



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8453): https://lists.opendaylight.org/g/Discuss/message/8453
Mute This Topic: https://lists.opendaylight.org/mt/35011869/21656
Group Owner: [email protected]
Unsubscribe: https://lists.opendaylight.org/g/Discuss/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to