NIKSS-vSwitch / nikss

Native In-Kernel P4-programmable Software Switch for Software-Defined Networking (previously PSA-eBPF)
Apache License 2.0
48 stars 4 forks source link

Error on mininet example demp.py #108

Open Frankdal opened 11 months ago

Frankdal commented 11 months ago

Idk if it was only a my issue but the two examples of command to add entries to the table to forward packets among h1 and h2 did not working : -s1.cmd("nikss-ctl table add pipe 0 ingress_tbl_fwd id 1 key {} data {}".format(h2.MAC(), socket.if_nametoindex("s1-eth3"))) -s1.cmd("nikss-ctl table add pipe 0 ingress_tbl_fwd id 1 key {} data {}".format(h1.MAC(), socket.if_nametoindex("s1-eth2"))) , i added manually with (examples) :

adsfljk commented 7 months ago

Adding the word action to s1.cmd works for me.