Skip to content
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

Placeholder to prefix subgraph nodes with subgraph name #5557

Open
ioggstream opened this issue Jun 2, 2024 · 0 comments
Open

Placeholder to prefix subgraph nodes with subgraph name #5557

ioggstream opened this issue Jun 2, 2024 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request

Comments

@ioggstream
Copy link

Proposal

I wish

  • graph diagram syntax to enable prefixing subgraph nodes with subgraph name

Rationale

This eases the creation of diagrams where multiple components are repeated.

Example

If the % character was the placeholder. Note that the diagram code inside subgraph us-west1 and subgraph us-east3 is exactly the same.

subgraph us-west1
  %-gw
  subgraph %-net
    %-vm-1
    %-vm-2
  end
end

subgraph us-east3
  %-gw
  subgraph %-net
    %-vm-1
    %-vm-2
  end
end

becomes

graph

subgraph us-west1
us-west1-gw
subgraph us-west1-net
us-west1-net-vm-1
us-west1-net-vm-2
end
end

subgraph us-east3
us-east3-gw
subgraph us-east3-net
us-east3-net-vm-1
us-east3-net-vm-2
end
end

us-west1-gw --- us-east3-gw
Loading

Screenshots

No response

@ioggstream ioggstream added Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request labels Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant