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: b35336b
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: 1deecd8
Choose a head ref
  • 7 commits
  • 7 files changed
  • 3 contributors

Commits on Oct 16, 2025

  1. schema: adds ability to get when context nodes

    This patch adds ability to get context schema node from which when
    contition is evaluated. It also fixes memory leak of original
    when_conditions
    
    Signed-off-by: Stefan Gula <steweg@gmail.com>
    steweg authored and rjarry committed Oct 16, 2025
    Configuration menu
    Copy the full SHA
    74b7d1d View commit details
    Browse the repository at this point in the history
  2. schema: adds libyang.Enum to package

    This patch adds missing Enum class to __init__.py to allow imports by
    library users
    
    Signed-off-by: Stefan Gula <steweg@gmail.com>
    steweg authored and rjarry committed Oct 16, 2025
    Configuration menu
    Copy the full SHA
    2cae616 View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2025

  1. context: fix libyang abort/crash on parse_data validation error

    This crash (abort) is hit when the parsed data does not validate:
    
        python3: ..validation.c:1998: lyd_validate: Assertion `tree && ctx' failed.
        Aborted
    
    The `tree` mentioned in the assert is from last value ffi.NULL that was passed
    in in the `parent is not None` case.
    
    Instead just pass a pointer for a return value regardless of the parent value.
    
    Signed-off-by: Christian Hopps <chopps@labn.net>
    choppsv1 authored and rjarry committed Nov 11, 2025
    Configuration menu
    Copy the full SHA
    ddb7e99 View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2025

  1. context: add option all_implemented and enable_imp_features

    includes the default context options LY_CTX_ALL_IMPLEMENTED and
    LY_CTX_ENABLE_IMP_FEATURES into the ctor of Context class.
    
    Signed-off-by: Esben Laursen <hyber@hyber.dk>
    hyberdk authored and rjarry committed Nov 12, 2025
    Configuration menu
    Copy the full SHA
    4cf965c View commit details
    Browse the repository at this point in the history
  2. log: fix bug with logging

    The arg is added as `str` but the fmt requires `int`, causes exception when
    turning on python logging -- fix.
    
    Signed-off-by: Christian Hopps <chopps@labn.net>
    choppsv1 authored and rjarry committed Nov 12, 2025
    Configuration menu
    Copy the full SHA
    cec98f8 View commit details
    Browse the repository at this point in the history
  3. log: expose ly_temp_log_options with a context manager

    When one wishes to disable logging temporarily (e.g., when calling API functions
    when an error result is expected and OK), libyang provides
    ly_temp_log_options(). We need access to this in python, so export access to the
    function and add a python context (i.e., "with") manager API for using
    it idiomatically as well.
    
    ex usage:
    
    ```
        with temp_log_options(0):
            ly_unwanted_logging_call();
    ```
    
    Signed-off-by: Christian Hopps <chopps@labn.net>
    choppsv1 authored and rjarry committed Nov 12, 2025
    Configuration menu
    Copy the full SHA
    ad059d6 View commit details
    Browse the repository at this point in the history
  4. tests: add a logging test for new temp_log_options API

    Add a new log unit test. Add a test for the newly exposed
    temp_log_options() function as well as the already implemented
    configure_logging() function.
    
    Signed-off-by: Christian Hopps <chopps@labn.net>
    choppsv1 authored and rjarry committed Nov 12, 2025
    Configuration menu
    Copy the full SHA
    1deecd8 View commit details
    Browse the repository at this point in the history
Loading