RANCID API

RWS does not support inventory for ios-xr devices

Details

  • Type: Enhancement Enhancement
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

Any way to get inventory working for ios-xr devices the way it works with ios devices?

Error: RWS GET failed for URL: http://monitor01.77mowat506.beanfield.com/rws/rancid/groups/Network/bfr01.151front711/configs/1.3/inventory Status: Internal Server Error (500) - Unsupported Feature

Activity

Hide
Antonio Russo added a comment -

This is well known.
I worked on a project where we were able to perform inventory on xr devices....but at that time there wasno cisco-xr support
specific in rancid so that we where doing the inventory using the default cisco profile provided by rancid.

Show
Antonio Russo added a comment - This is well known. I worked on a project where we were able to perform inventory on xr devices....but at that time there wasno cisco-xr support specific in rancid so that we where doing the inventory using the default cisco profile provided by rancid.
Hide
Jason Lixfeld added a comment -

If you need access to XR configs, let me know and I will be happy to provide them to assist however I can towards adding this functionality.

Show
Jason Lixfeld added a comment - If you need access to XR configs, let me know and I will be happy to provide them to assist however I can towards adding this functionality.
Hide
Antonio Russo added a comment -

you should find the following array in rancid.rws:

array set TABLE_INVENTORY_PARSER { "cisco" "::RANCID::InventoryParser_cisco" "juniper" "::RANCID::InventoryParser_juniper" }

And try to add the xr inventory....
so you should at the end substitute that code with the following...

array set TABLE_INVENTORY_PARSER { "cisco" "::RANCID::InventoryParser_cisco" "cisco-xr" "::RANCID::InventoryParser_cisco" "juniper" "::RANCID::InventoryParser_juniper" }

Try and let me know!

Show
Antonio Russo added a comment - you should find the following array in rancid.rws: array set TABLE_INVENTORY_PARSER { "cisco" "::RANCID::InventoryParser_cisco" "juniper" "::RANCID::InventoryParser_juniper" } And try to add the xr inventory.... so you should at the end substitute that code with the following... array set TABLE_INVENTORY_PARSER { "cisco" "::RANCID::InventoryParser_cisco" "cisco-xr" "::RANCID::InventoryParser_cisco" "juniper" "::RANCID::InventoryParser_juniper" } Try and let me know!
Hide
Antonio Russo added a comment -

try to attach a configuration file i'd like to try if it works....

Show
Antonio Russo added a comment - try to attach a configuration file i'd like to try if it works....
Hide
Jason Lixfeld added a comment -

Worked like a charm, Antonio.

I'll send you a config, but I don't want to attach it here. I don't want it to be public domain. If you have a place I can send it, I will.

Show
Jason Lixfeld added a comment - Worked like a charm, Antonio. I'll send you a config, but I don't want to attach it here. I don't want it to be public domain. If you have a place I can send it, I will.
Hide
Antonio Russo added a comment -

well, I guess that my trouble is if I can post the changes to rancid.rws!
If you say that it works I can easily commit the changes....

Show
Antonio Russo added a comment - well, I guess that my trouble is if I can post the changes to rancid.rws! If you say that it works I can easily commit the changes....
Hide
Antonio Russo added a comment -

fixed in rancid-api 6c1a2e6..2bc23bb master -> master

Show
Antonio Russo added a comment - fixed in rancid-api 6c1a2e6..2bc23bb master -> master

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: