Skip to content

Vlans are not return in order #98

@marcom4rtinez

Description

@marcom4rtinez

@pytest.mark.nuts("vlan_tag")
def test_vlan_tag(self, single_result, vlan_tag):
assert vlan_tag in single_result.result

The napalm vlan check doesnt return vlan in order. On some devices therefore the checks fail

@pytest.mark.nuts("vlan_tags")
    def test_no_rogue_vlans(self, single_result, vlan_tags):
>       assert list(single_result.result.keys()) == sorted(vlan_tags)
E       assert [1, 1198, 119...94, 1193, ...] == [1, 1193, 119...96, 1197, ...]
E         At index 1 diff: 1198 != 1193
E         Full diff:
E         - [1, 1193, 1194, 1195, 1196, 1197, 1198, 1199, 4093, 4094]
E         + [1, 1198, 1199, 4093, 4094, 1193, 1195, 1194, 1197, 1196]

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions