-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Topology view with overlapping regexps #1498
Comments
Each line is evaluated as an independent regex (or set of regexes separated by semicolons). You should be getting two rows: the first with all devices with "sw" in their name, and the second with all devices.
Try:
|
That doesn't happen. And
just puts one instance of each device, all on the same line. OK, I found the issue. If you repeat a node (with the same name) in graphviz, then it's not added as another node - it's just a repeat instance of the same node. This fixes it for me:
|
Or if you prefer stylistically:
|
Issue type
[ ] Feature request
[X] Bug report
[ ] Documentation
Environment
Description
When I enter a topology description like this:
I was expecting to see all devices with "sw" in their name on the top line, and all other devices on the line below.
What I actually see is all devices on the same line.
It's not entirely clear what the intended behaviour is here. What I was hoping is that if a device matches an earlier regex, it should be excluded from matching a later one.
If I change this to:
then I also get all the devices on the same line - but in this case, the 'sw' device is on the right-hand end of the line.
If I make a regex which explicitly matches the other hosts by name (i.e. all those without 'sw' in them), it works - but it can be long and hard to maintain.
The text was updated successfully, but these errors were encountered: