kytos-ng / of_core

Kytos Main OpenFlow Network Application (NApp)
MIT License
0 stars 5 forks source link

Added a way to handle `4096/4096` and 0 #98

Closed Alopalao closed 1 year ago

Alopalao commented 1 year ago

Related to mef_eline PR #258

Summary

From MatchDLVLAN.as_of_tlv(), self.value now can be non-existent VlanId.OFPVID_NONE From MatchDLVLAN.from_of_tlv(), tlv.oxm_value now can handle the any case with oxm_value = '4096/4096'

Local Tests

Installing this EVC through mef_eline api:

{
    "name": "my evc1",
    "dynamic_backup_path": true,
    "enabled": true,
    "uni_a": {
        "tag": {"tag_type": 1, "value": "any"},
        "interface_id": "00:00:00:00:00:00:00:01:1"
        },
    "uni_z": {
        "tag": {"tag_type": 1, "value": "untagged"},
        "interface_id": "00:00:00:00:00:00:00:02:1"
        }
}

Does not trigger consistency check loop (alien, delete, missing, install) with different values for the UNI tags. Confirming that the de-serialization is working as desired.