diff --git a/my_route.py b/my_route.py index 428dc5d..ad573b1 100755 --- a/my_route.py +++ b/my_route.py @@ -312,6 +312,7 @@ class Route(Connect): gw_type = gw.split('-')[0] gw_name = gw.split('-')[1] for route in cidr_data.splitlines(): + route = route.split('#')[0].strip() route_counter += 1 if platform.startswith('win32'): pass