use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.match.rev140714.nxm.nx.nsi.grouping.NxmNxNsiBuilder in project netvirt by opendaylight.
the class OpenFlow13Utils method addMatchNsi.
public static void addMatchNsi(MatchBuilder match, short nsi) {
NxAugMatchNodesNodeTableFlow am = new NxAugMatchNodesNodeTableFlowBuilder().setNxmNxNsi(new NxmNxNsiBuilder().setNsi(nsi).build()).build();
addExtension(match, NxmNxNsiKey.class, am);
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.match.rev140714.nxm.nx.nsi.grouping.NxmNxNsiBuilder in project openflowplugin by opendaylight.
the class NsiConvertorTest method setUp.
@Before
public void setUp() throws Exception {
final NxmNxNsiBuilder nxmNxNsiBuilder = new NxmNxNsiBuilder().setNsi((short) 1);
final NxAugMatchNodesNodeTableFlowBuilder nxAugMatchNotifUpdateFlowStatsBuilder = new NxAugMatchNodesNodeTableFlowBuilder();
nxAugMatchNotifUpdateFlowStatsBuilder.setNxmNxNsi(nxmNxNsiBuilder.build());
final Augmentation<Extension> extensionAugmentation = nxAugMatchNotifUpdateFlowStatsBuilder.build();
when(extension.getAugmentation(Matchers.<Class<Augmentation<Extension>>>any())).thenReturn(extensionAugmentation);
nsiConvertor = new NsiConvertor();
}
Aggregations