blob: a737b049e1193c0e90bda3075762ca5148051d0b (
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
|
// Copyright Vespa.ai. 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");
private final String networkName;
ContainerNetworkMode(String networkName) {
this.networkName = Objects.requireNonNull(networkName);
}
public String networkName() {
return networkName;
}
}
|