Skip to content

Commit

Permalink
Include plugin interfaces in interfaces_assignment module (puzzle#129)
Browse files Browse the repository at this point in the history
* Include plugin interfaces in interfaces_assignment module

* Add plugin interfaces bugfix changelog
  • Loading branch information
DonGiovanni83 authored May 22, 2024
1 parent 1386cf9 commit 0fe68e6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfixes:
- interfaces_assignments - Include plugin interfaces such as VLAN, VXLANs etc. in validations.
7 changes: 7 additions & 0 deletions plugins/module_utils/interfaces_assignments_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,16 @@ def get_interfaces(self) -> List[InterfaceAssignment]:
"php_requirements"
]
php_command = """
/* get physical network interfaces */
foreach (get_interface_list() as $key => $item) {
echo $key.',';
}
/* get virtual network interfaces */
foreach (plugins_devices() as $item){
foreach ($item["names"] as $key => $if ) {
echo $key.',';
}
}
"""

# run php function
Expand Down

0 comments on commit 0fe68e6

Please sign in to comment.