Cluster file and special characters
kesnar opened this issue · 2 comments
kesnar commented
Hello,
I have some interfaces that have dashes in their names. For example sn-p1, so in the cluster file we have:
0:ifname=sn-p1
But then in npf the variable pc:0:ifname
returns only the part before the dash: sn
.
I have tried using quotes (" or ') and escaping (\), but they do not work.
Is this the intended behavior? Is there some other escape character?
tbarbette commented
Most parsing is done with regex, so escaping is generally not possible.
This character was not allowed, I'm waiting for the CI to finish then I'll merge.
tbarbette commented
I'm busy right now, if you use PIP just use this repo instead (directly call python3 ./npf-XX.py)