Remove dots from client-mac-address
Steven Walters
steven.walters1 at gmail.com
Tue Oct 25 12:33:27 UTC 2022
Hi
I am using the below loop to extract client-mac-address from Cisco AVP and
write it to the Telkom-CPE attribute.
The format of the client-mac-address is "340a.3394.7291". Is there a way to
remove the dots from the mac address like "340A33947291" before writing it
the attribute?
foreach Cisco-AVPair {
if ("%{Foreach-Variable-0}" =~ /^client-mac-address=(.+)/ ) {
update request{
Telkom-CPE := "%{1}"
}
}
}
Regards
Steven
More information about the Freeradius-Users
mailing list