We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14a1065 commit 66d5cb8Copy full SHA for 66d5cb8
plugins/module_utils/netbox_utils.py
@@ -716,6 +716,20 @@ def _build_query_params(
716
else:
717
query_dict.update({"device": module_data["device"]})
718
719
+ elif (
720
+ parent == "ip_address"
721
+ and "assigned_object" in matches
722
+ and module_data.get("assigned_object_type")
723
+ ):
724
+ if module_data["assigned_object_type"] == "virtualization.vminterface":
725
+ query_dict.update(
726
+ {"vminterface_id": module_data.get("assigned_object_id")}
727
+ )
728
+ elif module_data["assigned_object_type"] == "dcim.interface":
729
730
+ {"interface_id": module_data.get("assigned_object_id")}
731
732
+
733
elif parent == "virtual_chassis":
734
query_dict = {"q": self.module.params["data"].get("master")}
735
0 commit comments