Software Defined Networking
1821410 Members
2613 Online
109633 Solutions
New Discussion юеВ

About running mininet

 
chaitrashree
Occasional Contributor

About running mininet

i have insatalled hp controller of 2.4.5 version and RSDOC and HP controller GUI is working fine but i am not able to create the mininet .I am running controller and mininet on the same system due to some reasons.i tried all the commands for creating it with ip and port no like,

sudo mn --topo=tree,2 --controller=remote

sudo mn --topo=tree,2 --controller=remote,ip=127.0.0.1

sudo mn --topo=tree,2 --controller=remote,ip=127.0.0.1,port=6633

but i am getting error like,

"Unable to contact the remote controller at 127.0.0.1:6633"

sdnc keystone all are running fine.i want to run both mininet and hp on the same system .

can anyone please guide me out ASAP.

thank you

 

5 REPLIES 5
piricchio72
Valued Contributor

Re: About running mininet

Hello,

 

We do not suggest to run Mininet on same device running the controller, however

I would like to know which error message you get when using:

 

sudo mn --topo=tree,2 --controller=remote

 

Also, did you try to use the IP address of the server NIC rather than the loopback interface IP,does this make any difference?

 

Regards,

 

Antonio

SDN CoE Team

lirf
Frequent Visitor

Re: About running mininet

It's definitely not recommended... but it is possible - make sure your server has a decent amountof RAM & CPU.

 

Mininet and the SDN controller have the same default port - I recommend you change the SDN controllers network port to something other than the default, (like 6644) and then try again

 

sudo mn --topo=tree,2 --controller=remote,ip=127.0.0.1,port=6644

chaitrashree
Occasional Contributor

About using REST Apis in java platform

hi all,

i am trying to create a simple application which runs on HP controller.

For this am trying to get response from the REST APIs and to use same in my application.

But normal HttpUrl connection is not working to get the X-auth token . the tried to use the curl in java but 'access denied"

error am getting.Since i need to do all interactions through java i cant use shell script or curl in terminal .

 

So,please anyone let me kno how we can fetch the x-auth token in java and response from other apis especially in java platform.

thank you

chaitrashree
Occasional Contributor

Re: About using REST Apis in java platform

hi all,

i am trying to create a simple application which runs on HP controller.

For this am trying to get response from the REST APIs and to use same in my application.

But normal HttpUrl connection is not working to get the X-auth token . the tried to use the curl in java but 'access denied"

error am getting.Since i need to do all interactions through java i cant use shell script or curl in terminal .

 

So,please anyone let me kno how we can fetch the x-auth token in java and response from other apis especially in java platform.

thank you

Joetel
Frequent Advisor

Re: About using REST Apis in java platform

Hello Chaitrashree,

 

I have no experience in Java programming, but when I have a look at your code it appears to me that it is attempting to use Curl to access the the controllers REST API. Such a program could run on the same server as the HP VAN SDN controller or on another machine. If that is your intention you could have a look here for an example: HP SDN VAN Controller - V2.0.0.4253 - Token Generation using LIB CURL (example is in c but the logic should work in Java too, I think)

 

If on the other hand your application is intended to run within the HP VAN controller framework, a good starting point would be to start here: HP VAN SDN Controller 2.4 Programming Guide. A downloadable example application is also discussed in this manual which might be a good starting point for developing your own.

 

Best Regards,

 

Wouter

HP SDN CoE Team