3 Commits

Author SHA1 Message Date
Desert Gamer
1b10014eb8
feat: optimize script and add tag formatting options
- Add configurable IP tag format (full, last_octet, last_two_octets)
- Fix IP CIDR matching to respect network mask correctly
- Suppress AppArmor warnings by redirecting error outputs
- Optimize status check functions with unified check_status_changed() function
- Fix handling of containers and VMs with update_all_tags() function
- Improve tag filtering to handle both full and partial IP formats
- Add support for directory creation during updates
- Convert all comments to English for better maintainability
- Implement more robust error handling for system commands

This update makes the script more efficient, customizable, and eliminates 
error output from AppArmor warnings while ensuring proper CIDR validation.
2025-04-06 17:14:28 +03:00
Desert Gamer
39362c76c3
fix(script): resolve parameter verification errors
- Add new update_all_tags() function to properly handle container/VM lists
- Fix missing vmid parameter error that was causing "type check ('integer') failed"
- Replace direct update_tags calls with update_all_tags calls in check() function
- Ensure proper iteration over all containers and VMs during tag updates
- Simplify conditional logic for force updates
2025-04-06 16:35:04 +03:00
Desert Gamer
e0a8b4dda2
Create add-iptag.sh 2025-03-31 17:01:33 +03:00