Closed m-krausch closed 1 year ago
duplicate of #355 -> for now you do need to use the mandatory parameters at the root level (... and yeah they are useless..)
Dear all,
yep, tested it and now it works:
@.***:/home/mkrausch/ARISTA_ANTA# anta --username cvpadmin --password pAssword --inventory inventory.yml get from-cvp -ip 10.83.30.160 -u cvpadmin -p pAssword -d cvp_inventory [14:12:41] INFO Getting auth token from 10.83.30.160 for user cvpadmin
commands.py:46
[14:12:42] INFO Creating inventory folder /home/mkrausch/ARISTA_ANTA/cvp_inventory commands.py:53 <cvprac.cvp_client.CvpClient object at 0x7fdec0fab2b0> WARNING Using the new api_token parameter. This will override usage of the cvaas_token parameter if both are provided. This is because api_token and cvp_client.py:350 cvaas_token parameters are for the same use case and api_token is more generic INFO Connected to CVP 10.83.30.160
commands.py:63
INFO Getting full inventory from 10.83.30.160
commands.py:68
[14:12:43] INFO Version 2023.1.2
cvp_client.py:213
INFO Setting API version to v8
cvp_client.py:236
[14:12:50] INFO * adding entry for DC1-LEAF1A
utils.py:45
INFO * adding entry for DC1-SPINE1
utils.py:45
INFO * adding entry for DC1-SPINE2
utils.py:45
INFO * adding entry for vEOS2-MLAG1
utils.py:45
INFO * adding entry for vEOS3-MLAG2
utils.py:45
INFO * adding entry for DC1-LEAF3B
utils.py:45
INFO * adding entry for MSS-G-Host-2
utils.py:45
INFO * adding entry for MSS-G-Router
utils.py:45
INFO * adding entry for DC1-LEAF1B
utils.py:45
INFO * adding entry for MSS-G-Host-1
utils.py:45
INFO * adding entry for DC1-LEAF2B
utils.py:45
INFO * adding entry for DC1-LEAF3A
utils.py:45
INFO * adding entry for vEOS1-MLAG1
utils.py:45
INFO * adding entry for vEOS4-MLAG2
utils.py:45
INFO * adding entry for DC1-LEAF2A
utils.py:45
INFO Inventory file has been created in
/home/mkrausch/ARISTA_ANTA/cvp_inventory/inventory.yml utils.py:52 @.***:/home/mkrausch/ARISTA_ANTA#
Thanks & kind regards
Martin
On Fri, Nov 10, 2023 at 1:54 PM Guillaume Mulocher @.***> wrote:
duplicate of #355 https://github.com/arista-netdevops-community/anta/issues/355 -> for now you do need to use the mandatory parameters at the root level (... and yeah they are useless..)
— Reply to this email directly, view it on GitHub https://github.com/arista-netdevops-community/anta/issues/450#issuecomment-1805682045, or unsubscribe https://github.com/notifications/unsubscribe-auth/AW6WEO36THUGLEJDVXQLMI3YDYPZ3AVCNFSM6AAAAAA7GBXFV6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBVGY4DEMBUGU . You are receiving this because you authored the thread.Message ID: @.***>
--
http://www.arista.com/Software Driven Cloud Networking
https://www.linkedin.com/company/arista-networks-inc https://www.facebook.com/AristaNW/ https://twitter.com/aristanetworks https://www.youtube.com/user/AristaNetworks
Dipl.-Ing. Martin Krausch Systems Engineer Germany
eMail: @.***
mobile: +49 160 92776298
phone: +49 208 9419657
fax: +49 208 9419658 www.arista.com http://www.arista.com/
Not interested? Unsubscribe from all emails https://solutions.arista.com/hs/manage-preferences/unsubscribe-simple?via_redirect=true
When trying to import the inventory list from CVP 2023.1.2 (on prem) I get the following error message (Error: Missing option '--username') allthough this option is not needed for the get from-cvp command:
root@ubuntu:/home/mkrausch/ARISTA_ANTA# anta get from-cvp -ip 10.83.30.160 -u cvpadmin -p pAssword -d cvp_inventory Usage: anta [OPTIONS] COMMAND [ARGS]... Try 'anta --help' for help.
Error: Missing option '--username'.