summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@sentrium.io>2019-11-19 06:21:42 +0700
committerGitHub <noreply@github.com>2019-11-19 06:21:42 +0700
commit0070afb677d03a7b02a311f33863c5d3257d3051 (patch)
tree1796f3099d5b22376c9b176ed1ad7e35908238fb /src
parentfb72bc367234bf35628bdccf84b0b76108f6341e (diff)
parentc043aab86d3014146a643f1c6d25edec09278873 (diff)
downloadvyos-1x-0070afb677d03a7b02a311f33863c5d3257d3051.tar.gz
vyos-1x-0070afb677d03a7b02a311f33863c5d3257d3051.zip
Merge pull request #166 from kroy-the-rabbit/bugfix-T1812
[vyos-hostsd] T1812: Reload pdns on dhcp client update
Diffstat (limited to 'src')
-rwxr-xr-xsrc/system/on-dhcp-event.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/system/on-dhcp-event.sh b/src/system/on-dhcp-event.sh
index 70a563d4c..af7c86ee7 100755
--- a/src/system/on-dhcp-event.sh
+++ b/src/system/on-dhcp-event.sh
@@ -45,11 +45,13 @@ case "$action" in
# add host
/usr/bin/vyos-hostsd-client --add-hosts --tag "DHCP-$client_ip" --host "$client_fqdn_name,$client_ip"
;;
+ ((changes++))
release) # delete mapping for released address
# delete host
/usr/bin/vyos-hostsd-client --delete-hosts --tag "DHCP-$client_ip"
;;
+ ((changes++))
*)
logger -s -t on-dhcp-event "Invalid command \"$1\""