Comparing main...feature/yang-validation-module · osism/python-osism · GitHub
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: osism/python-osism
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: osism/python-osism
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: feature/yang-validation-module
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 4 commits
  • 4 files changed
  • 1 contributor

Commits on Nov 9, 2025

  1. Add YANG validation module for SONiC configurations

    - Implement validate_sonic_config() function with yanglint integration
    - Add ValidationResult dataclass for structured output
    - Support automatic YANG model discovery
    - Handle validation errors with clear messaging
    berendt committed Nov 9, 2025
    Configuration menu
    Copy the full SHA
    0837fcb View commit details
    Browse the repository at this point in the history
  2. AGENTTASK-002: Integrate YANG validation into sync workflow

    - Add validation call before save_config_to_netbox()
    - Implement configurable validation modes (strict/warn/disabled)
    - Add environment variables for validation control
    - Handle validation failures with appropriate logging
    - Document validation configuration in Containerfile
    berendt committed Nov 9, 2025
    Configuration menu
    Copy the full SHA
    655ca21 View commit details
    Browse the repository at this point in the history
  3. AGENTTASK-003: Add validation status to Netbox journal entries

    - Enhanced journal comments with validation status
    - Added validation errors and warnings to audit trail
    - Updated save_config_to_netbox() with optional validation_result
    - Improved configuration change documentation
    berendt committed Nov 9, 2025
    Configuration menu
    Copy the full SHA
    95544eb View commit details
    Browse the repository at this point in the history
  4. Update YANG models default path to /etc/sonic/yang_models

    Changed default YANG models directory from relative path (files/sonic/yang_models)
    to absolute production path (/etc/sonic/yang_models) in validator, sync, and container
    configurations. This resolves path resolution issues in production deployments.
    
    Signed-off-by: Christian Berendt <berendt@osism.tech>
    berendt committed Nov 9, 2025
    Configuration menu
    Copy the full SHA
    4768a21 View commit details
    Browse the repository at this point in the history
Loading