feat(network): Add mac address token (#2569)

* Add mac address option

* Add error handling

* Address changes

* Move outside of for loop

* Update changelog
This commit is contained in:
Cameron
2022-01-15 17:39:55 -08:00
committed by GitHub
parent 6e34265d7b
commit 195a0d94df
4 changed files with 17 additions and 0 deletions

View File

@ -154,6 +154,7 @@ namespace modules {
label->reset_tokens();
label->replace_token("%ifname%", m_interface);
label->replace_token("%local_ip%", network->ip());
label->replace_token("%mac%", network->mac());
label->replace_token("%local_ip6%", network->ip6());
label->replace_token("%upspeed%", upspeed);
label->replace_token("%downspeed%", downspeed);