Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds L2 mac-learning to L2Forward module #904

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Mar 27, 2019

  1. Adds L2 mac-learning to L2Forward module

    New learn mode for the L2Forward module allows MAC address learning. The
    incoming packets are added to the L2 FIB with the source MAC address and
    incoming gate. Therefore multiple input gates are now allowed for this
    module, and should be used when using learn mode. The output gates used
    should mirror the same ID used for input gates for learn to work
    correctly. For example:
    
    tcam::L2Forward(learn=True)
    
    inaf = PortInc(port=p0)
    in86 = PortInc(port=p1)
    
    inaf -> 1:tcam
    in86 -> 2:tcam
    
    outaf = PortOut(port=p0)
    out86 = PortOut(port=p1)
    
    tcam:2 -> out86
    tcam:1 -> outaf
    trozet committed Mar 27, 2019
    Configuration menu
    Copy the full SHA
    139c821 View commit details
    Browse the repository at this point in the history