[ovs-dev] [learning v2 15/19] Implement new "learn" action.
Ethan Jackson
ethan at nicira.com
Tue Sep 13 12:55:07 PDT 2011
Sounds good.
Ethan
On Tue, Sep 13, 2011 at 11:41, Ben Pfaff <blp at nicira.com> wrote:
> On Tue, Sep 13, 2011 at 11:39:12AM -0700, Ethan Jackson wrote:
>> > + * 3. Here's a recipe for a very simple-minded MAC learning switch. ?It uses a
>> > + * ? ?10-second MAC expiration time to make it easier to see what's going on
>> > + *
>> > + * ? ? ?ovs-vsctl del-controller br0
>> > + * ? ? ?ovs-ofctl del-flows br0
>> > + * ? ? ?ovs-ofctl add-flow br0 "table=0 actions=learn(table=1, \
>> > + ? ? ? ? ?hard_timeout=10, NXM_OF_VLAN_TCI[0..11], ? ? ? ? ? ? \
>> > + ? ? ? ? ?NXM_OF_ETH_DST[]=NXM_OF_ETH_SRC[], ? ? ? ? ? ? ? ? ? \
>> > + ? ? ? ? ?output:NXM_OF_IN_PORT[]), resubmit(,1)"
>> > + * ? ? ?ovs-ofctl add-flow br0 "table=1 priority=0 actions=flood"
>> > + *
>> > + * ? ?You can then dump the MAC learning table with:
>> > + *
>> > + * ? ? ?ovs-ofctl dump-flows br0 table=1
>> > + *
>>
>> Did you intentionally leave off the newline "*" in the comment? Looks
>> a bit funny.
>
> It does look funny, but I left it off intentionally to make the
> command easier to cut-and-paste into a shell window.
>
More information about the dev
mailing list