summaryrefslogtreecommitdiff
path: root/plugins/modules/vyos_ospfv2.py
diff options
context:
space:
mode:
authoromnom62 <omnom62@outlook.com>2026-09-16 13:24:50 +1000
committeromnom62 <omnom62@outlook.com>2026-09-16 13:24:50 +1000
commit2eb21fd0e2f921ce995464c95eb54554102e8b0e (patch)
tree89afcc9e74ad97ee4491e285892113103aeb8a85 /plugins/modules/vyos_ospfv2.py
parent030e6fa0124e02ef21442f55dd95d668d91eb214 (diff)
downloadrest.vyos-T8989_ospv2_dict_op_refactor.tar.gz
rest.vyos-T8989_ospv2_dict_op_refactor.zip
T8989: ospv2 AI comment fixesT8989_ospv2_dict_op_refactor
Diffstat (limited to 'plugins/modules/vyos_ospfv2.py')
-rw-r--r--plugins/modules/vyos_ospfv2.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/modules/vyos_ospfv2.py b/plugins/modules/vyos_ospfv2.py
index 299233f..efdd2a5 100644
--- a/plugins/modules/vyos_ospfv2.py
+++ b/plugins/modules/vyos_ospfv2.py
@@ -21,8 +21,8 @@ description:
neighbor, parameters, passive_interface, passive_interface_exclude,
redistribute, timers. VyOS's OSPF schema is considerably larger than
even this -- access-list, aggregation, capability, graceful-restart,
- ldp-sync, maximum-paths, per-interface tuning (bandwidth/hello-
- multiplier/network-type/authentication/intervals beyond passive),
+ ldp-sync, maximum-paths, per-interface
+ tuning (bandwidth/hello-multiplier/network-type/authentication/intervals beyond passive),
segment-routing, and summary-address are not modeled here, matching
real gaps in the CLI module's own scope, not oversights.
- >-
@@ -534,11 +534,13 @@ def _vlink_auth_to_device(auth):
device = {}
md5_list = auth.get("md5") or []
if md5_list:
- device["md5"] = {
+ md5_device = {
str(entry["key_id"]): {"md5-key": entry["md5_key"]}
for entry in md5_list
- if entry.get("key_id") is not None
+ if entry.get("key_id") is not None and entry.get("md5_key") is not None
}
+ if md5_device:
+ device["md5"] = md5_device
if auth.get("plaintext_password"):
device["plaintext-password"] = auth["plaintext_password"]
return device