Ask Your Question
0

Link status doesn't change while I shut down the corresponding interfaces

asked 2016-08-05 05:11:21 -0700

deliou gravatar image

updated 2016-08-07 01:58:11 -0700

I would like to shut down some interfaces for a while, so I expected from ODL to modify the corresponding link status from FORWARDING to DISCARDING. Moreover, ODL would have to modify the Spanning Tree and wherever there exists the Configuration Status "PORT-DOWN", the Link Status would have to be updated to DISCARDING.

Here is an instance, after the mininet command ovs-ofctl mod-port ss1 ss1-eth2 down (in operational http://odl:8181/restconf/operational/opendaylight-inventory:nodes/node/openflow:1/node-connector/openflow:1:2 ):

<node-connector xmlns="urn:opendaylight:inventory">
<id>openflow:1:2</id>
<port-number xmlns="urn:opendaylight:flow:inventory">2</port-number>
.....
<hardware-address xmlns="urn:opendaylight:flow:inventory">3E:7D:45:06:DC:ED</hardware-address>
<current-feature xmlns="urn:opendaylight:flow:inventory">copper ten-gb-fd</current-feature>
<configuration xmlns="urn:opendaylight:flow:inventory">PORT-DOWN</configuration>
<supported xmlns="urn:opendaylight:flow:inventory"/>
<advertised-features xmlns="urn:opendaylight:flow:inventory"/>
<peer-features xmlns="urn:opendaylight:flow:inventory"/>
<name xmlns="urn:opendaylight:flow:inventory">ss1-eth2</name>
<status xmlns="urn:opendaylight:l2switch:loopremover">forwarding</status>
....
</node-connector>

I tried via curl command to modify the status to DISCARDING with :

curl --noproxy odl -u user:pass -H 'Content-Type: application/yang.data+xml' -X PUT -d '<node-connector xmlns="urn:opendaylight:inventory"> <id>openflow:1:2</id> <status xmlns="urn:opendaylight:l2switch:loopremover">discarding</status> </node-connector>' 'http://odl:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:1/node-connector/openflow:1:2'

The proper information were created in config but the operational - that concerns me- remained the same. I also tried the same command to operational (http://odl:8181/restconf/operational/opendaylight-inventory:nodes/node/openflow:1/node-connector/openflow:1:2) but it didn't change.

Is there something that I can do? Maybe a command which will trigger these changes and ODL automatically will modify the Link Status whenever a Configuration event (PORT-DOWN) occurs.

Thank you!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-05-28 09:50:34 -0700

fellas gravatar image

Hello you could solve your problem because I have the same problem

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2016-08-05 05:11:21 -0700

Seen: 64 times

Last updated: May 28