Commit 47e3afcf authored by Dmitry Lukhtionov's avatar Dmitry Lukhtionov
Browse files

Reformat

parent 62af1edc
Pipeline #21028 passed with stages
in 32 minutes and 45 seconds
......@@ -92,9 +92,7 @@ class Command(BaseCommand):
if (c.direction) and (c.direction in directions):
return
self.e(
c,
"'%s' must have direction %s (has '%s')"
% (c.type.name, directions, c.direction),
c, "'%s' must have direction %s (has '%s')" % (c.type.name, directions, c.direction),
)
def check_ct_db9(self, c):
......@@ -142,13 +140,7 @@ class Command(BaseCommand):
)
elif any("100BASELX" in s for s in c.protocols):
self.check_protocols(
c,
[
">100BASELX-1310",
"<100BASELX-1310",
">100BASELX-1550",
"<100BASELX-1550",
],
c, [">100BASELX-1310", "<100BASELX-1310", ">100BASELX-1550", "<100BASELX-1550"],
)
elif any("1000BASEZX" in s for s in c.protocols):
self.check_protocols(
......@@ -299,9 +291,7 @@ class Command(BaseCommand):
def check_ct_gbic(self, c):
self.check_direction(c, ["i", "o"])
self.check_protocols(
c, ["TransEth100M", "TransEth1G", "TransEth10G", "TransEth40G"]
)
self.check_protocols(c, ["TransEth100M", "TransEth1G", "TransEth10G", "TransEth40G"])
def check_ct_xenpak(self, c):
self.check_direction(c, ["i", "o"])
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment