Package com.woorea.openstack.quantum.model

Examples of com.woorea.openstack.quantum.model.Router


        subnet.setIpVersion(4);
        sub = quantum.subnets().create(subnet).execute();
        RouterForCreate routerForCreate = new RouterForCreate();
        routerForCreate.setName("routerName");
        routerForCreate.setTenantId("tenantId");
        Router router = quantum.routers().create(routerForCreate)
            .execute();
        RouterForAddInterface routerForAdd = new RouterForAddInterface();
        routerForAdd.setSubnetId(sub.getId());
        routerForAdd.setRouterId(router.getId());
        quantum.routers().addInterface(routerForAdd).execute();

        // System.out.println(sub);
      } catch (Exception e) {
        System.out.println(e.getMessage());
View Full Code Here

TOP

Related Classes of com.woorea.openstack.quantum.model.Router

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.