blob: 56e690864acd4237b35de44ec9c49e0f806d505b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.node.admin.container;
import java.util.Objects;
/**
* Container network modes supported by node-admin.
*
* @author hakon
*/
public enum ContainerNetworkMode {
/** Network Prefix-Translated networking. */
NPT("vespa-bridge"),
/** A host running a single container in the host network namespace. */
HOST_NETWORK("host"),
/** A host running multiple containers in a shared local network. */
LOCAL("vespa-bridge");
private final String networkName;
ContainerNetworkMode(String networkName) {
this.networkName = Objects.requireNonNull(networkName);
}
public String networkName() {
return networkName;
}
}
|