Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: CESNET/libyang-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.3.0
Choose a base ref
...
head repository: CESNET/libyang-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 6 commits
  • 13 files changed
  • 2 contributors

Commits on Jan 5, 2026

  1. cffi: allows to usage of libyang v4

    This patch adjust cffi definitions and also all associated functions
    based on libyang v4.
    
    Closes: #160
    Signed-off-by: Stefan Gula <steweg@gmail.com>
    Signed-off-by: Jeremie Leska <jeremie.leska@6wind.com>
    Signed-off-by: Samuel Gauthier <samuel.gauthier@6wind.com>
    steweg authored and samuel-gauthier committed Jan 5, 2026
    Configuration menu
    Copy the full SHA
    0a4b09f View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2026

  1. schema: remove error after lyd_value_validate_dflt calls

    libyang returns the realtype field when the store callback return code
    is LY_SUCCESS and LY_EINCOMPLETE.
    Don't raise an error when lyd_value_validate_dflt returns
    LY_EINCOMPLETE. The function can then use the val_type_cdata field.
    Add a leafref with a default value to yolo-nodetypes.yang.
    In this case, lyd_value_validate_dflt returns LY_EINCOMPLETE.
    In test_schema.py, check that the default function returns a correct str
    value.
    
    Link: https://github.com/CESNET/libyang/blob/master/src/tree_data_common.c#L682
    Signed-off-by: Jeremie Leska <jeremie.leska@6wind.com>
    jeremie6wind authored and samuel-gauthier committed Jan 15, 2026
    Configuration menu
    Copy the full SHA
    d3a2f35 View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2026

  1. check: fix Fixes trailer regex

    The sed command with the regex fails to keep the sha1 and remove the
    commit title from the 'Fixes' trailer. Then the git command fails to
    find the commit. A commit with 'Fixes' can not be validated by the
    script.
    Fix the regex to extract the sha1.
    
    Signed-off-by: Jeremie Leska <jeremie.leska@6wind.com>
    jeremie6wind authored and samuel-gauthier committed Feb 9, 2026
    Configuration menu
    Copy the full SHA
    e175b5e View commit details
    Browse the repository at this point in the history
  2. context: remove debug print

    This log was introduced for debug. Remove it.
    
    Fixes: 0a4b09f ("cffi: allows to usage of libyang v4")
    Signed-off-by: Jeremie Leska <jeremie.leska@6wind.com>
    jeremie6wind authored and samuel-gauthier committed Feb 9, 2026
    Configuration menu
    Copy the full SHA
    f1898d5 View commit details
    Browse the repository at this point in the history
  3. schema: get features from compiled module

    It is not always possible to get the features from the parsed module.
    It is the case for a module obtained from a sysrepo printed context.
    Introduce compiled_enabled_features that returns the features from
    the compiled object.
    
    Signed-off-by: Jeremie Leska <jeremie.leska@6wind.com>
    jeremie6wind authored and samuel-gauthier committed Feb 9, 2026
    Configuration menu
    Copy the full SHA
    6c0727f View commit details
    Browse the repository at this point in the history

Commits on Feb 20, 2026

  1. schema: handle None parsed objects in type creation

    In libyang4, when dealing with printed contexts, cdata_parsed is not
    set.
    Check it before using it to get the node type.
    
    Fixes: 0a4b09f ("cffi: allows to usage of libyang v4")
    Signed-off-by: Jeremie Leska <jeremie.leska@6wind.com>
    jeremie6wind authored and samuel-gauthier committed Feb 20, 2026
    Configuration menu
    Copy the full SHA
    a69eb4a View commit details
    Browse the repository at this point in the history
Loading