Skip to content

fix(netifyd): improvements#1700

Merged
Tbaile merged 5 commits into
mainfrom
netifyd-improvements
Jun 17, 2026
Merged

fix(netifyd): improvements#1700
Tbaile merged 5 commits into
mainfrom
netifyd-improvements

Conversation

@Tbaile

@Tbaile Tbaile commented May 27, 2026

Copy link
Copy Markdown
Collaborator

@Tbaile Tbaile force-pushed the nethsecurity-8.8 branch from f19bdfc to 1ce9f52 Compare June 4, 2026 07:07
@Tbaile Tbaile force-pushed the netifyd-improvements branch from 6b5ddcd to 827321b Compare June 8, 2026 09:44
Base automatically changed from nethsecurity-8.8 to main June 8, 2026 13:29
@Tbaile Tbaile force-pushed the netifyd-improvements branch 3 times, most recently from 6780c5a to 0e05242 Compare June 8, 2026 15:33
@Tbaile Tbaile force-pushed the netifyd-improvements branch 2 times, most recently from 36c37ae to 368b4d3 Compare June 15, 2026 13:29
@Tbaile Tbaile requested a review from gsanchietti June 16, 2026 13:26
@Tbaile Tbaile marked this pull request as ready for review June 16, 2026 13:26
Comment thread packages/netifyd/README.md
@Tbaile Tbaile requested a review from gsanchietti June 17, 2026 10:02

@gsanchietti gsanchietti left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not try it, but take a look if it's better to write the messages to stderr.
Still, the logic is ok for me, feel free to merge as is.

if chain in valid_chains:
firewall_chains.append(chain)
else:
print(f"Warning: invalid firewall_traffic value '{chain}', ignoring. Valid values: {sorted(valid_chains)}")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it's better to print to stderr?

Suggested change
print(f"Warning: invalid firewall_traffic value '{chain}', ignoring. Valid values: {sorted(valid_chains)}")
print(f"Warning: invalid firewall_traffic value '{chain}', ignoring. Valid values: {sorted(valid_chains)}", file=sys.stderr)

else:
print(f"Warning: invalid firewall_traffic value '{chain}', ignoring. Valid values: {sorted(valid_chains)}")
if not firewall_chains:
print("Warning: no valid firewall_traffic chains configured, defaulting to all chains.")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it's better to print to stderr?

Suggested change
print("Warning: no valid firewall_traffic chains configured, defaulting to all chains.")
print("Warning: no valid firewall_traffic chains configured, defaulting to all chains.", file=sys.stderr)

# SPDX-License-Identifier: GPL-2.0-only
#

import os

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import os
import sys

@Tbaile Tbaile merged commit 94b4199 into main Jun 17, 2026
5 of 6 checks passed
@Tbaile Tbaile deleted the netifyd-improvements branch June 17, 2026 10:47
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.

2 participants