napalm-automation-community / napalm-aruba-cx

NAPALM driver for Aruba AOS-CX
Apache License 2.0
14 stars 7 forks source link

Issues with basic gets #1

Closed sleppelm closed 4 years ago

sleppelm commented 4 years ago

Hi, I get this error or something similar for every get I try to run. I'm using a basic test script to test on our CX gear. Any suggestions would help greatly! Thanks! On 10.0.5.0011. The rest session is connecting.

Thanks!

Traceback (most recent call last): File "Test-Napalm.py", line 12, in print(json.dumps(device.get_facts(), sort_keys=True)) File "/home/netauto/.local/lib/python3.8/site-packages/napalm_aoscx/aoscx.py", line 123, in get_facts 'serial_number': productinfo['product_info']['serial_number'], KeyError: 'product_info'

alvinc13 commented 4 years ago

Hello, I've found the issue is due to a broken URI in a recent pyaoscx package update. I've created an issue here: https://github.com/aruba/pyaoscx/issues/2 I'm working with the team to get this fixed in a release today. Once that is updated, I'll test and close the issue.

sleppelm commented 4 years ago

Excellent thank you for the update!

On Wed, Sep 30, 2020, 9:35 AM alvinc13 notifications@github.com wrote:

Hello, I've found the issue is due to a broken URI in a recent pyaoscx package update. I've created an issue here: aruba/pyaoscx#2 https://github.com/aruba/pyaoscx/issues/2 I'm working with the team to get this fixed in a release today. Once that is updated, I'll test and close the issue.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/napalm-automation-community/napalm-aruba-cx/issues/1#issuecomment-701469665, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHNNMLUXX5VBGYHBRX5NAVDSINF5ZANCNFSM4RXYG7WQ .

alvinc13 commented 4 years ago

pyaoscx version 0.2.2 now has the fix in place. In my own tests I no longer run into the issue. @sleppelm could you please verify whether you're still running into it? Thanks!

sleppelm commented 4 years ago

I will check it out and get back to you as soon as I can. Thanks!

On Wed, Sep 30, 2020 at 10:40 AM alvinc13 notifications@github.com wrote:

pyaoscx version 0.2.2 now has the fix in place. In my own tests I no longer run into the issue. @sleppelm https://github.com/sleppelm could you please verify whether you're still running into it? Thanks!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/napalm-automation-community/napalm-aruba-cx/issues/1#issuecomment-701507726, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHNNMLVRZ3HUINWRU3LJBX3SINNQ7ANCNFSM4RXYG7WQ .

sleppelm commented 4 years ago

Works great. Thank you for your efforts!

On Wed, Sep 30, 2020 at 10:58 AM Scott sleppelm@gmail.com wrote:

I will check it out and get back to you as soon as I can. Thanks!

On Wed, Sep 30, 2020 at 10:40 AM alvinc13 notifications@github.com wrote:

pyaoscx version 0.2.2 now has the fix in place. In my own tests I no longer run into the issue. @sleppelm https://github.com/sleppelm could you please verify whether you're still running into it? Thanks!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/napalm-automation-community/napalm-aruba-cx/issues/1#issuecomment-701507726, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHNNMLVRZ3HUINWRU3LJBX3SINNQ7ANCNFSM4RXYG7WQ .

sleppelm commented 4 years ago

Hi, I appreciate your help with the previous issue. I wanted to get some clarification. I see all the get commands that are supported as of right now on napalm aos cx, but are configuration commands supported? I get a NotImplementedError. I'm assuming there isn't full support yet for this?

Thanks!

[image: image.png] [image: image.png]

On Thu, Oct 1, 2020 at 9:26 AM Scott sleppelm@gmail.com wrote:

Works great. Thank you for your efforts!

On Wed, Sep 30, 2020 at 10:58 AM Scott sleppelm@gmail.com wrote:

I will check it out and get back to you as soon as I can. Thanks!

On Wed, Sep 30, 2020 at 10:40 AM alvinc13 notifications@github.com wrote:

pyaoscx version 0.2.2 now has the fix in place. In my own tests I no longer run into the issue. @sleppelm https://github.com/sleppelm could you please verify whether you're still running into it? Thanks!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/napalm-automation-community/napalm-aruba-cx/issues/1#issuecomment-701507726, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHNNMLVRZ3HUINWRU3LJBX3SINNQ7ANCNFSM4RXYG7WQ .

