Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

Revision history [back]

click to hide/show revision 1
initial version

how to commit the config into device?

As we known, there are two data stores in ODL:1.config and 2. operational. We can use RESTCONF operations get/put/post to request config and get method to retrieve operational. I get the devices configuration by RESTCONF :(http://localhost:8181/restconf/operational/opendaylight-inventory:nodes)

My questions is: I get the config , then modify it, and finally I put the config back. how to commit the config into device?
It seems that the file have not changed when I get the operational file.

how to commit the config into device?

As we known, there are two data stores in ODL:1.config and 2. operational. We can use RESTCONF operations get/put/post to request config and get method to retrieve operational. I get the devices configuration by RESTCONF :(http://localhost:8181/restconf/operational/opendaylight-inventory:nodes)

My questions is: I get the config , then modify it, and finally I put the config back. how to commit the config into device?
It seems that the file have not changed when I get the operational file.file. Is it possible commit the "config" to "operational" using netconf protocol?

how to commit the config into device?

As we known, there are two data stores in ODL:1.config and 2. operational. We can use RESTCONF operations get/put/post to request config and get method to retrieve operational. I get the devices configuration by RESTCONF :(http://localhost:8181/restconf/operational/opendaylight-inventory:nodes)

My questions is: I get the config "config" , then modify it, and finally I put the config "config" back. how to commit the config "config" into device?
It seems that the file have not changed when I get the operational "operational" file. Is it possible commit the modified "config" to "operational" using netconf protocol?

how to commit the config into device?

As we known, there are two data stores in ODL:1.config and 2. operational. We can use RESTCONF operations get/put/post to request config "config" data and get method to retrieve operational. "operational" data. I get the devices configuration by RESTCONF :(http://localhost:8181/restconf/operational/opendaylight-inventory:nodes)

My questions is: I get the "config" , then modify it, and finally I put the "config" back. how to commit the "config" into device?
It seems that the file have not changed when I get the "operational" file. Is it possible commit the modified "config" to "operational" using netconf protocol?

how to commit the config into device?

As we known, there are two data stores in ODL:1.config and 2. operational. We can use RESTCONF operations get/put/post to request "config" data and get method to retrieve "operational" data. I get the devices configuration by RESTCONF :(http://localhost:8181/restconf/operational/opendaylight-inventory:nodes):(http://localhost:8181/restconf/config/opendaylight-inventory:nodes)

My questions is: I get the "config" , then modify it, and finally I put the "config" back. back. example: get http://localhost:8181/restconf/config/opendaylight-inventory:nodes/ <id>openflow:1:1</id> <state xmlns="urn:opendaylight:flow:inventory"> <live>false</live> <blocked>false</blocked> <link-down>true</link-down> </state>

I modify link-down =>false then put http://localhost:8181/restconf/config/opendaylight-inventory:nodes/ and get again: <state xmlns="urn:opendaylight:flow:inventory"> <live>false</live> <blocked>false</blocked> <link-down>false</link-down> </state>

But I get http://localhost:8181/restconf/operational/opendaylight-inventory:nodes/ it shows=> <id>openflow:1:1</id> <state xmlns="urn:opendaylight:flow:inventory"> <live>false</live> <blocked>false</blocked> <link-down>true</link-down> </state>

how to commit the "config" into device?
It seems that the file have not changed when I get the "operational" file. Is it possible commit the modified "config" to "operational" using netconf protocol?

how to commit the config into device?

As we known, there are two data stores in ODL:1.config and 2. operational. We can use RESTCONF operations get/put/post to request "config" data and get method to retrieve "operational" data. I get the devices configuration by RESTCONF :(http://localhost:8181/restconf/config/opendaylight-inventory:nodes)

My questions is: I get the "config" , then modify it, and finally I put the "config" back. example: get http://localhost:8181/restconf/config/opendaylight-inventory:nodes/ http://localhost:8181/restconf/config/opendaylight-inventory:nodes/


<id>openflow:1:1</id> <state xmlns="urn:opendaylight:flow:inventory"> <live>false</live> <blocked>false</blocked> <link-down>true</link-down> </state>


I modify link-down =>false then put http://localhost:8181/restconf/config/opendaylight-inventory:nodes/ and get again: again:


  <state xmlns="urn:opendaylight:flow:inventory">
             <live>false</live>
             <blocked>false</blocked>
                <link-down>false</link-down>
            </state>

<link-down>**false**</link-down> </state>

But I get http://localhost:8181/restconf/operational/opendaylight-inventory:nodes/ it shows=> shows=>


<id>openflow:1:1</id> <state xmlns="urn:opendaylight:flow:inventory"> <live>false</live> <blocked>false</blocked> <link-down>true</link-down> </state>


how to commit the "config" into device?
It seems that the file have not changed when I get the "operational" file. Is it possible commit the modified "config" to "operational" using netconf protocol?

how to commit the config into device?

As we known, there are two data stores in ODL:1.config and 2. operational. We can use RESTCONF operations get/put/post to request "config" data and get method to retrieve "operational" data. I get the devices configuration by RESTCONF :(http://localhost:8181/restconf/config/opendaylight-inventory:nodes)

My questions is: I get the "config" , then modify it, and finally I put the "config" back. example: get http://localhost:8181/restconf/config/opendaylight-inventory:nodes/


<id>openflow:1:1</id>

        <state xmlns="urn:opendaylight:flow:inventory">
             <live>false</live>
             <blocked>false</blocked>
                <link-down>true</link-down>
            </state>

<link-down>true</link-down> </state>

I modify link-down =>false then put http://localhost:8181/restconf/config/opendaylight-inventory:nodes/ and get again:


  <state xmlns="urn:opendaylight:flow:inventory">
            <live>false</live>
            <blocked>false</blocked>
            <link-down>**false**</link-down>
<link-down>false</link-down>
        </state>

But I get http://localhost:8181/restconf/operational/opendaylight-inventory:nodes/ it shows=>


<id>openflow:1:1</id>

        <state xmlns="urn:opendaylight:flow:inventory">
             <live>false</live>
             <blocked>false</blocked>
                <link-down>true</link-down>
            </state>

<link-down>true</link-down> </state>

how to commit the "config" into device?
It seems that the file have not changed when I get the "operational" file. Is it possible commit the modified "config" to "operational" using netconf protocol?

how to commit the config into device?

As we known, there are two data stores in ODL:1.config and 2. operational. We can use RESTCONF operations get/put/post to request "config" data and get method to retrieve "operational" data. I get the devices configuration by RESTCONF :(http://localhost:8181/restconf/config/opendaylight-inventory:nodes)

My questions is: I get the "config" , then modify it, and finally I put the "config" back. example: get http://localhost:8181/restconf/config/opendaylight-inventory:nodes/


        <state xmlns="urn:opendaylight:flow:inventory">
            <live>false</live>
            <blocked>false</blocked>
            <link-down>true</link-down>
        </state>

I modify link-down =>false then put http://localhost:8181/restconf/config/opendaylight-inventory:nodes/ and for verify I get again:


  <state xmlns="urn:opendaylight:flow:inventory">
            <live>false</live>
            <blocked>false</blocked>
            <link-down>false</link-down>
        </state>

But I get http://localhost:8181/restconf/operational/opendaylight-inventory:nodes/ it shows=>


        <state xmlns="urn:opendaylight:flow:inventory">
            <live>false</live>
            <blocked>false</blocked>
            <link-down>true</link-down>
        </state>

how to commit the "config" into device?
It seems that the file have not changed when I get the "operational" file. Is it possible commit the modified "config" to "operational" using netconf protocol?