Software Defined Networking
1827892 Members
1898 Online
109969 Solutions
New Discussion

Re: Minimum application?

 
chuck-tallac
Occasional Contributor

Minimum application?

I've successfully created an application, initially based on the gen-sdn-app script output, which does a fair number of openflow things, such as having listeners for switches, messages, and packets; setting flows based on a number of fields; and responding to incoming packets forwarded to the controller in order to set actions on those packets.

 

What I would like to do is to shrink down all of the extraneous stuff, so that I have the basic functionality of the application, for demonstration purposes. The gen-sdn-app script however gives me many projects - api, model, rs, and ui. For prototyping, or for training or for demonstration, those other projects are possibly not necessary.

 

I'm wondering if anybody knows how to trim this application down to the bare minimum - i.e., just the 'business logic' project. I can try peeling stuff away, but I'd like to know what files I'd need to modify in order to make this as simple and minimal as possible, while still including the openflow functionality I've described.

 

Thanks!

1 REPLY 1
sdnindia
Trusted Contributor

Re: Minimum application?

Some thoughts that might be helpful-

 

In the bin directory of HP SDN SDK folder (i.e. some_location/hp-sdn-sdk-2.0.0/bin/) there is  a script file gen-sdn-app. In that script near line 63 you can remove the modules that you don’t want to be in your minimum application

gen-sdn-app

 

for module in root model api bl rs ui app; do    #line 63

 

Modified code can be as below-

for module in root api bl app; do

 

 

After modification and running the script  just check that the application is building successfully i.e. mandatory basic modules should be present there.

 

 

Alternatively you can also create the required modules manually(without script) as per the instruction in the  SDN programming guide.

http://h20628.www2.hp.com/km-ext/kmcsdirect/emr_na-c04003169-2.pdf  [page 123]  talks about Business Logic part.

 

 

Thanks.