Add support for classful address and /LEN notation in CLI - #1663
Merged
Merged
Conversation
An IPv4 address set without a prefix length is accepted in the
candidate but fails on commit:
Error: Mandatory choice "subnet" data do not exist.
Fill in the prefix length from the address class: /8 for class A, /16
for class B, /24 for class C. Class D and E get no default.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Bump klish-plugin-sysrepo, which splits ADDR/LEN list keys into the
address and its prefix-length:
set interface eth0 ipv4 address 192.168.1.1/24
This also works for IPv6, and with edit and delete.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
troglobit
force-pushed
the
classful-address
branch
from
September 26, 2026 12:54
8737905 to
70c0cd6
Compare
mattiaswal
approved these changes
Sep 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds support for:
and
The latter implies /24 from the classic RFC 719.
Checklist
Tick relevant boxes, this PR is-a or has-a: