use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.match.rev140714.nxm.nx.nshc._2.grouping.NxmNxNshc2Builder in project openflowplugin by opendaylight.
the class Nshc2ConvertorTest method setUp.
@Before
public void setUp() throws Exception {
final NxmNxNshc2Builder nxmNxNshc2Builder = new NxmNxNshc2Builder().setValue(1L);
final NxAugMatchNodesNodeTableFlowBuilder nxAugMatchNotifUpdateFlowStatsBuilder = new NxAugMatchNodesNodeTableFlowBuilder();
nxAugMatchNotifUpdateFlowStatsBuilder.setNxmNxNshc2(nxmNxNshc2Builder.build());
final Augmentation<Extension> extensionAugmentation = nxAugMatchNotifUpdateFlowStatsBuilder.build();
when(extension.getAugmentation(Matchers.<Class<Augmentation<Extension>>>any())).thenReturn(extensionAugmentation);
nshc2Convertor = new Nshc2Convertor();
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.match.rev140714.nxm.nx.nshc._2.grouping.NxmNxNshc2Builder 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);
}
Aggregations