Examples of attachNetwork()


Examples of brooklyn.entity.container.weave.WeaveContainer.attachNetwork()

            setAttribute(CONTAINER_ID, container.getNode().getId());

            // If Weave is enabled, attach to the network
            if (getConfig(DockerInfrastructure.WEAVE_ENABLED)) {
                WeaveContainer weave = Entities.attributeSupplierWhenReady(dockerHost, WeaveContainer.WEAVE_CONTAINER).get();
                InetAddress subnetAddress = weave.attachNetwork(getAttribute(CONTAINER_ID));
                setAttribute(Attributes.SUBNET_ADDRESS, subnetAddress.getHostAddress());
            }

            // Create our wrapper location around the container
            LocationSpec<DockerContainerLocation> spec = LocationSpec.create(DockerContainerLocation.class)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.