Ask Your Question
0

Add RPC for openflow plugin 1.3 in MD-SAL

asked 2014-06-26 14:22:10 -0700

anonymous user

Anonymous

updated 2014-06-26 14:22:22 -0700

I would like to add a RPC for ModelDrivenSwitchImpl like "addFlow()" which will invoke another RPC in openflow library. Anyone working on this part, could you please give me some detailed tutorials for this?

edit retag flag offensive close merge delete

Comments

did you get a chance to look at following tutorials? They probably will give you more clue on how to progress. If you have any specific query about the code, feel free to post it. https://wiki.opendaylight.org/view/Pinghttps://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL:MD-SAL_App_Tutorialhttps://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL:Toaster_Step-By-Stephttps://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL:Toaster_Tutorial

Anil Vishnoi ( 2014-06-26 23:20:54 -0700 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-09-26 00:33:54 -0700

michal.rehak gravatar image

Hi, all rpc methods exposed by ModelDrivenSwitchImpl are prescribed by generated API:

SalGroupService, //
SalFlowService, //
SalMeterService, //
SalTableService,//
SalPortService,
PacketProcessingService, //
OpendaylightGroupStatisticsService, //
OpendaylightMeterStatisticsService, //
OpendaylightFlowStatisticsService, //
OpendaylightPortStatisticsService, //
OpendaylightFlowTableStatisticsService, //
OpendaylightQueueStatisticsService, //

Corresponding yang files can be found in controller/opendaylight/md-sal/model/model-flow-service.

What you need to do is to :

  • create new yang model (or add your rpc to existing one if it fits in with respect of purpose)
  • add that interface into ModelDrivenSwitchImpl hierarchy (if new model created)
  • write rpc method implementation
  • probably do the same for OFJava backend where exposed rpcs are modeled in similar way as in MD-SAL.

Regards, Michal

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
2 followers

Stats

Asked: 2014-06-26 14:22:10 -0700

Seen: 981 times

Last updated: Sep 26 '14