I am trying to run the containernet_example.py
file (where I modified the 2 docker image hosts with my docker images) with ONOS as the controller for my topology.
When I accessed the ONOS UI page via localhost:8181/onos/ui/login.html
I was not able to access the hosts, i.e. docker images in the UI page. I mean the topology is not displayed in the onos page but in the containernet CLI, the ping works for the hosts. The command I use is:
sudo mn --controller remote,ip=MYIPADDRESS --switch=ovsk,protocols=OpenFlow13 --custom containernet_example.py
Whereas if I try standard topologies like tree, I am able to access those topologies. I want to use those docker images as hosts in onos gui and as well as in containernet cli.
I have been reading so many posts but I could not solve this issue. Any insight would be helpful. Thanks in advance.
The code used for this has been acquired from another StackOverflow link, which I could not tag as I could not bookmark the page exactly. Below is the code that worked for me in the case of 2 docker images as containernet hosts.
And the command I used is simple sudo python3 myfilename.py