I'm doing a POC on SDN using miniedit (UI of mininet) and ONOS as a SDN controller, I want to invoke ONOS from miniedit when we run the topology so used the following line of code in python
os.system("gnome-terminal -e 'bash -c \"/home/paxterra/onos/tools/dev/bin/onos-karaf; exec bash\"' &")
this invokes ONOS if i execute it as a normal user, but throws error since this code present in miniedit.py and I'm running miniedit.py as super user.
Error : /home/paxterra/onos/tools/dev/bin/onos-karaf: line 7: onos-setup-karaf: command not found
I tried to set environment variable PATH="/home/paxterra/onos/tools/dev/bin/"
and then tried the command again, it gives the same error.
Can anyone please help me to solve this issue. ?