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

Is it feasible to add spine switch into network topology #1702

Open
wat101 opened this issue Mar 13, 2019 · 3 comments
Open

Is it feasible to add spine switch into network topology #1702

wat101 opened this issue Mar 13, 2019 · 3 comments

Comments

@wat101
Copy link

wat101 commented Mar 13, 2019

I have below topology discovered by lldp probe,

host 1 <---> tor 1
host 2 <---> tor 2

Tor 1 and tor 2 are actually connected through a spine switch. How can I add the spine with correct connections via fabric?

@safchain
Copy link
Collaborator

I would suggest to add this information using the configuration file:
https://github.com/skydive-project/skydive/blob/master/etc/skydive.yml.default#L102

I would be something like:

fabric:
   SPINE[Name=myspine] -> SPINE_PORT1
   SPINE_PORT1 -> *[Type=switch, Name=<tor name 1>]/<tor 1 portName>
   SPINE[Name=myspine] -> SPINE_PORT2
   SPINE_PORT2 -> *[Type=switch, Name=<tor name 2>]/<tor 2 portName>

Another option is to use the API:
http://skydive.network/documentation/cli#topology-rules
http://skydive.network/blog/topology-rules.html

@wat101
Copy link
Author

wat101 commented Mar 13, 2019

I tried the fabric way. I can see spine1 created but not connected to the tor.

Tor1 and tor2 are auto-discovered via LLDP. I don't know the exact interface on tor1/2 to the spine. It seems I cannot just add an arbitrary port , like "port1", to the tors?

Below is my config.

fabric:
    - SPINE1[Name=spine1] -> SPINE1_PORT1[Name=port1,MTU=9000]
    - SPINE1_PORT1 -> *[Type=switch,Name=Tor1]/port1
    - SPINE1[Name=spine1] -> SPINE1_PORT2[Name=port2,MTU=9000]
    - SPINE1_PORT2 -> *[Type=switch,Name=Tor2]/port1

@wat101
Copy link
Author

wat101 commented Mar 13, 2019

I solved my need with below cli. Thanks for the document link! What would be the equivalent config with fabric?

 ./skydive-latest client edge-rule create --src="G.V().Has('Name', 'spine1')" --dst="G.V().Has('Name', 'tor1')" --relationtype="layer2"

 ./skydive-latest client edge-rule create --src="G.V().Has('Name', 'spine1')" --dst="G.V().Has('Name', 'tor2')" --relationtype="layer2"

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

No branches or pull requests

2 participants