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

How do I link ONOS by using mininet in my VM? #102

Open
dmucby opened this issue Jun 6, 2022 · 4 comments
Open

How do I link ONOS by using mininet in my VM? #102

dmucby opened this issue Jun 6, 2022 · 4 comments

Comments

@dmucby
Copy link

dmucby commented Jun 6, 2022

Because I want to do some extensibility work, and the mininet function in docker is limited and cannot be extended, so I want to find a way to use the mininet installed in my virtual machine, but I can't find any way to let my mininey link to the ONOS service in docker. I want to seek help to solve this problem.

@ederollora
Copy link

ederollora commented Jun 6, 2022

Hi,

I think I need more information.

the mininet function in docker is limited and cannot be extended, so I want to find a way to use the mininet installed in my virtual machine,

So you mean that you want to use Mininet outside of Docker? Like a normal process running on a VM instead of running within a conatiner? Please explain how Docker+Mininet is limiting your will to extend its functionality. Maybe you can still achieve your purpose by running the container.

If you want to run Mininet (with Stratum) and also connect it to ONOS, I would start from checking on how they create the container for Mininet and Stratum. Then, try to learn how Stratum is related to Mininet in order to do it locally on your VM instead of the container. They might have a procedure already working for it either in the Stratum repo or someone else but I have no idea about it. You also have some info on how to extract logs (here) from the container if that is a problem right now.

I can't find any way to let my mininey link to the ONOS service in docker.

I am not sure what you mean with this sentence. But, if you cannot connect ONOS with Mininet+Docker, you should know that this is achieved by exposing ports (see here) and by submitting a config file to ONOS, so ONOS knows how to reach the switches (see here).

Cheers

@dmucby
Copy link
Author

dmucby commented Jun 6, 2022

For example, I want the P4 switch to connect to other devices, such as a server. Mininet in docker seems unable to do so. I hope the server connected to the switch can be displayed in the GUI of ONOS.

@LoserFeng
Copy link

I hope to deploy mininet with stratum and bmv2 switch in the VM instead of in the docker but I don't know how to build this environment ,is there any examples ,the stratum examples in the github given are built in docker yet.(my English is not good QAQ).

@LoserFeng
Copy link

and i also want to know that if i can use the Simple_switch_CLI to control the stratum_bmv2 switch.i hope to add eth0(docker's or VM's) to the switch so that switch in mininet can connect with the network outside.

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

3 participants