Skip to content

NetplanTUI Version 1.0.2

Choose a tag to compare

@pyr0hax pyr0hax released this 08 Dec 10:15
· 13 commits to main since this release

NetplanTUI – Version 1.0.2

Networking, Validation & UI Enhancements

IP & CIDR Handling

  • Added robust IPv4 and IPv6 validation for both single IPs and CIDR notation.
  • Supports host-address CIDRs (e.g., 192.168.0.1/24) and automatically normalizes them to proper network prefixes (e.g., 192.168.0.0/24) in YAML output.
  • Invalid input is preserved and displayed with inline token highlighting, allowing users to fix only the incorrect parts.

IPv4 / IPv6 Mode Support

  • Introduced an IP Mode toggle: IPv4, IPv6, or Both.
  • YAML generation adapts based on the selected mode:
    • Correctly sets dhcp4 / dhcp6
    • Outputs only the relevant address and gateway fields
    • Adds support for separate gateway4 and gateway6 when both protocols are enabled.

Nameserver Validation

  • Nameservers are individually validated as IPv4/IPv6 addresses.
  • Supports comma-separated lists with inline highlighting for invalid entries.

Interface Discovery

  • Detects system interfaces using getifaddrs.
  • Interfaces are shown in a selectable list, simplifying the “Interface Name” input.

DHCP-Aware UI

  • When DHCP is enabled, address/gateway/nameserver fields are automatically hidden to reduce clutter.

Help Menu

  • Added an in-app Help screen explaining:
    • Field purposes
    • CIDR rules
    • Validation behavior
    • YAML generation logic

YAML Generation Improvements

  • YAML preview now includes:
    • dhcp4 / dhcp6
    • gateway4 / gateway6
    • Normalized CIDR addresses
    • Validated nameservers block
  • Preview displayed in the TUI before writing config files.