kytos-ng / kytos-end-to-end-tests

Kytos End-to-End Tests
0 stars 10 forks source link

Add an e2e test for lldp loop_detection feature #125

Closed viniarck closed 2 years ago

viniarck commented 2 years ago

This is for adding an e2e test for this PR https://github.com/kytos-ng/of_lldp/pull/36 once it lands

viniarck commented 2 years ago

This following custom topology can be used for this test case, sw1 has two interfaces (1, 2) looped:


from mininet.topo import Topo

class Looped(Topo):
    "Looped."

    def build(self):
        "Create custom topo."

        switch_one = self.addSwitch("s1")
        switch_two = self.addSwitch("s2")

        self.addLink(switch_one, switch_one, port1=1, port2=2)
        self.addLink(switch_one, switch_two, port1=3, port2=1)

topos = {"looped": (lambda: Looped())}
viniarck commented 2 years ago

@gretelliz we'd like to cover these three tests cases: