ios-xr / model-driven-telemetry

IOS XR Model Driven Telemetry
30 stars 12 forks source link

"message_keys" in cisco_ios_xr_yang2proto_map.json does not match generated package #3

Closed remingtonc closed 5 years ago

remingtonc commented 5 years ago

The message_keys field is incorrect in some entries. Is cisco_ios_xr_yang2proto_map.json auto-generated? Otherwise can pull request - but hoping this is easy to fix in the map generation instead. :)

e.g. 62x cisco_ios_xr_cdp_oper_cdp_nodes_node_neighbors_details_detail.CdpNeighbor_KEYS is actually generated as cisco_ios_xr_cdp_oper_cdp_nodes_node_neighbors_details_detail.CdpNeighborEntry_KEYS.

type CdpNeighborEntry_KEYS struct {
    NodeName             string   `protobuf:"bytes,1,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"`
    InterfaceName        string   `protobuf:"bytes,2,opt,name=interface_name,json=interfaceName,proto3" json:"interface_name,omitempty"`
    DeviceId             string   `protobuf:"bytes,3,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}