Search code examples
sdnmininetopenflowopendaylight

Opendaylight Dlux how to make flow table?


I downloaded mininet, opendaylight, etc.. and I wanted to add flow table to switches.I used dpctl and sh ovs-ofctl command. but it was too hard to add flow tables to each switches.

I want to add flow table on Dlux UI. But I don't know how to fill in that blank. I made a topology by:

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

I could see the Node Id of switches. it was "openflow:1","openflow:2","openflow:3"

So i input openflow:1.. but it occured an error! i don't know how to fill that blank

enter image description here


Solution

  • You need to add a flow manually through the Mininet terminal like this :

    ovs-ofctl add-flow [SWITCH_NAME] ip,nw_dst=192.168.0.1,actions=drop
    
    • NOTE : Try typing sh before the command if it does not work.

    That was an example flow. See this link for the whole ovs commands reference.