You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you were to install these two flows on OvS directly, 12/4095 and 14/4094, notice below that it's deparsing the Flow runtime structure as match: {'dl_vlan': 12}, which isn't necessarily wrong, and can be thought as an optimization, but this will result in consistency check issues when generating the flow.id. Comparing with the dumped output of OvS even a all 1s mask it keeps it, so maybe our serialization should be explicit too:
Also, on wire both FlowMod and FlowStats reply were as expected:
1 - On OvS 3.2.0, it optimized away the mask on flow stats reply, which arguably makes sense since it's also an exact match at the end of the day, but this would lead to a different flow.id since we're computing the id based on the serialization of the mask:
Conclusion
When using an all 1s (exact match) mask, for now the safest approach when sending the flow is to omit it, otherwise to support platform differences, when computing flow ids we'd need to much extra conditionals excluding those from the id hash calculations, which wouldn't be that trivial either. On NoviFlow both options are working as expected though.
If you were to install these two flows on OvS directly,
12/4095
and14/4094
, notice below that it's deparsing theFlow
runtime structure asmatch: {'dl_vlan': 12}
, which isn't necessarily wrong, and can be thought as an optimization, but this will result in consistency check issues when generating theflow.id
. Comparing with the dumped output of OvS even a all 1s mask it keeps it, so maybe our serialization should be explicit too:I'm also gonig to compare with NoviFlow switches for completeness cc'ing @Alopalao. Aldo has encountered this when implementing vlan range on https://github.com/kytos-ng/mef_eline/pull/396/files#r1384185684
The text was updated successfully, but these errors were encountered: