use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.match.rev140714.NxAugMatchNodesNodeTableFlowBuilder in project netvirt by opendaylight.
the class OpenFlow13Utils method addMatchNshNsc2.
public static void addMatchNshNsc2(MatchBuilder match, long nsc) {
NxAugMatchNodesNodeTableFlow am = new NxAugMatchNodesNodeTableFlowBuilder().setNxmNxNshc2(new NxmNxNshc2Builder().setValue(nsc).build()).build();
addExtension(match, NxmNxNshc2Key.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 addMatchNshNsc1.
public static void addMatchNshNsc1(MatchBuilder match, long nsc) {
NxAugMatchNodesNodeTableFlow am = new NxAugMatchNodesNodeTableFlowBuilder().setNxmNxNshc1(new NxmNxNshc1Builder().setValue(nsc).build()).build();
addExtension(match, NxmNxNshc1Key.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 addMatchNsp.
public static void addMatchNsp(MatchBuilder match, long nsp) {
NxAugMatchNodesNodeTableFlow am = new NxAugMatchNodesNodeTableFlowBuilder().setNxmNxNsp(new NxmNxNspBuilder().setValue(nsp).build()).build();
addExtension(match, NxmNxNspKey.class, am);
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.match.rev140714.NxAugMatchNodesNodeTableFlowBuilder in project openflowplugin by opendaylight.
the class CtStateConvertorTest method setUp.
@Before
public void setUp() throws Exception {
final NxmNxCtStateBuilder nxmNxCtStateBuilder = new NxmNxCtStateBuilder().setCtState(1L).setMask(2L);
final NxAugMatchNodesNodeTableFlowBuilder nxAugMatchNotifUpdateFlowStatsBuilder = new NxAugMatchNodesNodeTableFlowBuilder();
nxAugMatchNotifUpdateFlowStatsBuilder.setNxmNxCtState(nxmNxCtStateBuilder.build());
final Augmentation<Extension> extensionAugmentation = nxAugMatchNotifUpdateFlowStatsBuilder.build();
when(extension.getAugmentation(Matchers.<Class<Augmentation<Extension>>>any())).thenReturn(extensionAugmentation);
ctStateConvertor = new CtStateConvertor();
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.match.rev140714.NxAugMatchNodesNodeTableFlowBuilder in project openflowplugin by opendaylight.
the class CtZoneConvertorTest method setUp.
@Before
public void setUp() throws Exception {
final NxmNxCtZoneBuilder nxmNxCtZoneBuilder = new NxmNxCtZoneBuilder().setCtZone(1);
final NxAugMatchNodesNodeTableFlowBuilder nxAugMatchNotifUpdateFlowStatsBuilder = new NxAugMatchNodesNodeTableFlowBuilder();
nxAugMatchNotifUpdateFlowStatsBuilder.setNxmNxCtZone(nxmNxCtZoneBuilder.build());
final Augmentation<Extension> extensionAugmentation = nxAugMatchNotifUpdateFlowStatsBuilder.build();
when(extension.getAugmentation(Matchers.<Class<Augmentation<Extension>>>any())).thenReturn(extensionAugmentation);
ctZoneConvertor = new CtZoneConvertor();
}
Aggregations