use of org.onosproject.openstackvtap.codec.OpenstackVtapNetworkCodec in project onos by opennetworkinglab.
the class OpenstackVtapNetworkWebResourceTest method setUpTest.
/**
* Sets up the global values for all the tests.
*/
@Before
public void setUpTest() {
final CodecManager codecService = new CodecManager();
codecService.activate();
codecService.registerCodec(OpenstackVtapNetwork.class, new OpenstackVtapNetworkCodec());
ServiceDirectory testDirectory = new TestServiceDirectory().add(OpenstackVtapService.class, mockVtapService).add(CodecService.class, codecService);
setServiceDirectory(testDirectory);
vtapNetwork = DefaultOpenstackVtapNetwork.builder().mode(OpenstackVtapNetwork.Mode.VXLAN).networkId(1).serverIp(IpAddress.valueOf("10.10.10.1")).build();
}
use of org.onosproject.openstackvtap.codec.OpenstackVtapNetworkCodec in project onos by opennetworkinglab.
the class OpenstackVtapNetworkCodecRegister method activate.
@Activate
protected void activate() {
codecService.registerCodec(OpenstackVtapNetwork.class, new OpenstackVtapNetworkCodec());
codecService.registerCodec(OpenstackVtapCriterion.class, new OpenstackVtapCriterionCodec());
log.info("Started");
}
Aggregations