diff options
author | Christian Breunig <christian@breunig.cc> | 2023-08-07 22:53:49 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-08-07 23:05:12 +0200 |
commit | 9afcea251bdc895ffd49cb11f455fd636fdf817b (patch) | |
tree | 7565b39062a1f186ea6417ab584604a015a9f47b /src/systemd/dhclient@.service | |
parent | 8ce2d9ffff40bf07c3857cb09f7771435fa5693a (diff) | |
download | vyos-1x-9afcea251bdc895ffd49cb11f455fd636fdf817b.tar.gz vyos-1x-9afcea251bdc895ffd49cb11f455fd636fdf817b.zip |
dhcp: T5428: always release lease from default VRF
Otherwise packet can be received in a VRF that was already deleted.
Image of the following CLI commands:
del interface ethernet eth0 address dhcp
del interface ethernet eth0 vrf red
del vrf name red
VRF could be deleted even if dhclient release was not yet completely
processed.
Diffstat (limited to 'src/systemd/dhclient@.service')
-rw-r--r-- | src/systemd/dhclient@.service | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemd/dhclient@.service b/src/systemd/dhclient@.service index 6d41de232..099f7ed52 100644 --- a/src/systemd/dhclient@.service +++ b/src/systemd/dhclient@.service @@ -7,7 +7,7 @@ After=vyos-router.service [Service] Type=exec ExecStart=/sbin/dhclient -4 -d $DHCLIENT_OPTS -ExecStop=/sbin/dhclient -4 -d $DHCLIENT_OPTS -r +ExecStop=/sbin/dhclient -4 -r $DHCLIENT_OPTS Restart=always RestartPreventExitStatus= RestartSec=10 |