Skip to content
This repository has been archived by the owner on Sep 17, 2019. It is now read-only.

Added a new method for ISIS adjacency #307

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

muffizone
Copy link

@muffizone muffizone commented Sep 9, 2017

Pull request for get_isis_adjacencies method

napalm-automation/napalm-iosxr/pull/146

@coveralls
Copy link

coveralls commented Sep 9, 2017

Coverage Status

Coverage increased (+0.08%) to 61.099% when pulling cf152c9 on muffadal-presswala:get_isis_neighbor into e21f10f on napalm-automation:develop.

* circuit_type (string)
* network_type (string)
* neighbor_state (string)
* ietf_nsf_flag (int)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ietf_nsf_flag will change type to bool and not int

@coveralls
Copy link

coveralls commented Sep 11, 2017

Coverage Status

Coverage increased (+0.08%) to 61.099% when pulling 9ad4a34 on muffadal-presswala:get_isis_neighbor into e21f10f on napalm-automation:develop.

@coveralls
Copy link

coveralls commented Sep 11, 2017

Coverage Status

Coverage increased (+0.08%) to 61.099% when pulling 39b5a04 on muffadal-presswala:get_isis_neighbor into e21f10f on napalm-automation:develop.

@dbarrosop
Copy link
Member

LGTM, @napalm-automation/council any comments?

@dbarrosop
Copy link
Member

@muffadal-presswala I think you mentioned already you have some implementation ready as well, feel free to push it linking the PR to this one for reference. We usually like seeing a working implementation before merging new getters.

@dbarrosop
Copy link
Member

Disregard my last commend, I just saw you already did, linking for reference: napalm-automation/napalm-iosxr/pull/146

@coveralls
Copy link

coveralls commented Sep 12, 2017

Coverage Status

Coverage increased (+0.2%) to 61.183% when pulling b9ae673 on muffadal-presswala:get_isis_neighbor into e21f10f on napalm-automation:develop.

@muffizone
Copy link
Author

Guys,

I was wondering if we need another method like get_isis_adjacencies_detail(). The plan was to add three additional keys in the neighbor attributes.

Same XML request is used to retrieve output for both of them.

Brief method output:

{system_id:
  {'interface_name': interface_name,
   'neighbor_state': neighbor_state,
   'circuit_type': circuit_type,
   'ietf_nsf_flag': ietf_nsf_flag,
   'network_type': network_type,
  }
}

Detailed method output

{system_id:
  {'interface_name': interface_name,
   'neighbor_state': neighbor_state,
   'circuit_type': circuit_type,
   'ietf_nsf_flag': ietf_nsf_flag,
   'network_type': network_type,
>    'neighbor_area': neighbor_area,
>    'neighbor_uptime': neighbor_uptime,
>    'topologies_supported': topologies_supported

  }
}

@dbarrosop
Copy link
Member

Given the base information is the same I'd be inclined to only have the detailed version. Unless the detailed version has a huge cost in terms of querying the devices.

@muffizone
Copy link
Author

muffizone commented Sep 20, 2017 via email

@dbarrosop
Copy link
Member

Then, unless someone has strong opinions about it I'd suggest sticking with the detailed one only.

@muffizone
Copy link
Author

muffizone commented Sep 20, 2017 via email

@muffizone
Copy link
Author

I have updated the method with additional output

@mirceaulinic
Copy link
Member

Hi all - sorry for chiming in so late here. With the risk of being a PITA, wouldn't be better to return a dictionary with the same, but structured as per the openconfig-isis YANG model? This way we are sure we cover the fields defined there, we don't use a structure that we designed, and this could very well help with the napalm-yang too. Thoughts?

@muffizone
Copy link
Author

Sure, sounds like a good idea.

Let me have a look and see what needs to change

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants