Skip to content

Refactor zone combining code#1550

Open
AndersBlomdell wants to merge 1 commit intofirewalld:mainfrom
AndersBlomdell:main
Open

Refactor zone combining code#1550
AndersBlomdell wants to merge 1 commit intofirewalld:mainfrom
AndersBlomdell:main

Conversation

@AndersBlomdell
Copy link
Copy Markdown
Contributor

core/fw_config.py:
move combined zone logic to 'add_zone' method
core/fw.py:
in '_start_copy_config_to_runtime' don't copy zones with '/' in name
remove combined zone logic from '_loader_zones'
use 'list_zone_files' to find what files to load
core/io/functions.py:
add 'list_xml_files' function
add 'list_zone_files' function
rewrite 'check_on_disk_config' to use 'list_xml_files' and
'list_zone_files'
server/config.py:
don't return combined zones in 'getZoneNames'

@AndersBlomdell
Copy link
Copy Markdown
Contributor Author

Fixes issue #1353

@AndersBlomdell AndersBlomdell force-pushed the main branch 2 times, most recently from 0156b07 to 1b91901 Compare April 14, 2026 15:30
@AndersBlomdell
Copy link
Copy Markdown
Contributor Author

Would be nice if 'black' was run with '--diff', since black does not signal any errors on my machine.

Refactor zone combining code

core/fw_config.py
        move combined zone logic to 'add_zone' method
        add 'select' argument to 'get_zone' and 'get_zones'
core/fw.py
        in '_start_copy_config_to_runtime' don't copy zones with '/' in name
        remove combined zone logic from '_loader_zones'
        use 'list_zone_files' to find what files to load
core/io/functions.py
        add 'list_xml_files' function
        add 'list_zone_files' function
        rewrite 'check_on_disk_config' to use 'list_xml_files' and
                'list_zone_files'
server/config.py
        don't return combined zones in 'getZoneNames'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant