Skip to content

Add yang check#1415

Merged
mattiaswal merged 6 commits intomainfrom
add-yang-check
Feb 27, 2026
Merged

Add yang check#1415
mattiaswal merged 6 commits intomainfrom
add-yang-check

Conversation

@mattiaswal
Copy link
Contributor

Description

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):

@mattiaswal mattiaswal added the ci:main Build default defconfig, not minimal label Feb 24, 2026
@mattiaswal mattiaswal force-pushed the add-yang-check branch 2 times, most recently from a4a8635 to 4b8245c Compare February 25, 2026 05:17
@mattiaswal mattiaswal requested a review from troglobit February 25, 2026 05:32
mattiaswal and others added 6 commits February 27, 2026 08:35
Add input validation patterns to string-type leaves in container,
firewall, DHCP, and interface YANG models.  Also use mkdtemp() for
temporary key files in keystore.

Signed-off-by: Mattias Walström <lazzer@gmail.com>
This is a bug introduced in sysrepo 4.x
One change since -rc1 which was to drop shutdown debugging. For a full
ChangeLog see https://github.com/finit-project/finit/releases/tag/4.16

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
curl's SCP/SFTP backend (libssh2) does not support interactive password
prompting — it fails with an authentication error unless credentials are
supplied non-interactively.

Replace the curl path for SSH URIs with native scp(1), which inherits
the TTY and prompts the user for a password as expected.  Both scp://
and sftp:// URIs are handled by parsing the URI into a [user@]host:path
argument.  Port is extracted if present and passed via -P.  If no user
is embedded in the URI, the -u flag value (remote_user) is used instead.
Host-key verification is skipped with -o StrictHostKeyChecking=no, the
same trade-off already made by the test framework.

When the destination URI ends with '/', a meaningful remote filename is
derived from the source: the datastore's on-disk filename (e.g.,
startup-config.cfg), the datastore short-name for in-memory stores, or
the source file's own basename for plain file copies.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Copy link
Contributor

@troglobit troglobit left a comment

Choose a reason for hiding this comment

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

Looks good! I've tested by upgrading on a system with containers and noticed no strange behavior, so very nice clean work on this!

I've rebased on latest main and snuck in two commits of my own:

  • Update Finit to GA release, fixes shutdown debug messages
  • Fix CLI copy command regression in scp/sftp to remote

@mattiaswal mattiaswal merged commit f5ad6bc into main Feb 27, 2026
8 checks passed
@mattiaswal mattiaswal deleted the add-yang-check branch February 27, 2026 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:main Build default defconfig, not minimal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants