Hello all,
I'm trying to use code from openflowplugin-extension-nicira to send to the
switch an instruction to load a value into a register.
I added
<groupId>org.opendaylight.openflowplugin</groupId>
<artifactId>openflowplugin-extension-nicira</artifactId>
<version>${openflowplugin.version}</version>
</dependency>
<dependency>
<groupId>org.opendaylight.openflowplugin</groupId>
<artifactId>openflowjava-extension-nicira</artifactId>
<version>${openflowplugin.version}</version>
</dependency>
In my pom.xml and am using this code:
int start = 0;
int end = 16;
long load = 1L;
int newActionKey = 0;
Dst dst = new DstBuilder().setDstChoice(new
DstNxRegCaseBuilder().setNxReg(NxmNxReg0.class).build())
.setStart(start)
.setEnd(end)
.build();
NxRegLoadBuilder nxRegLoadBuilder = new
NxRegLoadBuilder().setDst(dst).setValue(BigInteger.valueOf(load));
org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.Action
regLoadAction = new ActionBuilder()
.setAction(new
NxActionRegLoadNodesNodeTableFlowApplyActionsCaseBuilder().setNxRegLoad(
nxRegLoadBuilder.build()).build())
.setKey(new ActionKey(newActionKey))
.build();;
List<org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.Action>
actionList = Lists.newArrayList();
actionList.add(regLoadAction);
Everything compiles properly but when I start Karaf I have the following
exception:
2017-09-14 14:27:41,620 | ERROR | config-pusher | ConfigPusherImpl
| 102 - org.opendaylight.controller.config-persister-impl -
0.4.4.Beryllium-SR4 | Unable to push configuration due to missing yang models.
Yang models that are missing, but required by the configuration:
[urn:opendaylight:params:xml:ns:yang:spgwu:impl?module=spgwu-impl&revision=2016-06-09].
For each mentioned model check: 1. that the mentioned yang model
namespace/name/revision is identical to those in the yang model itself 2. the
yang file is present in the system 3. the bundle with that yang file is present
in the system and active 4. the yang parser did not fail while attempting to
parse that model
2017-09-14 14:27:41,623 | ERROR | config-pusher | ConfigPusherImpl
| 102 - org.opendaylight.controller.config-persister-impl -
0.4.4.Beryllium-SR4 | Failed to apply configuration snapshot:
bcomapps-spgwu.xml(odl-bcom-spgwu-ui,odl-bcom-spgwu-ui)
java.lang.IllegalStateException: Unable to push configuration due to missing
yang models. Required yang models that are missing:
[urn:opendaylight:params:xml:ns:yang:spgwu:impl?module=spgwu-impl&revision=2016-06-09]
at
org.opendaylight.controller.config.persist.impl.ConfigPusherImpl.waitForCapabilities(ConfigPusherImpl.java:207)[102:org.opendaylight.controller.config-persister-impl:0.4.4.Beryllium-SR4]
at
org.opendaylight.controller.config.persist.impl.ConfigPusherImpl.pushConfigWithConflictingVersionRetries(ConfigPusherImpl.java:159)[102:org.opendaylight.controller.config-persister-impl:0.4.4.Beryllium-SR4]
at
org.opendaylight.controller.config.persist.impl.ConfigPusherImpl.internalPushConfigs(ConfigPusherImpl.java:129)[102:org.opendaylight.controller.config-persister-impl:0.4.4.Beryllium-SR4]
at
org.opendaylight.controller.config.persist.impl.ConfigPusherImpl.processSingle(ConfigPusherImpl.java:83)[102:org.opendaylight.controller.config-persister-impl:0.4.4.Beryllium-SR4]
at
org.opendaylight.controller.config.persist.impl.ConfigPusherImpl.process(ConfigPusherImpl.java:74)[102:org.opendaylight.controller.config-persister-impl:0.4.4.Beryllium-SR4]
at
org.opendaylight.controller.config.persist.impl.osgi.ConfigPersisterActivator$2.run(ConfigPersisterActivator.java:131)[102:org.opendaylight.controller.config-persister-impl:0.4.4.Beryllium-SR4]
at java.lang.Thread.run(Thread.java:748)[:1.8.0_131]
Caused by:
org.opendaylight.controller.config.persist.impl.ConfigPusherImpl$NotEnoughCapabilitiesException:
Not enough capabilities for
bcomapps-spgwu.xml(odl-bcom-spgwu-ui,odl-bcom-spgwu-ui). Expected but not
found:
[urn:opendaylight:params:xml:ns:yang:spgwu:impl?module=spgwu-impl&revision=2016-06-09]
at
org.opendaylight.controller.config.persist.impl.ConfigPusherImpl.waitForCapabilities(ConfigPusherImpl.java:189)[102:org.opendaylight.controller.config-persister-impl:0.4.4.Beryllium-SR4]
... 6 more
However, the file spgwu-impl.yang is present and when I remove the code above,
the exception does not appear and the code works fine.
I have this issue with both Beryllium and Carbon releases.
Any suggestions would be appreciated as I really don't understand what is
happening here.
Thanks in advance
Thomas Ferrandiz
[http://signature.b-com.com/logo-bleu.gif]<http://www.b-com.com/>
1219 AVENUE CHAMPS BLANCS
35510 CESSON-SÉVIGNÉ (FR)
_______________________________________________
openflowplugin-dev mailing list
[email protected]
https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev