use of org.onosproject.k8snetworking.codec.K8sNetworkCodec in project onos by opennetworkinglab.
the class K8sNetworkingCodecRegister method activate.
@Activate
protected void activate() {
codecService.registerCodec(K8sIpam.class, new K8sIpamCodec());
codecService.registerCodec(K8sNetwork.class, new K8sNetworkCodec());
codecService.registerCodec(K8sPort.class, new K8sPortCodec());
log.info("Started");
}
use of org.onosproject.k8snetworking.codec.K8sNetworkCodec in project onos by opennetworkinglab.
the class K8sNetworkWebResourceTest method setUpTest.
/**
* Sets up the global values for all the tests.
*/
@Before
public void setUpTest() {
final CodecManager codecService = new CodecManager();
codecService.activate();
codecService.registerCodec(K8sNetwork.class, new K8sNetworkCodec());
ServiceDirectory testDirectory = new TestServiceDirectory().add(K8sNetworkAdminService.class, mockAdminService).add(CodecService.class, codecService);
setServiceDirectory(testDirectory);
k8sNetwork = DefaultK8sNetwork.builder().networkId("sona-network").name("sona-network").type(K8sNetwork.Type.VXLAN).segmentId("1").cidr("10.10.0.0/24").mtu(1500).build();
}
Aggregations