aboutsummaryrefslogtreecommitdiffstats
path: root/examples/tg19/dhcp/config/dhcpd-notify-v6.conf
diff options
context:
space:
mode:
authorOle Mathias Aa. Heggem <olemathias.aa.heggem@gmail.com>2019-11-11 22:14:22 +0100
committerOle Mathias Aa. Heggem <olemathias.aa.heggem@gmail.com>2019-11-11 22:14:22 +0100
commitef8122013956d09127c25285fde92b39c4e8af55 (patch)
tree34ce1266ae41d86e9378f481c1afb1e00be9c90c /examples/tg19/dhcp/config/dhcpd-notify-v6.conf
parent1f190fed23d84fa00559653e868e6be5ff6451aa (diff)
A little TG19 scripts and config
Diffstat (limited to 'examples/tg19/dhcp/config/dhcpd-notify-v6.conf')
-rw-r--r--examples/tg19/dhcp/config/dhcpd-notify-v6.conf9
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/tg19/dhcp/config/dhcpd-notify-v6.conf b/examples/tg19/dhcp/config/dhcpd-notify-v6.conf
new file mode 100644
index 0000000..4f73cc6
--- /dev/null
+++ b/examples/tg19/dhcp/config/dhcpd-notify-v6.conf
@@ -0,0 +1,9 @@
+on commit {
+ set ClientIP = concat("--ip=", pick-first-value(binary-to-ascii(16, 16, ":", substring(option dhcp6.ia-na, 16, 16)), ""));
+ set ClientName = concat("--clientname=", pick-first-value(option fqdn.hostname, option host-name, option dhcp-client-identifier, ""));
+ set ClientMac = concat("--mac=", pick-first-value(binary-to-ascii(16, 8, ":", suffix(option dhcp6.client-id,6)), ""));
+ set CircuitID = concat("--circuit=", pick-first-value(option agent.circuit-id, ""));
+ set GondulAPI = concat("--api=", "https://tech:<Removed>@gondul.tg19.gathering.org/api/write/collector");
+
+ execute("/usr/local/bin/gondul-lol", ClientIP, ClientMac, ClientName, CircuitID, GondulAPI);
+}