Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle YANG type of empty within Telegraf #6

Open
remingtonc opened this issue Jul 9, 2020 · 1 comment
Open

Handle YANG type of empty within Telegraf #6

remingtonc opened this issue Jul 9, 2020 · 1 comment
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@remingtonc
Copy link

remingtonc commented Jul 9, 2020

For some fields they may have a type of empty. These fields do not necessarily have a value, and are represented that way in MDT. Need to determine how to treat - a boolean? What should the default behavior be? Current example is IOS XE interface shutdown leaf - this leaf will simply be present when the state changes. Would need to track each shutdown toggle? If in MDT the field has a name, and now fields, and no *value, then treat as empty?

INFO:root:node_id_str: "blahblah"
subscription_id_str: "106"
encoding_path: "Cisco-IOS-XE-native:native"
msg_timestamp: 1594323085718
data_gpbkv {
  timestamp: 1594323085718
  fields {
    name: "keys"
  }
  fields {
    name: "content"
    fields {
      name: "interface"
      fields {
        name: "GigabitEthernet"
        fields {
          name: "name"
          string_value: "1"
        }
        fields {
          name: "shutdown"
        }
      }
    }
  }
}
@remingtonc remingtonc added bug Something isn't working question Further information is requested labels Jul 9, 2020
@remingtonc
Copy link
Author

To handle, should start with:

  1. Simply emit a value, like 0.
  2. Track XPaths and toggle?

@remingtonc remingtonc self-assigned this Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant