Skip to content

Conversation

@troglobit
Copy link
Contributor

Description

Fixes:

Example:

admin@ix-00-00-00:/> configure 
admin@ix-00-00-00:/config/> set interface br0
admin@ix-00-00-00:/config/> set interface e1 bridge-port bridge br0 
admin@ix-00-00-00:/config/> set interface e1 ipv4 address 1.2.3.4 prefix-length 24
admin@ix-00-00-00:/config/> leave
Error: Bridge ports cannot have IP addresses configured. (path "/ietf-interfaces:interfaces/interface[name='e1']/infix-interfaces:bridge-port")
Error: Invalid candidate configuration
admin@ix-00-00-00:/config/> 

Checklist

Tick relevant boxes, this PR is-a or has-a:

  • Bugfix
    • Regression tests
    • ChangeLog updates (for next release)
  • Feature
    • YANG model change => revision updated?
    • Regression tests added?
    • ChangeLog updates (for next release)
    • Documentation added?
  • Test changes
    • Checked in changed Readme.adoc (make test-spec)
    • Added new test to group Readme.adoc and yaml file
  • Code style update (formatting, renaming)
  • Refactoring (please detail in commit messages)
  • Build related changes
  • Documentation content changes
    • ChangeLog updated (for major changes)
  • Other (please describe):

Addresses disk space issues in GitHub Actions for generic x86_64 builds
by removing unused tools (Android SDK, .NET, Docker images, etc.) before
the build starts.  This frees up ~30GB of space.

Fixes #1210

Signed-off-by: Joachim Wiberg <[email protected]>
A valid DHCP server setup for a subnet is one of pool and/or at least one
static host entry/lease.  If pool is enabled the pool must have a start
and an end address.

To allow setting up a DHCP server with no pool and at least one static host
entry/lease, we make the pool a presence container, otherwise the pool will
always be set and trigger the below inference.

When an interactive CLI/Web user enables the address pool we infer a default
range .100-.250, but only for /24, C-class networks.  This is what most users
know and expect.

The YANG model now validates that:
- If an address pool is created, both start-address and end-address must be set
- Each subnet must have either a pool or at least one static host entry
- The pool container is now a presence container, so "no pool" fully deletes it

Fixes #1121

Signed-off-by: Joachim Wiberg <[email protected]>
Bridge ports should not have IP addresses configured. The IP address
should be configured on the bridge interface itself, not its member ports.

Add YANG must expression to enforce this rule at configuration time.

Fixes #1122

Signed-off-by: Joachim Wiberg <[email protected]>
@troglobit troglobit requested a review from mattiaswal October 28, 2025 18:42
@troglobit troglobit changed the title Miscellaneous fixes for DHCP server, bridge ports, and CI. Miscellaneous fixes for DHCP server, bridge ports, and CI Oct 28, 2025
Copy link
Contributor

@mattiaswal mattiaswal left a comment

Choose a reason for hiding this comment

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

👍

@troglobit troglobit merged commit b72fb8f into main Oct 28, 2025
7 checks passed
@troglobit troglobit deleted the misc-fixes branch October 28, 2025 19:43
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.

3 participants