tbarbette / npf

Network Performance Framework: easy-to-use experiment manager with automated testing, result collection, and graphing
GNU General Public License v3.0
38 stars 15 forks source link

Cluster file and special characters #32

Closed kesnar closed 2 years ago

kesnar commented 2 years ago

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 2 years ago

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 2 years ago

I'm busy right now, if you use PIP just use this repo instead (directly call python3 ./npf-XX.py)