diff --git a/generate-conf.py b/generate-conf.py index 992e2b6..37c46a3 100644 --- a/generate-conf.py +++ b/generate-conf.py @@ -278,6 +278,8 @@ def gen_conf_re2o(re2o_config, header, modules): interfaces.sort(key=lambda x: x["number"]) radius_key = re2o_config.get("get_radius_key_value") radius_servers = [ {"ip": i, "secret": radius_key } for i in mgmt_utils["radius_servers"]["ipv4"] + mgmt_utils["radius_servers"]["ipv6"]] + if radius_servers == []: + radius_servers = [ {"ip": i, "secret": radius_key } for i in re2o_config["get_radius_servers"]["ipv4"] + mgmt_utils["radius_servers"]["ipv6"]] config_dict = { "header": header, "modules": modules,