Skip to content

Commit fedcd9c

Browse files
fix port definition
1 parent 697cd4f commit fedcd9c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

nebula/controller.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -334,12 +334,12 @@ def __init__(self, args):
334334
self.start_date_scenario = None
335335
self.federation = args.federation if hasattr(args, "federation") else None
336336
self.topology = args.topology if hasattr(args, "topology") else None
337-
self.controller_port = args.controllerport if hasattr(args, "controllerport") else 5000
338-
self.waf_port = args.wafport if hasattr(args, "wafport") else 6000
339-
self.frontend_port = args.webport if hasattr(args, "webport") else 6060
340-
self.grafana_port = args.grafanaport if hasattr(args, "grafanaport") else 6040
341-
self.loki_port = args.lokiport if hasattr(args, "lokiport") else 6010
342-
self.statistics_port = args.statsport if hasattr(args, "statsport") else 8080
337+
self.controller_port = int(args.controllerport) if hasattr(args, "controllerport") else 5000
338+
self.waf_port = int(args.wafport) if hasattr(args, "wafport") else 6000
339+
self.frontend_port = int(args.webport) if hasattr(args, "webport") else 6060
340+
self.grafana_port = int(args.grafanaport) if hasattr(args, "grafanaport") else 6040
341+
self.loki_port = int(args.lokiport) if hasattr(args, "lokiport") else 6010
342+
self.statistics_port = int(args.statsport) if hasattr(args, "statsport") else 8080
343343
self.simulation = args.simulation
344344
self.config_dir = args.config
345345
self.db_dir = args.databases if hasattr(args, "databases") else "/opt/nebula"

0 commit comments

Comments
 (0)