diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-06-03 19:05:26 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-06-06 15:50:29 +0200 |
commit | 95355a281c06c5970b7355c38b066910c3be4958 (patch) | |
tree | dd511f32f60f65059e1148ac04e9f822ab6fa070 /src/network/networkd-network.h | |
parent | networkd: add support to keep configuration (diff) | |
download | systemd-95355a281c06c5970b7355c38b066910c3be4958.tar.xz systemd-95355a281c06c5970b7355c38b066910c3be4958.zip |
network: add KeepConfiguration=dhcp-on-stop
The option prevents to drop lease address on stop.
By setting this, we can safely restart networkd.
Diffstat (limited to 'src/network/networkd-network.h')
-rw-r--r-- | src/network/networkd-network.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/network/networkd-network.h b/src/network/networkd-network.h index ca1c6fcdb3..7b92a54426 100644 --- a/src/network/networkd-network.h +++ b/src/network/networkd-network.h @@ -79,10 +79,12 @@ typedef enum RADVPrefixDelegation { } RADVPrefixDelegation; typedef enum KeepConfiguration { - KEEP_CONFIGURATION_NO = 0, - KEEP_CONFIGURATION_DHCP = 1 << 0, - KEEP_CONFIGURATION_STATIC = 1 << 1, - KEEP_CONFIGURATION_YES = KEEP_CONFIGURATION_DHCP | KEEP_CONFIGURATION_STATIC, + KEEP_CONFIGURATION_NO = 0, + KEEP_CONFIGURATION_DHCP_ON_START = 1 << 0, + KEEP_CONFIGURATION_DHCP_ON_STOP = 1 << 1, + KEEP_CONFIGURATION_DHCP = KEEP_CONFIGURATION_DHCP_ON_START | KEEP_CONFIGURATION_DHCP_ON_STOP, + KEEP_CONFIGURATION_STATIC = 1 << 2, + KEEP_CONFIGURATION_YES = KEEP_CONFIGURATION_DHCP | KEEP_CONFIGURATION_STATIC, _KEEP_CONFIGURATION_MAX, _KEEP_CONFIGURATION_INVALID = -1, } KeepConfiguration; |