Skip to content

added de bruijn blueprints#51

Open
Monjistha99 wants to merge 4 commits into
mainfrom
debruijn-blueprint
Open

added de bruijn blueprints#51
Monjistha99 wants to merge 4 commits into
mainfrom
debruijn-blueprint

Conversation

@Monjistha99
Copy link
Copy Markdown
Collaborator

This MR contains 4 files on De bruijn fabric blueprint-

  1. De bruijn fabric with multiple hosts
  2. Hybrid De bruijn fabric
  3. Test file of - De bruijn fabric with multiple hosts
  4. Test file of - Hybrid De bruijn fabric

@Amos-Rai-KEYS
Copy link
Copy Markdown
Collaborator

Amos-Rai-KEYS commented May 11, 2026

There are no assert statements in test files, might need to add that @Monjistha99
cc - @harsh-sikhwal

Comment thread src/infragraph/blueprints/fabrics/multi_host_debruijn_fabric.py Outdated
Comment thread src/infragraph/blueprints/fabrics/hybrid_debruijn_fabric.py Outdated
# Fabric edges (with redundancy)

for node in nodes:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please do code cleanup and remove extra spaces or new lines

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cleaned up code

Comment thread src/infragraph/blueprints/fabrics/multi_host_debruijn_fabric.py Outdated
)

hosts_per_switch = host_ports // hn
self.degree = degree
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same - I dont think this is required?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

Comment thread src/infragraph/blueprints/fabrics/hybrid_debruijn_fabric.py Outdated
)

# Access switch device
access_switch = Switch(port_count=sp)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are creating a switch again - we dont need this - we need to use the same switch which is passed to the function - so think about it in a different manner

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of creating a switch again, I used the same switch for fabric and access switches

Comment thread src/infragraph/blueprints/fabrics/hybrid_debruijn_fabric.py Outdated
Comment thread src/infragraph/blueprints/fabrics/hybrid_debruijn_fabric.py Outdated
Comment thread src/infragraph/blueprints/fabrics/hybrid_debruijn_fabric.py Outdated
Copy link
Copy Markdown
Collaborator Author

@Monjistha99 Monjistha99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added my comments wherever there was a review comment

Copy link
Copy Markdown
Collaborator Author

@Monjistha99 Monjistha99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replied on reviews

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants