openconfig / public

Repository for publishing OpenConfig models, documentation, and other material for the community.
Apache License 2.0
894 stars 652 forks source link

[IOS XR] openconfig-telemetry persistent-subscriptions implementation is inconsistent with model #647

Closed nleiva closed 2 months ago

nleiva commented 2 years ago

Just sharing this as FYI as it's not a model issue. I've been hit by this now twice, so I'm sharing it to hopefully save someone time in the future.

This is what the model has:

{
    "openconfig-telemetry:telemetry-system": {
      "subscriptions": {
        "persistent-subscriptions": {
          "persistent-subscription": [
            {
              "name": "BGP",              
              "config": {
                "name": "BGP"
              }
            }
          ]
        }
      }
    }
  }

Versus what Cisco IOS XR implements (changes in key names):

{
    "openconfig-telemetry:telemetry-system": {
      "subscriptions": {
        "persistent": {
          "subscription": [
            {
              "subscription-id": "BGP",
              "config": {
                "subscription-id": "BGP"
              }
            }
          ]
        }
      }
    }
  }

If you want to use ygot for example to configure a Telemetry subscription on an IOS XR device, you'd need to slightly hack the model to account for this difference. Here are the changes requiered to have the keys match: https://github.com/PacktPublishing/Network-Automation-with-Go/commit/98ac674d518f3ea066749d606b71c6f3e929499d.

github-actions[bot] commented 4 months ago

This issue is stale because it has been open 180 days with no activity. If you wish to keep this issue active, please remove the stale label or add a comment, otherwise will be closed in 14 days.