use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.match.rev140714.NxAugMatchNodesNodeTableFlowBuilder in project openflowplugin by opendaylight.
the class TunIdConvertorTest method setUp.
@Before
public void setUp() throws Exception {
final NxmNxTunIdBuilder nxmNxTunIdBuilder = new NxmNxTunIdBuilder().setValue(BigInteger.ONE);
final NxAugMatchNodesNodeTableFlowBuilder nxAugMatchNotifUpdateFlowStatsBuilder = new NxAugMatchNodesNodeTableFlowBuilder();
nxAugMatchNotifUpdateFlowStatsBuilder.setNxmNxTunId(nxmNxTunIdBuilder.build());
final Augmentation<Extension> extensionAugmentation = nxAugMatchNotifUpdateFlowStatsBuilder.build();
when(extension.getAugmentation(Matchers.<Class<Augmentation<Extension>>>any())).thenReturn(extensionAugmentation);
tunIdConvertor = new TunIdConvertor();
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.match.rev140714.NxAugMatchNodesNodeTableFlowBuilder in project openflowplugin by opendaylight.
the class EthDstConvertorTest method setUp.
@Before
public void setUp() throws Exception {
final NxmOfEthDstBuilder nxmOfEthDstBuilder = new NxmOfEthDstBuilder().setMacAddress(MAC_ADDRESS);
final NxAugMatchNodesNodeTableFlowBuilder nxAugMatchNotifUpdateFlowStatsBuilder = new NxAugMatchNodesNodeTableFlowBuilder();
nxAugMatchNotifUpdateFlowStatsBuilder.setNxmOfEthDst(nxmOfEthDstBuilder.build());
final Augmentation<Extension> extensionAugmentation = nxAugMatchNotifUpdateFlowStatsBuilder.build();
when(extension.getAugmentation(Matchers.<Class<Augmentation<Extension>>>any())).thenReturn(extensionAugmentation);
ethDstConvertor = new EthDstConvertor();
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.match.rev140714.NxAugMatchNodesNodeTableFlowBuilder in project netvirt by opendaylight.
the class OpenFlow13Utils method addMatchTunId.
public static void addMatchTunId(MatchBuilder match, long value) {
NxAugMatchNodesNodeTableFlow am = new NxAugMatchNodesNodeTableFlowBuilder().setNxmNxTunId(new NxmNxTunIdBuilder().setValue(BigInteger.valueOf(value)).build()).build();
addExtension(match, NxmNxTunIdKey.class, am);
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.match.rev140714.NxAugMatchNodesNodeTableFlowBuilder in project netvirt by opendaylight.
the class OpenFlow13Utils method getNspMatch.
public static MatchBuilder getNspMatch(long nsp) {
MatchBuilder mb = new MatchBuilder();
NxAugMatchNodesNodeTableFlow am = new NxAugMatchNodesNodeTableFlowBuilder().setNxmNxNsp(new NxmNxNspBuilder().setValue(nsp).build()).build();
addExtension(mb, NxmNxNspKey.class, am);
return mb;
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.match.rev140714.NxAugMatchNodesNodeTableFlowBuilder in project netvirt by opendaylight.
the class OpenFlow13Utils method addMatchEthNsh.
public static void addMatchEthNsh(MatchBuilder match) {
NxAugMatchNodesNodeTableFlow am = new NxAugMatchNodesNodeTableFlowBuilder().setNxmNxEncapEthType(new NxmNxEncapEthTypeBuilder().setValue(ETHERTYPE_NSH).build()).build();
addExtension(match, NxmNxEncapEthTypeKey.class, am);
}
Aggregations