Package org.apache.cloudstack.network.contrail.management

Examples of org.apache.cloudstack.network.contrail.management.ServiceVirtualMachine


            if (name.isEmpty()) {
                throw new InvalidParameterValueException("service instance name is empty");
            }

            ServiceVirtualMachine svm = _vrouterService.createServiceInstance(zone, owner, template, serviceOffering, name, left, right);
            if (svm == null) {
                throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Unable to create service instance");
            }
            setEntityId(svm.getId());
            setEntityUuid(svm.getUuid());
        } catch (Exception ex) {
            throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, ex.getMessage());
        }
    }
View Full Code Here


            Network right = _networkService.getNetwork(rightNetworkId);
            if (right == null) {
                throw new InvalidParameterValueException("Invalid ID for right network " + rightNetworkId);
            }

            ServiceVirtualMachine svm = _vrouterService.createServiceInstance(zone, owner, template, serviceOffering,
                                                                              name, left, right);
            if (svm == null) {
                throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Unable to create service instance");
            }
            setEntityId(svm.getId());
            setEntityUuid(svm.getUuid());
        } catch (Exception ex) {
            throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, ex.getMessage());
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.cloudstack.network.contrail.management.ServiceVirtualMachine

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.