Commit 88295932 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Pre-merge code cleanup

parent f8df229d
Loading
Loading
Loading
Loading
+1 −1
Changes for src/service/service/service_handlers/l3nm_gnmi_openconfig/StaticRouteGenerator.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -83,7 +83,7 @@ class StaticRouteGenerator:

        num_connection_hops = len(connection_hop_list)
        if num_connection_hops % 2 != 0: raise Exception('Number of connection hops must be even')
        if num_connection_hops < 2: raise Exception('Number of connection hops must be >= 2')
        if num_connection_hops < 4: raise Exception('Number of connection hops must be >= 4')

        it_connection_hops = iter(connection_hop_list)
        return list(zip(it_connection_hops, it_connection_hops))
+1 −1
Changes for src/service/service/service_handlers/l3nm_gnmi_openconfig/VlanIdPropagator.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@ class VlanIdPropagator:

        num_connection_hops = len(connection_hop_list)
        if num_connection_hops % 2 != 0: raise Exception('Number of connection hops must be even')
        if num_connection_hops < 2: raise Exception('Number of connection hops must be >= 2')
        if num_connection_hops < 4: raise Exception('Number of connection hops must be >= 4')

        it_connection_hops = iter(connection_hop_list)
        return list(zip(it_connection_hops, it_connection_hops))