Skip to content

fno2010/maclearning.p4app

 
 

Repository files navigation

L2 MAC Learning Controller

This l2switch forwards ARP requests/replies to a controller that learns the MAC/port mappings and installs the appropriate table entries.

The class MacLearningSwitch in the python module maclearning.py can be used by mininet to create P4 runtime switches with initial table entries and controllers automatically.

Running

First, make sure you have p4app (which requires Docker):

cd ~/
git clone --branch rc-2.0.0 https://github.com/p4lang/p4app.git

Then run this p4app:

~/p4app/p4app run maclearning.p4app

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 67.9%
  • P4 32.1%