alvinc13 commented 4 years ago

Hi, I appreciate your help with the previous issue. I wanted to get some clarification. I see all the get commands that are supported as of right now on napalm aos cx, but are configuration commands supported? I get a NotImplementedError. I'm assuming there isn't full support yet for this? Thanks! [image: image.png] [image: image.png] On Thu, Oct 1, 2020 at 9:26 AM Scott @.> wrote: Works great. Thank you for your efforts! On Wed, Sep 30, 2020 at 10:58 AM Scott @.> wrote: > I will check it out and get back to you as soon as I can. Thanks! > > On Wed, Sep 30, 2020 at 10:40 AM alvinc13 @.***> > wrote: > >> pyaoscx version 0.2.2 now has the fix in place. In my own tests I no >> longer run into the issue. @sleppelm https://github.com/sleppelm >> could you please verify whether you're still running into it? Thanks! >> >> — >> You are receiving this because you were mentioned. >> Reply to this email directly, view it on GitHub >> <#1 (comment)>, >> or unsubscribe >> https://github.com/notifications/unsubscribe-auth/AHNNMLVRZ3HUINWRU3LJBX3SINNQ7ANCNFSM4RXYG7WQ >> . >> >

The configuration commands are currently being worked on, but due to the API not being to handle CLI, a separate transport structure would need to be implemented (such as NetMiko). We are looking to add this in future releases though.

sleppelm commented 4 years ago

Okay thanks for letting me know. So CLI commands will be an upcoming aos cx feature?

On Mon, Oct 19, 2020, 5:12 PM alvinc13 notifications@github.com wrote:

Hi, I appreciate your help with the previous issue. I wanted to get some clarification. I see all the get commands that are supported as of right now on napalm aos cx, but are configuration commands supported? I get a NotImplementedError. I'm assuming there isn't full support yet for this? Thanks! [image: image.png] [image: image.png] … <#m-2711095776451907438> On Thu, Oct 1, 2020 at 9:26 AM Scott @.> wrote: Works great. Thank you for your efforts! On Wed, Sep 30, 2020 at 10:58 AM Scott @.> wrote: > I will check it out and get back to you as soon as I can. Thanks! > > On Wed, Sep 30, 2020 at 10:40 AM alvinc13 @.***> > wrote: > >> pyaoscx version 0.2.2 now has the fix in place. In my own tests I no >> longer run into the issue. @sleppelm https://github.com/sleppelm https://github.com/sleppelm

could you please verify whether you're still running into it? Thanks! >> — >> You are receiving this because you were mentioned. >> Reply to this email directly, view it on GitHub >> <#1 (comment) https://github.com/napalm-automation-community/napalm-aruba-cx/issues/1#issuecomment-701507726>, or unsubscribe >> https://github.com/notifications/unsubscribe-auth/AHNNMLVRZ3HUINWRU3LJBX3SINNQ7ANCNFSM4RXYG7WQ . >> >

The configuration commands are currently being worked on, but due to the API not being to handle CLI, a separate transport structure would need to be implemented (such as NetMiko). We are looking to add this in future releases though.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/napalm-automation-community/napalm-aruba-cx/issues/1#issuecomment-712491324, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHNNMLQQIBH2ZCSTBLHG65LSLTBWHANCNFSM4RXYG7WQ .

alvinc13 commented 4 years ago

To clarify, I meant that we are looking to add the configuration NAPALM methods in future napalm-aruba-cx releases. I can't speak to if/when CLI commands via API will be an upcoming AOS-CX feature.

sleppelm commented 3 years ago

Hi,

I'm having issues with a few Napalm commands. get_config, get_arp_table, get_interfaces are a few. It seems many of the get commands are broken in 10.05 and 10.06. get_facts works. I'm trying to use this for netbox and a few other things to pull information from the switch.

Thanks!

On Mon, Oct 19, 2020 at 5:22 PM alvinc13 notifications@github.com wrote:

To clarify, I meant that we are looking to add the configuration NAPALM methods in future napalm-aruba-cx releases. I can't speak to if/when CLI commands via API will be an upcoming AOS-CX feature.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/napalm-automation-community/napalm-aruba-cx/issues/1#issuecomment-712494575, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHNNMLVCN47I33OFAW6N4NTSLTC4BANCNFSM4RXYG7WQ .