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

AOS-CX: Update CPU and MEM values for newer versions #294

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

ssasso
Copy link

@ssasso ssasso commented Dec 16, 2024

Seems that newer versions of AOS-CX requires more CPU and RAM to work well (despite it can boot with the old, lower values, some problems can happen in case of huge config)

@hellt hellt merged commit fef3129 into hellt:master Dec 16, 2024
1 check passed
kaelemc pushed a commit to kaelemc/vrnetlab that referenced this pull request Dec 19, 2024
hellt added a commit that referenced this pull request Jan 17, 2025
* AOS-CX: Update CPU and MEM values for newer versions (#294)

Co-authored-by: Stefano Sasso <[email protected]>

* backdoor to reset VR or specific VMs (#285)

* backdoor to reset VR

* option to reset specific VMs

* give ocnos some time to boot in the login routine (#295)

* Add vrnetlab base image

* Add `cidfile` to gitignore

* Implement Scrapli

- Implement scrapli for telnet console and qemu monitor
- Add scrapli for core funcs (wait_write, read_until, expect)
- Add conditional use of scrapli via 'use_scrapli' var. Default is disabled
- Add colours to logging
- Log env vars
- Log if transparent mgmt intf is in use
- Log if scrapli is in use
- Log overlay image creation
- Log defined SMP and RAM

* cat8kv: Migrate to Scrapli

- Use Scrapli IOSXEDriver for config
- Update install VM var name to 'cat8kv' from 'csr'
- Fix installer class init so overlay image is only created once

* cat9kv: Migrate to Scrapli

- Remove license check
- Send bootstrap config via day0/CVAC config (mounted file to cdrom)
- Send startup config via Scrapli IOSXEDriver

* csr1kv: Migrate to Scrapli

- Use Scrapli IOSXEDriver for sending bootstrap and startup configs

* xrv: Migrate to Scrapli

- Use Scrapli IOSXRDriver to send bootstrap and startup configs

* xrv: Add convert-image target in Makefile

- Converts the qcow2 image into required vmdk format for vrnetlab via qemu-img.

* xrv9k: Migrate to Scrapli

- Use Scrapli IOSXRDriver for bootstrap and startup configs
- Change class names to 'XRv9k' instead of 'XRv'
- Explicitly wait for SDR baking to complete in install process
- Remove call home/LC check

* xrv: Remove env var printing

* n9kv: Migrate to Scrapli

- Use NXOSDriver for bootstrap and startup configs

* nxos: Migrate to Scrapli

- Use NXOSDriver for bootstrap and startup configs

* vios: Migrate to Scrapli

- Use IOSXEDriver for bootstrap and startup configs

* vrnetlab: Support  scrapli qemu monitor option for VM reset

* vrnetlab: Move logging colour config outside of class init method

* cat8kv: Fix logger warning (log.warning -> logger.warning)

* vrnetlab: Remove scrpali logging import

* Cisco devices: Add/tweak configuration saving:

- vios, csr, cat8kv, cat9kv -- add configuration saving
- XRv, XRv9k -- log configuration saving

* xrv, xrv9k: Return to root at end of bootstrap cfg

* vrnetlab: add bool formatter func

* sros: Migrate to Scrapli

- Use scrapli community 'nokia_sros' platform
- Remove wait_write clean_buffer override
- Check if tftpboot conifg exists *before* opening Scrapli connection
- Log command outputs with 'DEBUG_SCRAPLI' env var (defaults to false)

* Use kaelemc/scrapli_community in base image

* Disable eager mode for config saving on Cisco devices

* cat8kv: Migrate to CVAC configuration

* cat8kv: add log message and block while generating cfg ISO

* cat9kv: Migrate startup config to CVAC

* Remove erroneous Scrapli Community submodule

* sros: fix typos for classic CLI

* csr: Migrate to CVAC

* Switch back to scrapli/scrapli-community

* added uv lock/venv and env file for pylance resolve sequence (#303)

* added uv dep for scrapli

* use ruff formatting

* update base image with pinned scrapli community

* close sros driver connection to invoke on_exit commands (quit-config)

* added local deps

* use uv in the base image

* ruff formatting

* use single const for scrapli timeout

* Close the commandeered connection so the on close actions are run

* Connection error log type from info->error

* extracting image edit

* persist bof and config after bootstrap config is applied and close sros con regardless if config was provided or not

* Configure scrapli variant if startup config is classic

If the startup-configuration provided is classic then the default configuration engine will be set to classic mode.

In this case the scrapli device variant should also be set to classic so the scrapli magic can do it's thing with the correct prompt matching.

* Use a global var to determine when to send classic configs

As classic startup configurations are now supported for MD-CLI defaulting versions, the classic CLI will mean the default config engine is classic on node boot. In this commit all logic that determined when to send/not send config for classic versions is now replaced with a single 'classic_cfg' global variable.

Most of the logic across the code had repeated statements checking if the version was <= 22 or magc. 'classic_cfg' is set to True in this case. Else it is False.

* Use explicit `quit-config` and move persistBofAndConfig back to end of bootstrap.

* Don't enforce MD-CLI on versions older than 19.x

---------

Co-authored-by: Stefano Sasso <[email protected]>
Co-authored-by: Stefano Sasso <[email protected]>
Co-authored-by: João Machado <[email protected]>
Co-authored-by: Roman Dodin <[email protected]>
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

Successfully merging this pull request may close these issues.

2 participants