Index numbers (e.g. 0, 1, …) … are only valid after executing print command … and are valid only until another print command is executed (even if in different configuration branch). So command would properly be written as const in graph_interface = [ find name=ether1 ] or something like that … depending on how exactly graph_interface is then used.
I’d say that this has nothing to do with ROS … it has something to do with the display itself and/or how custom code (run by ROS never the less) drives display.