use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.match.rev140714.nxm.nx.nsp.grouping.NxmNxNspBuilder in project openflowplugin by opendaylight.
the class NspConvertorTest method setUp.
@Before
public void setUp() throws Exception {
final NxmNxNspBuilder nxmNxNspBuilder = new NxmNxNspBuilder().setValue(Long.valueOf(1L));
final NxAugMatchNodesNodeTableFlowBuilder nxAugMatchNotifUpdateFlowStatsBuilder = new NxAugMatchNodesNodeTableFlowBuilder();
nxAugMatchNotifUpdateFlowStatsBuilder.setNxmNxNsp(nxmNxNspBuilder.build());
final Augmentation<Extension> extensionAugmentation = nxAugMatchNotifUpdateFlowStatsBuilder.build();
when(extension.getAugmentation(Matchers.<Class<Augmentation<Extension>>>any())).thenReturn(extensionAugmentation);
nspConvertor = new NspConvertor();
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.match.rev140714.nxm.nx.nsp.grouping.NxmNxNspBuilder 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.nxm.nx.nsp.grouping.NxmNxNspBuilder 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);
}
Aggregations