Allwin_179373
Feb 07, 2019Nimbostratus
Irule trimleft command issue
When i use the Trim Left command in the irule, the intended part and one character from the end of the string is getting trimmed.
Below is the configured irule:
} elseif { $calledid contains "ABCNET" } then { if { $username contains "host/" } then { log local0. "Fixing username" set newusername [string trimleft $username host/] RADIUS::avp replace User-Name [binary format a* $newusername] binary scan [RADIUS::avp User-Name ] a* newusername log local0. "Fixed username $newusername" } log local0. "Detected ABCNET" set vlanid "00000009" }
Let me know if any corrections.