Closed viniarck closed 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())}
@gretelliz we'd like to cover these three tests cases:
disable
action worksLLDP_IGNORED_LOOPS
settings worksPOST /api/kytos/topology/v3/switches/{{dpid}}/metadata
then the loops aren't ignored anymore.
This is for adding an e2e test for this PR https://github.com/kytos-ng/of_lldp/pull/36 once it lands