[L2SWITCH-79] Error while using external xml file (BluePrint) in l2switch stable/boron Created: 10/Aug/16  Updated: 19/Oct/17  Resolved: 11/Aug/16

Status: Resolved
Project: l2switch
Component/s: General
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Sai MarapaReddy Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 6386

 Description   

I followed following steps to initialize l2switch module with reactive mode (i.e., making proactive mode false) with help of an external xml file as specified in blueprint doc at - https://wiki.opendaylight.org/view/Using_Blueprint#Using_the_Datastore

1. checkout l2switch origin/stable/boron branch and build project
2. cd l2switch/distribution/karaf/target/assembly/etc
3. mkdir -p opendaylight/datastore/initial/config/
4. gedit arp-handler-config_arp-handler-config.xml

<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
odl:use-default-for-reference-types="true">

<odl:clustered-app-config id="arpHandlerConfig"
binding-class="org.opendaylight.yang.gen.v1.urn.opendaylight.packet.arp.handler.config.rev140528.ArpHandlerConfig">
<odl:default-config><![CDATA[
<my-config xmlns="urn:opendaylight:packet:arp:handler:config">
<is-proactive-flood-mode>false</is-proactive-flood-mode>
</my-config>
]]></odl:default-config>
</odl:clustered-app-config>

<bean id="arpHandlerProvider"
class="org.opendaylight.l2switch.arphandler.core.ArpHandlerProvider"
init-method="init" destroy-method="close">
<argument ref="arpHandlerConfig" />
</bean>

</blueprint>

5. save file
6. start controller - distribution/karaf/target/assembly/bin/karaf debug
7. karaf log shows following read / parse error - http://pastebin.com/VAwnFaxq
Full karaf log - http://pastebin.com/aYR0jsTg

8. I see the there are no flows installed on switches which implies reactive mode should be applied, but the error says otherwise (parsing the external xml file fails.)



 Comments   
Comment by Sai MarapaReddy [ 11/Aug/16 ]

In the above comment, xml content is wrong.
used xml is

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<arp-handler-config>
<arp-flow-table-id>0</arp-flow-table-id>
<arp-flow-priority>1</arp-flow-priority>
<arp-flow-hard-timeout>0</arp-flow-hard-timeout>
<arp-flow-idle-timeout>0</arp-flow-idle-timeout>
<flood-flow-table-id>0</flood-flow-table-id>
<flood-flow-priority>2</flood-flow-priority>
<flood-flow-hard-timeout>0</flood-flow-hard-timeout>
<flood-flow-idle-timeout>0</flood-flow-idle-timeout>
<flood-flow-installation-delay>2000</flood-flow-installation-delay>
<is-proactive-flood-mode>false</is-proactive-flood-mode>
<is-hybrid-mode>false</is-hybrid-mode>
</arp-handler-config>

Comment by Sai MarapaReddy [ 11/Aug/16 ]

Following file would do the job:-

file name :- arp-handler-config_arp-handler-config.xml

location:- l2switch/distribution/karaf/target/assembly/etc/opendaylight/datastore/initial/config

content:-

<?xml version="1.0" encoding="UTF-8"?>
<arp-handler-config xmlns="urn:opendaylight:packet:arp-handler-config">
<arp-flow-table-id>0</arp-flow-table-id>
<arp-flow-priority>1</arp-flow-priority>
<arp-flow-hard-timeout>0</arp-flow-hard-timeout>
<arp-flow-idle-timeout>0</arp-flow-idle-timeout>
<flood-flow-table-id>0</flood-flow-table-id>
<flood-flow-priority>2</flood-flow-priority>
<flood-flow-hard-timeout>0</flood-flow-hard-timeout>
<flood-flow-idle-timeout>0</flood-flow-idle-timeout>
<flood-flow-installation-delay>2000</flood-flow-installation-delay>
<is-proactive-flood-mode>false</is-proactive-flood-mode>
<is-hybrid-mode>false</is-hybrid-mode>
</arp-handler-config>

Comment by Sai MarapaReddy [ 11/Aug/16 ]

Only value of <is-proactive-flood-mode>false</is-proactive-flood-mode> can be specified since the yang has rest of the default values.

Generated at Wed Feb 07 20:05:51 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.