Closed dShvetsov closed 2 years ago
Hello. I found that, src/lang/python/frenetic/examples/learning.py has a bug.
src/lang/python/frenetic/examples/learning.py
In function switch_policy this line
switch_policy
60 return known_pol | Filter(unknown_pred) >> (SendToController("learning_controller") | flood(sw))
says that packet with unkown_pred will be flooded.
unkown_pred
unknown_pred means unknown source mac, but you really need to flood unknown destination mac. Ye So I think the right way will be write following :
unknown_pred
60 return known_pol | Filter(unknown_source) >> SendToController("learning_controller") | Filter(unknown_destination) >> flood(sw)
Hello. I found that,
src/lang/python/frenetic/examples/learning.py
has a bug.In function
switch_policy
this linesays that packet with
unkown_pred
will be flooded.unknown_pred
means unknown source mac, but you really need to flood unknown destination mac. Ye So I think the right way will be write following :