-
Notifications
You must be signed in to change notification settings - Fork 712
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
Add the basics for a Weave-specific topology. #1182
Conversation
#720 has a few ideas for what scope could show/visualise about weave net. |
Why do we want a Weave specific view? |
btw, I reckon showing the weave topology, which is what the bulk of this PR appears to do, is a reasonable first step on the way to #720. |
Addresses #1938 |
@tomwilkie I don't think we should be renaming the Overlay topology anymore since:
|
25144f6
to
8e4dfd7
Compare
I've reworked the code without the renaming and applied it to current master (things had changed quite a bit). I saved the old code in branch 1132-weave-topology-original-tom just in case. |
e86a9f4
to
e80a01a
Compare
Re controls: |
Re the details panel:
then add
The interesting parts are sleeve vs fastdp vs awsvpc, encrypted or not, error message. |
We should merge this w/o adding more stuff to the details panel. Let's do that in a separate issue/PR. |
How about expose? |
Good point. Will do |
Current state of the PR: Report: report.json.gz (CC @davkal ) |
Q: Should we have a different icon for Weave routers? (Or, as they are containers, should the hexagon be used?) |
We chose the circle because:
|
That said, maybe we could use a different icon, but I wouldn't recommend an hexagon though since it will be confused with containers. |
Circles are good because they're hosts... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aside from the questions about node shape and topology rank, code looks fine.
parent: "hosts", | ||
renderer: render.WeaveRenderer, | ||
Name: "Weave Net", | ||
Rank: 3, |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This is very much an early prototype. Fixes #1132.
It uses the information from
weave report
to build a topology of nodes and edges. It honours the edge direction fromweave report
. Peers fromweave report
which are not running scope are shown as pseudo nodes (fixes #778).I'd like to be able to:
ensure the weave topology is shown as selected in the UI (@davkals, could you take a look?)(this was a non-issue when @2opremio revived the PR)rename occurrences of overlay to weave(not applicable anymore since the overlay topology includes docker nodes)