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

Issue with get_config #5

Open
legalla opened this issue Nov 9, 2020 · 16 comments
Open

Issue with get_config #5

legalla opened this issue Nov 9, 2020 · 16 comments

Comments

@legalla
Copy link

legalla commented Nov 9, 2020

get_config fails as session information are not sent when it calls the _get_json_configuration function.
"**self.session_info" has to be used when get_config calls this sub-function

if retrieve in ["running", "all"]:
    config_dict['running'] = self._get_json_configuration("running-config", **self.session_info)
if retrieve in ["startup", "all"]:
    config_dict['startup'] = self._get_json_configuration("startup-config", **self.session_info)
@sleppelm
Copy link

I have the same problem and issues with many of the other get commands. 10.0.5 and 10.0.6. I really wish it worked more consistently with CX because there are many great applications for using Napalm, even with such a limited scope right now. Hoping it gets fixed soon.

alagoutte added a commit to alagoutte/napalm-aruba-cx that referenced this issue Jan 7, 2021
File "napalm-aruba-cx/napalm_aoscx/aoscx.py", line 625, in get_config
  config_dict['running'] = self._get_json_configuration("running-config")
File "napalm-aruba-cx/napalm_aoscx/aoscx.py", line 904, in _get_json_configuration
  target_url = kwargs["url"] + "fullconfigs/{}".format(checkpoint)
KeyError: 'url'

issue also reported on napalm-automation-community#5

Signed-off-by: Alexis La Goutte <[email protected]>
@alagoutte
Copy link
Contributor

push the similar fix on #13 but always get [Object] [Object] on Netbox...

@legalla
Copy link
Author

legalla commented Jan 27, 2021

It has to be troubleshooted on Netbox side as if you call the get_config method using Netbox APIs, everything works fine.

@sleppelm
Copy link

sleppelm commented Jan 27, 2021 via email

@alvinc13
Copy link
Collaborator

Hi @sleppelm , can you please tell me which Aruba switch you're running this against and which software version? Thanks!

@alvinc13 alvinc13 reopened this Jan 27, 2021
@sleppelm
Copy link

sleppelm commented Jan 30, 2021 via email

@a83r
Copy link

a83r commented Apr 23, 2021

Hi,
the issue still is there. We are running 10.06 and when calling get_config I get:

HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
"get_config": {
"error": "Method get_config failed: 'url'"
}
}

@alagoutte
Copy link
Contributor

Hi @a83r, what release of napalm module do you are using ? because it is not yet available on last release (on pip)

@a83r
Copy link

a83r commented Apr 26, 2021

Sorry my bad. I just installed the current dev release of napalm-aruba-cx and the release version of napalm. The netbox version is v2.11.1.
It now shows "[object Object]"
Would be great if it would be implemented, but for us it isn't a critical feature. As long as the LLDP Neighbors work we are very happy.

@alagoutte
Copy link
Contributor

Sorry my bad. I just installed the current dev release of napalm-aruba-cx and the release version of napalm. The netbox version is v2.11.1.
It now shows "[object Object]"
i get also this issue but no yet found time to look why...

@alvinc13
Copy link
Collaborator

Hello,
We are currently working on a major update for the pyaoscx Python libraries which the AOS-CX NAPALM drivers depend on. Once that is released, these NAPALM drivers will get an updated overhaul where I also plan to include some Netmiko usage to expand the driver capabilities and test against the newest Netbox instance. Thanks for your patience.

@a83r
Copy link

a83r commented Apr 29, 2021

@alvinc13 Do you work at HPE/Aruba? If yes maybe you could add a option to the switch os to create read only napalm users, currently only admin users are supported. As for netbox we don't need admin rights.

@alagoutte
Copy link
Contributor

@alvinc13 Do you work at HPE/Aruba? If yes maybe you could add a option to the switch os to create read only napalm users, currently only admin users are supported. As for netbox we don't need admin rights.

What do you are using for authentication on the switch ? only local account ? or RBAC (with RADIUS or TACACS)

@a83r
Copy link

a83r commented May 5, 2021

Currently only local accounts, but we are thinking about using a hpe clearpass appliance for this. But with local accounts it is only possible to use admin accounts.

@alagoutte
Copy link
Contributor

push the similar fix on #13 but always get [Object] [Object] on Netbox...

This part is a Netbox issue and fixed on 3.0.0 ( netbox-community/netbox#7041 )

@alagoutte
Copy link
Contributor

(the issue can be close :))

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

No branches or pull requests

5 participants