我正在使用 opendaylight / Carbon 并尝试使用 Genius 包装器。我想根据传入数据包的 MAC 地址匹配在交换机中安装流。我要安装的指令是“GOTO”指令。我进行如下操作:
FlowEntityBuilder flowEntityBuilder = new FlowEntityBuilder();
flowEntityBuilder.setTableId(tableId)
.setDpnId(dpnId)
.setFlowId(FlowUtils.createFlowId().toString())
.setFlowName("gotoTable1");
MatchInfo matchInfo = new MatchEthernetSource(macAddress);
InstructionInfo instructionInfo = new InstructionGotoTable(tableId);
FlowEntity flowEntity = flowEntityBuilder.addInstructionInfoList(instructionInfo).addMatchInfoList(matchInfo).build();
mdsalApiManager.installFlow(dpnId,flowEntity);
Mu 的意图是创建一个流实体并使用 IMDSalApiManager.installFlow 方法安装它。
这是我看到的例外:
java.lang.IllegalArgumentException: Node (urn:opendaylight:flow:inventory?revision=2013-08-19)ethernet-source is missing mandatory descendant /(urn:opendaylight:flow:inventory?revision=2013-08-19)address
任何调试此问题的帮助将不胜感激。