use of org.opendaylight.yangtools.yang.binding.Augmentation 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();
}
use of org.opendaylight.yangtools.yang.binding.Augmentation in project openflowplugin by opendaylight.
the class EthSrcConvertorTest method setUp.
@Before
public void setUp() throws Exception {
final NxmOfEthSrcBuilder nxmOfEthSrcBuilder = new NxmOfEthSrcBuilder().setMacAddress(MAC_ADDRESS);
final NxAugMatchNodesNodeTableFlowBuilder nxAugMatchNotifUpdateFlowStatsBuilder = new NxAugMatchNodesNodeTableFlowBuilder();
nxAugMatchNotifUpdateFlowStatsBuilder.setNxmOfEthSrc(nxmOfEthSrcBuilder.build());
final Augmentation<Extension> extensionAugmentation = nxAugMatchNotifUpdateFlowStatsBuilder.build();
when(extension.getAugmentation(Matchers.<Class<Augmentation<Extension>>>any())).thenReturn(extensionAugmentation);
ethSrcConvertor = new EthSrcConvertor();
}
use of org.opendaylight.yangtools.yang.binding.Augmentation 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();
}
use of org.opendaylight.yangtools.yang.binding.Augmentation in project openflowplugin by opendaylight.
the class TunIPv4DstConvertorTest method setUp.
@Before
public void setUp() throws Exception {
final NxmNxTunIpv4DstBuilder nxmNxTunIpv4DstBuilder = new NxmNxTunIpv4DstBuilder().setIpv4Address(IPV4_ADDRESS);
final NxAugMatchNodesNodeTableFlowBuilder nxAugMatchNotifUpdateFlowStatsBuilder = new NxAugMatchNodesNodeTableFlowBuilder();
nxAugMatchNotifUpdateFlowStatsBuilder.setNxmNxTunIpv4Dst(nxmNxTunIpv4DstBuilder.build());
final Augmentation<Extension> extensionAugmentation = nxAugMatchNotifUpdateFlowStatsBuilder.build();
when(extension.getAugmentation(Matchers.<Class<Augmentation<Extension>>>any())).thenReturn(extensionAugmentation);
tunIPv4DstConvertor = new TunIPv4DstConvertor();
}
use of org.opendaylight.yangtools.yang.binding.Augmentation in project openflowplugin by opendaylight.
the class Nshc4ConvertorTest method setUp.
@Before
public void setUp() throws Exception {
final NxmNxNshc4Builder nxmNxNshc4Builder = new NxmNxNshc4Builder().setValue(1L);
final NxAugMatchNodesNodeTableFlowBuilder nxAugMatchNotifUpdateFlowStatsBuilder = new NxAugMatchNodesNodeTableFlowBuilder();
nxAugMatchNotifUpdateFlowStatsBuilder.setNxmNxNshc4(nxmNxNshc4Builder.build());
final Augmentation<Extension> extensionAugmentation = nxAugMatchNotifUpdateFlowStatsBuilder.build();
when(extension.getAugmentation(Matchers.<Class<Augmentation<Extension>>>any())).thenReturn(extensionAugmentation);
nshc4Convertor = new Nshc4Convertor();
}
Aggregations