diff options
| author | omnom62 <75066712+omnom62@users.noreply.github.com> | 2026-03-09 05:16:55 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-09 05:16:55 +1000 |
| commit | 755323dec6514b0a32ad18b8697c3cfc712aae24 (patch) | |
| tree | 7cf525f44803e0d5fde1ff4eb2cbc628b9046000 /plugins | |
| parent | 78e02eb42150b16eb8a02699b8ca045c3eaaf644 (diff) | |
| parent | ab0aa4bd1a16b044f061053aa78b0fa865312545 (diff) | |
| download | vyos.vyos-755323dec6514b0a32ad18b8697c3cfc712aae24.tar.gz vyos.vyos-755323dec6514b0a32ad18b8697c3cfc712aae24.zip | |
Merge branch 'main' into dependabot/github_actions/ansible/team-devtools/dot-github/workflows/ah_token_refresh.yml-26.2.0
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/module_utils/network/vyos/facts/static_routes/static_routes.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/module_utils/network/vyos/facts/static_routes/static_routes.py b/plugins/module_utils/network/vyos/facts/static_routes/static_routes.py index 99b3917b..710d91fe 100644 --- a/plugins/module_utils/network/vyos/facts/static_routes/static_routes.py +++ b/plugins/module_utils/network/vyos/facts/static_routes/static_routes.py @@ -164,9 +164,9 @@ class Static_routesFacts(object): elif dis >= 1: nh_info["enabled"] = False for element in nh_list: - if element["forward_router_address"] == nh_info["forward_router_address"]: - if "interface" in nh_info.keys(): - element["interface"] = nh_info["interface"] + if element.get("forward_router_address") == nh_info.get( + "forward_router_address", + ): if "admin_distance" in nh_info.keys(): element["admin_distance"] = nh_info["admin_distance"] if "enabled" in nh_info.keys(): @@ -174,4 +174,5 @@ class Static_routesFacts(object): nh_info = None if nh_info is not None: nh_list.append(nh_info) + nh_info = {} return nh_list |
