Ask is moving to Stack Overflow and! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode


how to set MAC/IP address flow as default flow instead port-based flow

asked 2016-04-13 01:08:01 -0700

luis999 gravatar image


i have create a custom topology in mininet and have install opendaylight.

on my opendaylight, i have install 'old-dlux-all' and 'odl-l2switch-switch-ui'.

the opendaylight will add port-base flows into the switch's flow-table, when i set up a topology. i want to create a dedicated flow using mac address.



S1 & S2 flows:


my question is

1) How to set MAC/IP address flow as default flow instead port-based flow?

2) How the packet reach the destination in a port-based flow topology?

many thanks in advance. :)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-04-13 02:07:12 -0700

karthik330 gravatar image

Hi , In L2switch you have to modify to change the default with MAC/ IP . refer this link link text . You will get idea which class to modify. Gitclone the L2switch (Version should be matched with whatever mentioned in ODL's Pom file). Add the match and action (you have to add your code.)..Build your L2switch and also ODL . Then launch your ODL install l2switch and connect mininet . The Flows will be reflected in each switch. you can check using sudo ovs-ofctl dump-flows s1 command.

Thanks, -Karthik

edit flag offensive delete publish link more


Thank You. not sure how to program it.

luis999 ( 2016-04-15 00:31:54 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-04-13 01:08:01 -0700

Seen: 204 times

Last updated: Apr 13 '16