diff --git a/.github/workflows/commit.yaml b/.github/workflows/commit.yaml index a1caeb9..276d3bf 100644 --- a/.github/workflows/commit.yaml +++ b/.github/workflows/commit.yaml @@ -27,10 +27,10 @@ jobs: build_posix: runs-on: ${{ matrix.os }} strategy: - max-parallel: 9 + max-parallel: 12 matrix: os: [ubuntu-latest, macos-latest] - version: [3.6, 3.7, 3.8, 3.9] + version: [3.6, 3.7, 3.8, 3.9, 3.10.0-beta.1] steps: - uses: actions/checkout@v2 - name: set up python ${{ matrix.version }} @@ -42,11 +42,6 @@ jobs: # version we are targeting with nox, while still having versions like 3.9.0a4 run: | echo "FRIENDLY_PYTHON_VERSION=$(python -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')")" >> $GITHUB_ENV - - name: install libxml2 and libxslt seems to only be needed for 3.9 image for some reason - if: matrix.os == 'ubuntu-latest' && matrix.version == '3.9' - run: | - sudo apt install libxml2-dev - sudo apt install libxslt-dev - name: setup test env run: | python -m pip install --upgrade pip diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index e083476..6718604 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -26,3 +26,9 @@ jobs: run: | python setup.py sdist bdist_wheel python -m twine upload dist/* + - name: create release branch + uses: peterjgrainger/action-create-branch@v2.0.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + branch: ${{ github.event.release.tag_name }} \ No newline at end of file diff --git a/.github/workflows/weekly.yaml b/.github/workflows/weekly.yaml index eddbd11..244210f 100644 --- a/.github/workflows/weekly.yaml +++ b/.github/workflows/weekly.yaml @@ -6,7 +6,6 @@ on: - cron: '0 10 * * 0' workflow_dispatch: -# in the future make this just call the commit workflow, but right now looks a little hacky to do in actions jobs: darglint: runs-on: ${{ matrix.os }} @@ -32,10 +31,10 @@ jobs: build_posix: runs-on: ${{ matrix.os }} strategy: - max-parallel: 9 + max-parallel: 12 matrix: os: [ubuntu-latest, macos-latest] - version: [3.6, 3.7, 3.8, 3.9] + version: [3.6, 3.7, 3.8, 3.9, 3.10.0-beta.1] steps: - uses: actions/checkout@v2 - name: set up python ${{ matrix.version }} @@ -47,11 +46,6 @@ jobs: # version we are targeting with nox, while still having versions like 3.9.0a4 run: | echo "FRIENDLY_PYTHON_VERSION=$(python -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')")" >> $GITHUB_ENV - - name: install libxml2 and libxslt seems to only be needed for 3.9 image for some reason - if: matrix.os == 'ubuntu-latest' && matrix.version == '3.9' - run: | - sudo apt install libxml2-dev - sudo apt install libxslt-dev - name: setup test env run: | python -m pip install --upgrade pip diff --git a/README.md b/README.md index 16e70f0..0311df2 100644 --- a/README.md +++ b/README.md @@ -20,9 +20,6 @@ scrapli_cfg scrapli_cfg makes merging or replacing device configurations over Telnet or SSH easy, all while giving you the scrapli behaviour you know and love. -*NOTE* this is still a work in progress, the first "official" release will be 2021.07.30... until then there will be -pre-releases made for that date. - #### Key Features: diff --git a/docs/generate/generate_docs.py b/docs/generate/generate_docs.py index 7a52424..e9a8cbf 100644 --- a/docs/generate/generate_docs.py +++ b/docs/generate/generate_docs.py @@ -52,10 +52,6 @@ "path": "platform/core/cisco_iosxe/patterns", "content": None, }, - "scrapli_cfg.platform.core.cisco_iosxe.types": { - "path": "platform/core/cisco_iosxe/types", - "content": None, - }, "scrapli_cfg.platform.core.cisco_iosxr.async_platform": { "path": "platform/core/cisco_iosxr/async_platform", "content": None, diff --git a/docs/user_guide/basic_usage.md b/docs/user_guide/basic_usage.md index c4371f1..c2d47a4 100644 --- a/docs/user_guide/basic_usage.md +++ b/docs/user_guide/basic_usage.md @@ -9,7 +9,6 @@ device. You can create your connection object directly from the appropriate scra `conn` object (scrapli connection object). A simple example of creating a scrapli_cfg object by both methods is below: ```python - from scrapli import Scrapli from scrapli_cfg.platform.core.cisco_iosxe import ScrapliCfgIOSXE from scrapli_cfg import ScrapliCfg @@ -52,7 +51,7 @@ The other remaining primary arguments are as follows: accept `cls` as the first argument which is a reference to the scrapli-cfg object itself (and thus has access to the underlying scrapli connection). More on this in the [`on_prepare` section](#on-prepare). - `dedicated_connection`: If `False` (default value) scrapli cfg will not open or close the underlying scrapli - connection and will raise an exception if the scrapli connection is not open. If `True` will automatically open + connection and will raise an exception if the scrapli connection is not open. If `True` it will automatically open and close the scrapli connection when using with a context manager, `prepare` will open the scrapli connection (if not already open), and `close` will close the scrapli connection. - `ignore_version`: Ignore checking device version support; currently this just means that scrapli-cfg will not @@ -87,7 +86,6 @@ needs in order to manage the configurations. A simple example of fetching and printing the device version: ```python - from scrapli import Scrapli from scrapli_cfg import ScrapliCfg @@ -115,7 +113,6 @@ like to get -- generally this will be either "startup" or "running". A simple example of fetching and printing the device startup configuration: ```python - from scrapli import Scrapli from scrapli_cfg import ScrapliCfg @@ -145,7 +142,6 @@ as `get_config`, just resulting in fetching a checkpoint file. Some details abou A simple example of fetching and printing a checkpoint file from an NXOS device: ```python - from scrapli import Scrapli from scrapli_cfg import ScrapliCfg @@ -175,7 +171,6 @@ If `replace` is `False` (default) then the config will be loaded as a *merge* ca as a full *replace* candidate. ```python - from scrapli import Scrapli from scrapli_cfg import ScrapliCfg @@ -207,7 +202,6 @@ candidate config/delete config sessions used to load the config. ```python - from scrapli import Scrapli from scrapli_cfg import ScrapliCfg @@ -236,7 +230,6 @@ with Scrapli(**device) as conn: If you've loaded a config and want to save/commit it you can do so with the `commit_config` method: ```python - from scrapli import Scrapli from scrapli_cfg import ScrapliCfg @@ -276,7 +269,6 @@ the diff will always show the "full" configuration diff (with colorful output th You can see each of the diffs like so: ```python - from scrapli import Scrapli from scrapli_cfg import ScrapliCfg @@ -318,7 +310,6 @@ designed to help you with. Here is an example of using this method: ```python - from scrapli import Scrapli from scrapli_cfg import ScrapliCfg from scrapli_cfg.platform.core.arista_eos.patterns import ETHERNET_INTERFACES diff --git a/mkdocs.yml b/mkdocs.yml index 2b67f9a..50a23a8 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -40,7 +40,6 @@ nav: - Async Platform: api_docs/platform/core/cisco_iosxe/async_platform.md - Sync Platform: api_docs/platform/core/cisco_iosxe/sync_platform.md - Patterns: api_docs/platform/core/cisco_iosxe/patterns.md - - Types: api_docs/platform/core/cisco_iosxe/types.md - Cisco IOSXR: - Base Platform: api_docs/platform/core/cisco_iosxr/async_platform.md - Async Platform: api_docs/platform/core/cisco_iosxr/async_platform.md diff --git a/noxfile.py b/noxfile.py index 03525a7..7afc957 100644 --- a/noxfile.py +++ b/noxfile.py @@ -1,5 +1,6 @@ """scrapli_cfg.noxfile""" import re +import sys from pathlib import Path from typing import Dict, List @@ -58,9 +59,14 @@ def parse_requirements(dev: bool = True) -> Dict[str, str]: REQUIREMENTS: Dict[str, str] = parse_requirements(dev=False) DEV_REQUIREMENTS: Dict[str, str] = parse_requirements(dev=True) +PLATFORM: str = sys.platform +SKIP_LIST: List[str] = [ + "unit_tests-darwin-3.10", + "integration_tests-darwin-3.10", +] -@nox.session(python=["3.6", "3.7", "3.8", "3.9"]) +@nox.session(python=["3.6", "3.7", "3.8", "3.9", "3.10"]) def unit_tests(session): """ Nox run unit tests @@ -75,6 +81,9 @@ def unit_tests(session): N/A """ + if f"unit_tests-{PLATFORM}-{session.python}" in SKIP_LIST: + return + session.install("-r", "requirements-dev.txt") session.install(".") session.run( @@ -106,6 +115,9 @@ def integration_tests(session): N/A """ + if f"integration_tests-{PLATFORM}-{session.python}" in SKIP_LIST: + return + session.install("-r", "requirements-dev.txt") session.install(".") # setting scrapli vrouter -> 1 so that the saved scrapli replay sessions are "correctly" diff --git a/requirements-dev.txt b/requirements-dev.txt index 68dcb5e..9b5362a 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,17 +1,17 @@ -black==21.5b0 +black==21.5b1 darglint==1.8.0 isort==5.8.0 mypy==0.812 nox==2020.12.31 pycodestyle==2.7.0 -pydocstyle==6.0.0 +pydocstyle==6.1.1 pyfakefs==4.4.0 pylama==7.7.1 pylint==2.8.2 pytest-asyncio==0.15.1 -pytest-cov==2.11.1 +pytest-cov==2.12.0 pytest==6.2.4 -scrapli-replay==2021.7.30a4 +scrapli-replay==2021.7.30a5 -r requirements-asyncssh.txt -r requirements-paramiko.txt -r requirements-ssh2.txt diff --git a/requirements-docs.txt b/requirements-docs.txt index 7cab4cd..efc1994 100644 --- a/requirements-docs.txt +++ b/requirements-docs.txt @@ -1,5 +1,5 @@ mdx-gh-links==0.2 mkdocs==1.1.2 -mkdocs-material==7.1.4 +mkdocs-material==7.1.5 mkdocs-material-extensions==1.0.1 pdoc3==0.9.2 ; sys_platform != "win32" \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 69bcb93..586646d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -scrapli>=2021.07.30a2 +scrapli>=2021.07.30a3 diff --git a/setup.py b/setup.py index 8e6c011..3866c16 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ import setuptools -__version__ = "2021.07.30a8" +__version__ = "2021.07.30a9" __author__ = "Carl Montanari" with open("README.md", "r", encoding="utf-8") as f: @@ -62,6 +62,7 @@ def get_packages(package): "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3 :: Only", "Topic :: Software Development :: Libraries :: Python Modules", ], diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/conftest.py b/tests/conftest.py index 6947093..53221fe 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,12 +1,44 @@ from pathlib import Path +import pytest +from devices import CONFIG_REPLACER, DEVICES + import scrapli_cfg -EXPECTED_CONFIG_PATH = f"{Path(scrapli_cfg.__file__).parents[1]}/tests/expected_configs" -EXPECTED_CONFIGS = { - "arista_eos": open(f"{EXPECTED_CONFIG_PATH}/arista_eos").read(), - "cisco_iosxe": open(f"{EXPECTED_CONFIG_PATH}/cisco_iosxe").read(), - "cisco_nxos": open(f"{EXPECTED_CONFIG_PATH}/cisco_nxos").read(), - "cisco_iosxr": open(f"{EXPECTED_CONFIG_PATH}/cisco_iosxr").read(), - "juniper_junos": open(f"{EXPECTED_CONFIG_PATH}/juniper_junos").read(), -} +TEST_DATA_PATH = f"{Path(scrapli_cfg.__file__).parents[1]}/tests/test_data" + + +@pytest.fixture(scope="session") +def test_data_path(): + """Fixture to provide path to test data files""" + return TEST_DATA_PATH + + +@pytest.fixture(scope="session") +def test_devices_dict(): + """Fixture to return test devices dict""" + return DEVICES + + +@pytest.fixture(scope="session") +def expected_configs(): + """Fixture to provide expected configs""" + return { + "arista_eos": open(f"{TEST_DATA_PATH}/expected/arista_eos").read(), + "cisco_iosxe": open(f"{TEST_DATA_PATH}/expected/cisco_iosxe").read(), + "cisco_nxos": open(f"{TEST_DATA_PATH}/expected/cisco_nxos").read(), + "cisco_iosxr": open(f"{TEST_DATA_PATH}/expected/cisco_iosxr").read(), + "juniper_junos": open(f"{TEST_DATA_PATH}/expected/juniper_junos").read(), + } + + +@pytest.fixture(scope="session") +def test_devices_dict(): + """Fixture to return test devices dict""" + return DEVICES + + +@pytest.fixture(scope="session") +def config_replacer_dict(): + """Fixture to return dict of config replacer helper functions""" + return CONFIG_REPLACER diff --git a/tests/devices.py b/tests/devices.py new file mode 100644 index 0000000..9d09ae2 --- /dev/null +++ b/tests/devices.py @@ -0,0 +1,87 @@ +import os + +from helper import ( + arista_eos_clean_response, + cisco_iosxe_clean_response, + cisco_iosxr_clean_response, + cisco_nxos_clean_response, + juniper_junos_clean_response, +) + +from scrapli.driver.core import ( + AsyncEOSDriver, + AsyncIOSXEDriver, + AsyncIOSXRDriver, + AsyncJunosDriver, + AsyncNXOSDriver, + EOSDriver, + IOSXEDriver, + IOSXRDriver, + JunosDriver, + NXOSDriver, +) + +VRNETLAB_MODE = bool(os.environ.get("SCRAPLI_VRNETLAB", False)) +USERNAME = "boxen" if not VRNETLAB_MODE else "vrnetlab" +PASSWORD = "b0x3N-b0x3N" if not VRNETLAB_MODE else "VR-netlab9" + +DEVICES = { + "cisco_iosxe": { + "driver": IOSXEDriver, + "async_driver": AsyncIOSXEDriver, + "auth_username": USERNAME, + "auth_password": PASSWORD, + "auth_secondary": PASSWORD, + "auth_strict_key": False, + "host": "localhost" if not VRNETLAB_MODE else "172.18.0.11", + "port": 21022 if not VRNETLAB_MODE else 22, + }, + "cisco_nxos": { + "driver": NXOSDriver, + "async_driver": AsyncNXOSDriver, + "auth_username": USERNAME, + "auth_password": PASSWORD, + "auth_secondary": PASSWORD, + "auth_strict_key": False, + "host": "localhost" if not VRNETLAB_MODE else "172.18.0.12", + "port": 22022 if not VRNETLAB_MODE else 22, + }, + "cisco_iosxr": { + "driver": IOSXRDriver, + "async_driver": AsyncIOSXRDriver, + "auth_username": USERNAME, + "auth_password": PASSWORD, + "auth_secondary": PASSWORD, + "auth_strict_key": False, + "host": "localhost" if not VRNETLAB_MODE else "172.18.0.13", + "port": 23022 if not VRNETLAB_MODE else 22, + }, + "arista_eos": { + "driver": EOSDriver, + "async_driver": AsyncEOSDriver, + "auth_username": USERNAME, + "auth_password": PASSWORD, + "auth_secondary": PASSWORD, + "auth_strict_key": False, + "host": "localhost" if not VRNETLAB_MODE else "172.18.0.14", + "port": 24022 if not VRNETLAB_MODE else 22, + }, + "juniper_junos": { + "driver": JunosDriver, + "async_driver": AsyncJunosDriver, + "auth_username": USERNAME, + "auth_password": PASSWORD, + "auth_secondary": PASSWORD, + "auth_strict_key": False, + "host": "localhost" if not VRNETLAB_MODE else "172.18.0.15", + "port": 25022 if not VRNETLAB_MODE else 22, + }, +} + +CONFIG_REPLACER = { + "cisco_iosxe": cisco_iosxe_clean_response, + "cisco_nxos": cisco_nxos_clean_response, + "cisco_iosxr": cisco_iosxr_clean_response, + "arista_eos": arista_eos_clean_response, + "juniper_junos": juniper_junos_clean_response, +} diff --git a/tests/integration/__init__.py b/tests/integration/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/integration/conftest.py b/tests/integration/conftest.py index 70913bb..be3e616 100644 --- a/tests/integration/conftest.py +++ b/tests/integration/conftest.py @@ -1,87 +1,15 @@ -import os - import pytest -from scrapli.driver.core import ( - AsyncEOSDriver, - AsyncIOSXEDriver, - AsyncIOSXRDriver, - AsyncJunosDriver, - AsyncNXOSDriver, - EOSDriver, - IOSXEDriver, - IOSXRDriver, - JunosDriver, - NXOSDriver, -) from scrapli_cfg import AsyncScrapliCfg, ScrapliCfg -from .. import helper -from ..conftest import EXPECTED_CONFIGS - -VROUTER_MODE = bool(os.environ.get("SCRAPLI_VROUTER", False)) -USERNAME = "vrnetlab" -PASSWORD = "VR-netlab9" TIMEOUT_SOCKET = 60 TIMEOUT_TRANSPORT = 60 TIMEOUT_OPS = 60 + TELNET_TRANSPORTS = ( "telnet", "asynctelnet", ) -DEVICES = { - "cisco_iosxe": { - "driver": IOSXEDriver, - "async_driver": AsyncIOSXEDriver, - "auth_username": USERNAME, - "auth_password": PASSWORD, - "auth_secondary": PASSWORD, - "auth_strict_key": False, - "host": "localhost" if VROUTER_MODE else "172.18.0.11", - "port": 21022 if VROUTER_MODE else 22, - }, - "cisco_nxos": { - "driver": NXOSDriver, - "async_driver": AsyncNXOSDriver, - "auth_username": USERNAME, - "auth_password": PASSWORD, - "auth_secondary": PASSWORD, - "auth_strict_key": False, - "host": "localhost" if VROUTER_MODE else "172.18.0.12", - "port": 22022 if VROUTER_MODE else 22, - }, - "cisco_iosxr": { - "driver": IOSXRDriver, - "async_driver": AsyncIOSXRDriver, - "auth_username": USERNAME, - "auth_password": PASSWORD, - "auth_secondary": PASSWORD, - "auth_strict_key": False, - "host": "localhost" if VROUTER_MODE else "172.18.0.13", - "port": 23022 if VROUTER_MODE else 22, - }, - "arista_eos": { - "driver": EOSDriver, - "async_driver": AsyncEOSDriver, - "auth_username": USERNAME, - "auth_password": PASSWORD, - "auth_secondary": PASSWORD, - "auth_strict_key": False, - "host": "localhost" if VROUTER_MODE else "172.18.0.14", - "port": 24022 if VROUTER_MODE else 22, - "comms_ansi": True, - }, - "juniper_junos": { - "driver": JunosDriver, - "async_driver": AsyncJunosDriver, - "auth_username": USERNAME, - "auth_password": PASSWORD, - "auth_secondary": PASSWORD, - "auth_strict_key": False, - "host": "localhost" if VROUTER_MODE else "172.18.0.15", - "port": 25022 if VROUTER_MODE else 22, - }, -} @pytest.fixture( @@ -103,8 +31,8 @@ def async_transport(request): @pytest.fixture(scope="function") -def conn(device_type, transport): - device = DEVICES[device_type].copy() +def conn(test_devices_dict, device_type, transport): + device = test_devices_dict[device_type].copy() driver = device.pop("driver") device.pop("async_driver") @@ -124,12 +52,12 @@ def conn(device_type, transport): @pytest.fixture(scope="function") -def cfg_conn(conn): +def cfg_conn(config_replacer_dict, conn, expected_configs): scrapli_conn, device_type = conn cfg_conn = ScrapliCfg(conn=scrapli_conn, dedicated_connection=True) - cfg_conn._expected_config = EXPECTED_CONFIGS[device_type] - cfg_conn._config_cleaner = getattr(helper, f"{device_type}_clean_response") + cfg_conn._expected_config = expected_configs[device_type] + cfg_conn._config_cleaner = config_replacer_dict[device_type] cfg_conn._load_config = "interface loopback1\ndescription tacocat" if device_type == "juniper_junos": @@ -148,8 +76,8 @@ def cfg_conn(conn): # scoping to function is probably dumb but dont have to screw around with which event loop is what this way @pytest.fixture(scope="function") -async def async_conn(device_type, async_transport): - device = DEVICES[device_type].copy() +async def async_conn(test_devices_dict, device_type, async_transport): + device = test_devices_dict[device_type].copy() driver = device.pop("async_driver") device.pop("driver") @@ -170,12 +98,12 @@ async def async_conn(device_type, async_transport): @pytest.mark.asyncio @pytest.fixture(scope="function") -async def async_cfg_conn(async_conn): +async def async_cfg_conn(config_replacer_dict, async_conn, expected_configs): scrapli_conn, device_type = async_conn async_cfg_conn = AsyncScrapliCfg(conn=scrapli_conn, dedicated_connection=True) - async_cfg_conn._expected_config = EXPECTED_CONFIGS[device_type] - async_cfg_conn._config_cleaner = getattr(helper, f"{device_type}_clean_response") + async_cfg_conn._expected_config = expected_configs[device_type] + async_cfg_conn._config_cleaner = config_replacer_dict[device_type] async_cfg_conn._load_config = "interface loopback1\ndescription tacocat" if device_type == "juniper_junos": diff --git a/tests/integration/platform/__init__.py b/tests/integration/platform/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/integration/platform/scrapli_replay_sessions/test_get_config[arista_eos-asyncssh].yaml b/tests/integration/platform/scrapli_replay_sessions/test_get_config[arista_eos-asyncssh].yaml index 1483eb8..674de26 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_get_config[arista_eos-asyncssh].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_get_config[arista_eos-asyncssh].yaml @@ -2,7 +2,7 @@ localhost:24022:AsyncsshTransport::0: connection_profile: host: localhost port: 24022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -13,7 +13,7 @@ localhost:24022:AsyncsshTransport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "Last login: Tue Apr 27 19:54:43 2021 from 10.0.0.2\n\n\e[5nlocalhost>" + - channel_output: "Last login: Sat May 29 13:07:50 2021 from 10.0.0.2\n\n\nlocalhost>" expected_channel_input: enable expected_channel_input_redacted: false - channel_output: enable @@ -93,8 +93,8 @@ localhost:24022:AsyncsshTransport::0: \ level VMWAREVI errors\nlogging level VMWAREVS errors\nlogging level VRF\ \ errors\nlogging level VRRP errors\nlogging level VXLAN errors\nlogging level\ \ XMPP errors\nlogging level ZTP informational\n!\nspanning-tree mode mstp\n\ - !\nenable secret sha512 $6$P1M9SV2bLTmQJpwW$KVoaaIa7i34uTFp7JRRp.hqL55nr7jSJJiDA.9CHTCW7q4GDIwyceMMSp6TavgYiAokjobyBYCO70L7FxpZon1\n\ - no aaa root\n!\nusername vrnetlab role network-admin secret sha512 $6$8zrJ4ESW2fqG2QqH$9u768TvLXXDeUJmG2Std71EX1ip6q4MoJrMwDng1cmpuSYc9ECWytRjvXpMH7C3dzSdoEv0MxAUiAZeeTre3h.\n\ + !\nenable secret sha512 $6$TVJ6KgdC0qsGkKfb$LjGGPd6W3S1iJQVQ.Vvo3Bca4Yt1R3y4nOjWAaaTCsk1NuIoqB/gOMseoigt/HQVFDTvDAJ3IPmsF9sWfxi1V/\n\ + no aaa root\n!\nusername boxen role network-admin secret sha512 $6$1ex07TzYfKx23A9z$c02oeDxnr4J7HMgj0PcabYvACZfjdiu3zp4IAgjJQ51IBtkstpvOjm0FYbxSSBhsl.mytIr9Y4PaERp4MDXJM/\n\ !\ninterface Ethernet1\n speed forced 10000full\n no switchport\n ipv6\ \ enable\n ipv6 address auto-config\n ipv6 nd ra rx accept default-route\n\ !\ninterface Ethernet2\n speed forced 10000full\n no switchport\n ipv6\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_get_config[arista_eos-asynctelnet].yaml b/tests/integration/platform/scrapli_replay_sessions/test_get_config[arista_eos-asynctelnet].yaml index b5d53ef..c9eeb14 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_get_config[arista_eos-asynctelnet].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_get_config[arista_eos-asynctelnet].yaml @@ -2,7 +2,7 @@ localhost:24023:AsynctelnetTransport::0: connection_profile: host: localhost port: 24023 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -18,7 +18,7 @@ localhost:24023:AsynctelnetTransport::0: \ at the CLI. Alternatively, to disable Zero Touch\nProvisioning permanently,\ \ type 'zerotouch disable' at the CLI.\nNote: The device will reload when\ \ these commands are issued.\nUsername: " - expected_channel_input: vrnetlab + expected_channel_input: boxen expected_channel_input_redacted: false - channel_output: '' expected_channel_input: "\n" @@ -29,7 +29,7 @@ localhost:24023:AsynctelnetTransport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nLast login: Tue Apr 27 19:54:47 from 10.0.0.2\nlocalhost>" + - channel_output: "\nLast login: Sat May 29 13:08:57 from 10.0.0.2\nlocalhost>" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nlocalhost>" @@ -112,8 +112,8 @@ localhost:24023:AsynctelnetTransport::0: \ level VMWAREVI errors\nlogging level VMWAREVS errors\nlogging level VRF\ \ errors\nlogging level VRRP errors\nlogging level VXLAN errors\nlogging level\ \ XMPP errors\nlogging level ZTP informational\n!\nspanning-tree mode mstp\n\ - !\nenable secret sha512 $6$P1M9SV2bLTmQJpwW$KVoaaIa7i34uTFp7JRRp.hqL55nr7jSJJiDA.9CHTCW7q4GDIwyceMMSp6TavgYiAokjobyBYCO70L7FxpZon1\n\ - no aaa root\n!\nusername vrnetlab role network-admin secret sha512 $6$8zrJ4ESW2fqG2QqH$9u768TvLXXDeUJmG2Std71EX1ip6q4MoJrMwDng1cmpuSYc9ECWytRjvXpMH7C3dzSdoEv0MxAUiAZeeTre3h.\n\ + !\nenable secret sha512 $6$TVJ6KgdC0qsGkKfb$LjGGPd6W3S1iJQVQ.Vvo3Bca4Yt1R3y4nOjWAaaTCsk1NuIoqB/gOMseoigt/HQVFDTvDAJ3IPmsF9sWfxi1V/\n\ + no aaa root\n!\nusername boxen role network-admin secret sha512 $6$1ex07TzYfKx23A9z$c02oeDxnr4J7HMgj0PcabYvACZfjdiu3zp4IAgjJQ51IBtkstpvOjm0FYbxSSBhsl.mytIr9Y4PaERp4MDXJM/\n\ !\ninterface Ethernet1\n speed forced 10000full\n no switchport\n ipv6\ \ enable\n ipv6 address auto-config\n ipv6 nd ra rx accept default-route\n\ !\ninterface Ethernet2\n speed forced 10000full\n no switchport\n ipv6\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_get_config[arista_eos-paramiko].yaml b/tests/integration/platform/scrapli_replay_sessions/test_get_config[arista_eos-paramiko].yaml index 197760c..762ec27 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_get_config[arista_eos-paramiko].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_get_config[arista_eos-paramiko].yaml @@ -2,7 +2,7 @@ localhost:24022:ParamikoTransport::0: connection_profile: host: localhost port: 24022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -13,13 +13,13 @@ localhost:24022:ParamikoTransport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "Last login: Tue Apr 27 19:45:58 2021 from 10.0.0.2\n\n\nlocalhost>\n" + - channel_output: "Last login: Sat May 29 13:07:49 2021 from 10.0.0.2\n\n\nlocalhost>" expected_channel_input: enable expected_channel_input_redacted: false - - channel_output: localhost>enable + - channel_output: "\nenable" expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nPassword: " + - channel_output: "\nlocalhost>enable\nPassword: " expected_channel_input: REDACTED expected_channel_input_redacted: true - channel_output: '' @@ -93,8 +93,8 @@ localhost:24022:ParamikoTransport::0: \ level VMWAREVI errors\nlogging level VMWAREVS errors\nlogging level VRF\ \ errors\nlogging level VRRP errors\nlogging level VXLAN errors\nlogging level\ \ XMPP errors\nlogging level ZTP informational\n!\nspanning-tree mode mstp\n\ - !\nenable secret sha512 $6$P1M9SV2bLTmQJpwW$KVoaaIa7i34uTFp7JRRp.hqL55nr7jSJJiDA.9CHTCW7q4GDIwyceMMSp6TavgYiAokjobyBYCO70L7FxpZon1\n\ - no aaa root\n!\nusername vrnetlab role network-admin secret sha512 $6$8zrJ4ESW2fqG2QqH$9u768TvLXXDeUJmG2Std71EX1ip6q4MoJrMwDng1cmpuSYc9ECWytRjvXpMH7C3dzSdoEv0MxAUiAZeeTre3h.\n\ + !\nenable secret sha512 $6$TVJ6KgdC0qsGkKfb$LjGGPd6W3S1iJQVQ.Vvo3Bca4Yt1R3y4nOjWAaaTCsk1NuIoqB/gOMseoigt/HQVFDTvDAJ3IPmsF9sWfxi1V/\n\ + no aaa root\n!\nusername boxen role network-admin secret sha512 $6$1ex07TzYfKx23A9z$c02oeDxnr4J7HMgj0PcabYvACZfjdiu3zp4IAgjJQ51IBtkstpvOjm0FYbxSSBhsl.mytIr9Y4PaERp4MDXJM/\n\ !\ninterface Ethernet1\n speed forced 10000full\n no switchport\n ipv6\ \ enable\n ipv6 address auto-config\n ipv6 nd ra rx accept default-route\n\ !\ninterface Ethernet2\n speed forced 10000full\n no switchport\n ipv6\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_get_config[arista_eos-ssh2].yaml b/tests/integration/platform/scrapli_replay_sessions/test_get_config[arista_eos-ssh2].yaml index 60ad019..65f85bd 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_get_config[arista_eos-ssh2].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_get_config[arista_eos-ssh2].yaml @@ -2,7 +2,7 @@ localhost:24022:Ssh2Transport::0: connection_profile: host: localhost port: 24022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -13,13 +13,13 @@ localhost:24022:Ssh2Transport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nLast login: Tue Apr 27 19:43:15 2021 from 10.0.0.2\n\nlocalhost>" + - channel_output: "\nLast login: Sat May 29 13:07:48 2021 from 10.0.0.2\n\nlocalhost>" expected_channel_input: enable expected_channel_input_redacted: false - - channel_output: "\nenable" + - channel_output: "\nlocalhost>enable" expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nlocalhost>enable\nPassword: " + - channel_output: "\nPassword: " expected_channel_input: REDACTED expected_channel_input_redacted: true - channel_output: '' @@ -93,8 +93,8 @@ localhost:24022:Ssh2Transport::0: \ level VMWAREVI errors\nlogging level VMWAREVS errors\nlogging level VRF\ \ errors\nlogging level VRRP errors\nlogging level VXLAN errors\nlogging level\ \ XMPP errors\nlogging level ZTP informational\n!\nspanning-tree mode mstp\n\ - !\nenable secret sha512 $6$P1M9SV2bLTmQJpwW$KVoaaIa7i34uTFp7JRRp.hqL55nr7jSJJiDA.9CHTCW7q4GDIwyceMMSp6TavgYiAokjobyBYCO70L7FxpZon1\n\ - no aaa root\n!\nusername vrnetlab role network-admin secret sha512 $6$8zrJ4ESW2fqG2QqH$9u768TvLXXDeUJmG2Std71EX1ip6q4MoJrMwDng1cmpuSYc9ECWytRjvXpMH7C3dzSdoEv0MxAUiAZeeTre3h.\n\ + !\nenable secret sha512 $6$TVJ6KgdC0qsGkKfb$LjGGPd6W3S1iJQVQ.Vvo3Bca4Yt1R3y4nOjWAaaTCsk1NuIoqB/gOMseoigt/HQVFDTvDAJ3IPmsF9sWfxi1V/\n\ + no aaa root\n!\nusername boxen role network-admin secret sha512 $6$1ex07TzYfKx23A9z$c02oeDxnr4J7HMgj0PcabYvACZfjdiu3zp4IAgjJQ51IBtkstpvOjm0FYbxSSBhsl.mytIr9Y4PaERp4MDXJM/\n\ !\ninterface Ethernet1\n speed forced 10000full\n no switchport\n ipv6\ \ enable\n ipv6 address auto-config\n ipv6 nd ra rx accept default-route\n\ !\ninterface Ethernet2\n speed forced 10000full\n no switchport\n ipv6\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_get_config[arista_eos-system].yaml b/tests/integration/platform/scrapli_replay_sessions/test_get_config[arista_eos-system].yaml index 3a2091b..26db1dc 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_get_config[arista_eos-system].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_get_config[arista_eos-system].yaml @@ -2,7 +2,7 @@ localhost:24022:SystemTransport::0: connection_profile: host: localhost port: 24022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -24,7 +24,7 @@ localhost:24022:SystemTransport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nLast login: Tue Apr 27 19:34:51 2021 from 10.0.0.2\n\e[5nlocalhost>" + - channel_output: "\nLast login: Sat May 29 12:58:22 2021 from 10.0.0.2\nlocalhost>" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nlocalhost>" @@ -107,8 +107,8 @@ localhost:24022:SystemTransport::0: \ level VMWAREVI errors\nlogging level VMWAREVS errors\nlogging level VRF\ \ errors\nlogging level VRRP errors\nlogging level VXLAN errors\nlogging level\ \ XMPP errors\nlogging level ZTP informational\n!\nspanning-tree mode mstp\n\ - !\nenable secret sha512 $6$P1M9SV2bLTmQJpwW$KVoaaIa7i34uTFp7JRRp.hqL55nr7jSJJiDA.9CHTCW7q4GDIwyceMMSp6TavgYiAokjobyBYCO70L7FxpZon1\n\ - no aaa root\n!\nusername vrnetlab role network-admin secret sha512 $6$8zrJ4ESW2fqG2QqH$9u768TvLXXDeUJmG2Std71EX1ip6q4MoJrMwDng1cmpuSYc9ECWytRjvXpMH7C3dzSdoEv0MxAUiAZeeTre3h.\n\ + !\nenable secret sha512 $6$TVJ6KgdC0qsGkKfb$LjGGPd6W3S1iJQVQ.Vvo3Bca4Yt1R3y4nOjWAaaTCsk1NuIoqB/gOMseoigt/HQVFDTvDAJ3IPmsF9sWfxi1V/\n\ + no aaa root\n!\nusername boxen role network-admin secret sha512 $6$1ex07TzYfKx23A9z$c02oeDxnr4J7HMgj0PcabYvACZfjdiu3zp4IAgjJQ51IBtkstpvOjm0FYbxSSBhsl.mytIr9Y4PaERp4MDXJM/\n\ !\ninterface Ethernet1\n speed forced 10000full\n no switchport\n ipv6\ \ enable\n ipv6 address auto-config\n ipv6 nd ra rx accept default-route\n\ !\ninterface Ethernet2\n speed forced 10000full\n no switchport\n ipv6\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_get_config[arista_eos-telnet].yaml b/tests/integration/platform/scrapli_replay_sessions/test_get_config[arista_eos-telnet].yaml index 8aee71b..4b2c107 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_get_config[arista_eos-telnet].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_get_config[arista_eos-telnet].yaml @@ -2,7 +2,7 @@ localhost:24023:TelnetTransport::0: connection_profile: host: localhost port: 24023 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -18,7 +18,7 @@ localhost:24023:TelnetTransport::0: \ at the CLI. Alternatively, to disable Zero Touch\nProvisioning permanently,\ \ type 'zerotouch disable' at the CLI.\nNote: The device will reload when\ \ these commands are issued.\nUsername: " - expected_channel_input: vrnetlab + expected_channel_input: boxen expected_channel_input_redacted: false - channel_output: '' expected_channel_input: "\n" @@ -29,7 +29,7 @@ localhost:24023:TelnetTransport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nLast login: Tue Apr 27 15:54:12 on ttyS0\nlocalhost>" + - channel_output: "\nLast login: Sat May 29 13:07:50 from 10.0.0.2\nlocalhost>" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nlocalhost>" @@ -112,8 +112,8 @@ localhost:24023:TelnetTransport::0: \ level VMWAREVI errors\nlogging level VMWAREVS errors\nlogging level VRF\ \ errors\nlogging level VRRP errors\nlogging level VXLAN errors\nlogging level\ \ XMPP errors\nlogging level ZTP informational\n!\nspanning-tree mode mstp\n\ - !\nenable secret sha512 $6$P1M9SV2bLTmQJpwW$KVoaaIa7i34uTFp7JRRp.hqL55nr7jSJJiDA.9CHTCW7q4GDIwyceMMSp6TavgYiAokjobyBYCO70L7FxpZon1\n\ - no aaa root\n!\nusername vrnetlab role network-admin secret sha512 $6$8zrJ4ESW2fqG2QqH$9u768TvLXXDeUJmG2Std71EX1ip6q4MoJrMwDng1cmpuSYc9ECWytRjvXpMH7C3dzSdoEv0MxAUiAZeeTre3h.\n\ + !\nenable secret sha512 $6$TVJ6KgdC0qsGkKfb$LjGGPd6W3S1iJQVQ.Vvo3Bca4Yt1R3y4nOjWAaaTCsk1NuIoqB/gOMseoigt/HQVFDTvDAJ3IPmsF9sWfxi1V/\n\ + no aaa root\n!\nusername boxen role network-admin secret sha512 $6$1ex07TzYfKx23A9z$c02oeDxnr4J7HMgj0PcabYvACZfjdiu3zp4IAgjJQ51IBtkstpvOjm0FYbxSSBhsl.mytIr9Y4PaERp4MDXJM/\n\ !\ninterface Ethernet1\n speed forced 10000full\n no switchport\n ipv6\ \ enable\n ipv6 address auto-config\n ipv6 nd ra rx accept default-route\n\ !\ninterface Ethernet2\n speed forced 10000full\n no switchport\n ipv6\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxe-asyncssh].yaml b/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxe-asyncssh].yaml index 39c5a65..c669972 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxe-asyncssh].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxe-asyncssh].yaml @@ -2,7 +2,7 @@ localhost:21022:AsyncsshTransport::0: connection_profile: host: localhost port: 21022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -42,13 +42,13 @@ localhost:21022:AsyncsshTransport::0: - channel_output: show running-config expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nBuilding configuration...\n\nCurrent configuration : 4826\ - \ bytes\n!\n! Last configuration change at 19:49:38 UTC Tue Apr 27 2021 by\ - \ vrnetlab\n!\nversion 16.12\nservice timestamps debug datetime msec\nservice\ + - channel_output: "\nBuilding configuration...\n\nCurrent configuration : 7013\ + \ bytes\n!\n! Last configuration change at 12:44:10 UTC Sat May 29 2021 by\ + \ boxen\n!\nversion 16.12\nservice timestamps debug datetime msec\nservice\ \ timestamps log datetime msec\nservice call-home\nplatform qfp utilization\ \ monitor load 80\nplatform punt-keepalive disable-kernel-core\nplatform console\ \ serial\n!\nhostname csr1000v\n!\nboot-start-marker\nboot-end-marker\n!\n\ - !\nenable secret 9 $9$h6Ayg86tb/EImk$2T6Ns.ke08cAlZ2TbMf3YRCYr7ngDGzgAxZB0YMe7lQ\n\ + !\nenable secret 9 $9$xvWnx8Fe35f8xE$E9ijp7GM/V48P5y1Uz3IEPtotXgwkJKYJmN0q3q2E92\n\ !\nno aaa new-model\ncall-home\n ! If contact email address in call-home is\ \ configured as sch-smart-licensing@cisco.com\n ! the email address configured\ \ in Cisco Smart License Portal will be used as contact email address to send\ @@ -57,9 +57,38 @@ localhost:21022:AsyncsshTransport::0: \ no destination transport-method email\n!\n!\n!\n!\n!\n!\n!\nip domain name\ \ example.com\n!\n!\n!\nlogin on-success log\n!\n!\n!\n!\n!\n!\n!\nsubscriber\ \ templating\n! \n! \n! \n! \n!\n!\nmultilink bundle-name authenticated\n\ - !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\ncrypto pki trustpoint SLA-TrustPoint\n\ - \ enrollment pkcs12\n revocation-check crl\n!\n!\ncrypto pki certificate chain\ - \ SLA-TrustPoint\n certificate ca 01\n 30820321 30820209 A0030201 02020101\ + !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\ncrypto pki trustpoint TP-self-signed-971124804\n\ + \ enrollment selfsigned\n subject-name cn=IOS-Self-Signed-Certificate-971124804\n\ + \ revocation-check none\n rsakeypair TP-self-signed-971124804\n!\ncrypto pki\ + \ trustpoint SLA-TrustPoint\n enrollment pkcs12\n revocation-check crl\n!\n\ + !\ncrypto pki certificate chain TP-self-signed-971124804\n certificate self-signed\ + \ 01\n 3082032E 30820216 A0030201 02020101 300D0609 2A864886 F70D0101 05050030\ + \ \n 30312E30 2C060355 04031325 494F532D 53656C66 2D536967 6E65642D 43657274\ + \ \n 69666963 6174652D 39373131 32343830 34301E17 0D323130 35323831 39323031\ + \ \n 315A170D 33303031 30313030 30303030 5A303031 2E302C06 03550403 1325494F\ + \ \n 532D5365 6C662D53 69676E65 642D4365 72746966 69636174 652D3937 31313234\ + \ \n 38303430 82012230 0D06092A 864886F7 0D010101 05000382 010F0030 82010A02\ + \ \n 82010100 9A5AFB47 FBB29463 C3B0E15E 881CAD52 5C652FC8 498B8FE2 BD025CA6\ + \ \n 9E98FB34 036B5B87 DC88A835 3B3A40DE 84ED8365 7CDA56F0 80630520 CCCE14A6\ + \ \n 9512C259 8D1E30E9 446A45EF 72464059 C0AB9279 F11AC3F6 71DFC173 95B99AE4\ + \ \n 3E4E32C6 00584C6C 7CE8A0FB 2DAEAC90 14516A4B C8B28D8C 444E9DDA 831DA497\ + \ \n 735818E4 5D7253C5 0FEE261A 0B9E9014 49AAAD3E E44AF3B1 351A19DC 7B78BE07\ + \ \n D452B6CC 4032AC79 33D3EC32 178FA55D B4F30EF6 B4AFF847 FB1677B6 A8969B6A\ + \ \n AB7D7019 4436A67B 98CC2808 62136E03 CE3CBE98 D32EF392 85406D04 7CAF3BE7\ + \ \n C2E34EAC 5F69E38A 6CC4E8B9 A00B76EC 79577B9B E5BBAA35 37D6B900 79D5EC0F\ + \ \n 5837E09B 02030100 01A35330 51300F06 03551D13 0101FF04 05300301 01FF301F\ + \ \n 0603551D 23041830 1680143A A780D0ED 95DFA1D7 42E88EBC DFCAA823 CFB03D30\ + \ \n 1D060355 1D0E0416 04143AA7 80D0ED95 DFA1D742 E88EBCDF CAA823CF B03D300D\ + \ \n 06092A86 4886F70D 01010505 00038201 010026D4 17358B20 82C17EC6 33F7ED1D\ + \ \n 8F6A52D0 67A557A0 46461293 D77EE377 1DB715B4 97C4C112 3FE955A9 99D17602\ + \ \n AA6F0DC8 A17F55D1 DDD335BF 4296E3C7 30974AA6 A260D83C EF127FE8 33ABF964\ + \ \n C45FF04C 9E271FD8 B6F4986F F2AA4ED9 AA940143 45F7B6BD 0973946F 35F66CBF\ + \ \n 5A7916D3 AC478064 7C69FE20 C57F7538 4AD5CF79 671270D0 4F779ABE D62485C4\ + \ \n 8979887C 79AA9B8C C6A6036C E2AA78E2 4D4331FC 9C5F5BF8 78E6D796 31697E35\ + \ \n 54C0AA53 E52EECD8 8ECF24E7 8A01A8D9 C33D8353 D9C34F93 CF41336A 02CD7F15\ + \ \n 22C3BF05 23579F26 EFF63502 3ED320ED 67E61168 9E25D8F0 B0FB882C 81E111FD\ + \ \n FC38A6E7 2DC02DC7 4DE9C66E 617E07DA 883A\n \tquit\ncrypto pki certificate\ + \ chain SLA-TrustPoint\n certificate ca 01\n 30820321 30820209 A0030201 02020101\ \ 300D0609 2A864886 F70D0101 0B050030 \n 32310E30 0C060355 040A1305 43697363\ \ 6F312030 1E060355 04031317 43697363 \n 6F204C69 63656E73 696E6720 526F6F74\ \ 20434130 1E170D31 33303533 30313934 \n 3834375A 170D3338 30353330 31393438\ @@ -85,11 +114,11 @@ localhost:21022:AsyncsshTransport::0: \ F3A58BE1 1A48A229 C37C1E69 39F08678 \n 80DDCD16 D6BACECA EEBC7CF9 8428787B\ \ 35202CDC 60E4616A B623CDBD 230E3AFB \n 418616A9 4093E049 4D10AB75 27E86F73\ \ 932E35B5 8862FDAE 0275156F 719BB2F0 \n D697DF7F 28\n \tquit\n!\nlicense\ - \ udi pid CSR1000V sn 9MVVU09YZFH\ndiagnostic bootup level minimal\narchive\n\ + \ udi pid CSR1000V sn 9IB2R42M6QG\ndiagnostic bootup level minimal\narchive\n\ \ log config\n logging enable\n path bootflash:\nmemory free low-watermark\ - \ processor 72329\n!\n!\nspanning-tree extend system-id\n!\nusername vrnetlab\ - \ privilege 15 password 0 VR-netlab9\n!\nredundancy\n!\n!\n!\n!\n!\n!\n! \n\ - !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n! \n! \n!\n!\ninterface GigabitEthernet1\n\ + \ processor 72329\n!\n!\nspanning-tree extend system-id\n!\nusername boxen\ + \ privilege 15 password 0 b0x3N-b0x3N\n!\nredundancy\n!\n!\n!\n!\n!\n!\n!\ + \ \n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n! \n! \n!\n!\ninterface GigabitEthernet1\n\ \ ip address 10.0.0.15 255.255.255.0\n negotiation auto\n no mop enabled\n\ \ no mop sysid\n!\ninterface GigabitEthernet2\n no ip address\n shutdown\n\ \ negotiation auto\n no mop enabled\n no mop sysid\n!\ninterface GigabitEthernet3\n\ @@ -106,11 +135,11 @@ localhost:21022:AsyncsshTransport::0: \ GigabitEthernet10\n no ip address\n shutdown\n negotiation auto\n no mop\ \ enabled\n no mop sysid\n!\n!\nvirtual-service csr_mgmt\n!\nip forward-protocol\ \ nd\nno ip http server\nno ip http secure-server\n!\nip ssh pubkey-chain\n\ - \ username vrnetlab\n key-hash ssh-rsa 5CC74A68B18B026A1709FB09D1F44E2F\ - \ \nip scp server enable\n!\n!\n!\n!\n!\n!\n!\ncontrol-plane\n!\n!\n!\n!\n\ - !\n!\nline con 0\n stopbits 1\nline vty 0 4\n login local\n transport input\ - \ all\nline vty 5 15\n login local\n transport input all\n!\nnetconf ssh\n\ - !\n!\n!\n!\n!\nnetconf-yang\nend\n\ncsr1000v#" + \ username boxen\n key-hash ssh-rsa 5CC74A68B18B026A1709FB09D1F44E2F \n\ + ip scp server enable\n!\n!\n!\n!\n!\n!\n!\ncontrol-plane\n!\n!\n!\n!\n!\n\ + !\nline con 0\n stopbits 1\nline vty 0 4\n login local\n transport input all\n\ + line vty 5 15\n login local\n transport input all\n!\nnetconf ssh\n!\n!\n\ + !\n!\n!\nnetconf-yang\nend\n\ncsr1000v#" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\ncsr1000v#" diff --git a/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxe-asynctelnet].yaml b/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxe-asynctelnet].yaml index 4d76fa0..45ac18d 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxe-asynctelnet].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxe-asynctelnet].yaml @@ -2,7 +2,7 @@ localhost:21023:AsynctelnetTransport::0: connection_profile: host: localhost port: 21023 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -11,12 +11,12 @@ localhost:21023:AsynctelnetTransport::0: auth_secondary: false interactions: - channel_output: "\n\nUser Access Verification\n\nUsername: " - expected_channel_input: vrnetlab + expected_channel_input: boxen expected_channel_input_redacted: false - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "vrnetlab\nPassword: " + - channel_output: "boxen\nPassword: " expected_channel_input: REDACTED expected_channel_input_redacted: true - channel_output: '' @@ -54,13 +54,13 @@ localhost:21023:AsynctelnetTransport::0: - channel_output: show running-config expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nBuilding configuration...\n\nCurrent configuration : 4826\ - \ bytes\n!\n! Last configuration change at 19:49:38 UTC Tue Apr 27 2021 by\ - \ vrnetlab\n!\nversion 16.12\nservice timestamps debug datetime msec\nservice\ + - channel_output: "\nBuilding configuration...\n\nCurrent configuration : 7013\ + \ bytes\n!\n! Last configuration change at 12:44:10 UTC Sat May 29 2021 by\ + \ boxen\n!\nversion 16.12\nservice timestamps debug datetime msec\nservice\ \ timestamps log datetime msec\nservice call-home\nplatform qfp utilization\ \ monitor load 80\nplatform punt-keepalive disable-kernel-core\nplatform console\ \ serial\n!\nhostname csr1000v\n!\nboot-start-marker\nboot-end-marker\n!\n\ - !\nenable secret 9 $9$h6Ayg86tb/EImk$2T6Ns.ke08cAlZ2TbMf3YRCYr7ngDGzgAxZB0YMe7lQ\n\ + !\nenable secret 9 $9$xvWnx8Fe35f8xE$E9ijp7GM/V48P5y1Uz3IEPtotXgwkJKYJmN0q3q2E92\n\ !\nno aaa new-model\ncall-home\n ! If contact email address in call-home is\ \ configured as sch-smart-licensing@cisco.com\n ! the email address configured\ \ in Cisco Smart License Portal will be used as contact email address to send\ @@ -69,9 +69,38 @@ localhost:21023:AsynctelnetTransport::0: \ no destination transport-method email\n!\n!\n!\n!\n!\n!\n!\nip domain name\ \ example.com\n!\n!\n!\nlogin on-success log\n!\n!\n!\n!\n!\n!\n!\nsubscriber\ \ templating\n! \n! \n! \n! \n!\n!\nmultilink bundle-name authenticated\n\ - !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\ncrypto pki trustpoint SLA-TrustPoint\n\ - \ enrollment pkcs12\n revocation-check crl\n!\n!\ncrypto pki certificate chain\ - \ SLA-TrustPoint\n certificate ca 01\n 30820321 30820209 A0030201 02020101\ + !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\ncrypto pki trustpoint TP-self-signed-971124804\n\ + \ enrollment selfsigned\n subject-name cn=IOS-Self-Signed-Certificate-971124804\n\ + \ revocation-check none\n rsakeypair TP-self-signed-971124804\n!\ncrypto pki\ + \ trustpoint SLA-TrustPoint\n enrollment pkcs12\n revocation-check crl\n!\n\ + !\ncrypto pki certificate chain TP-self-signed-971124804\n certificate self-signed\ + \ 01\n 3082032E 30820216 A0030201 02020101 300D0609 2A864886 F70D0101 05050030\ + \ \n 30312E30 2C060355 04031325 494F532D 53656C66 2D536967 6E65642D 43657274\ + \ \n 69666963 6174652D 39373131 32343830 34301E17 0D323130 35323831 39323031\ + \ \n 315A170D 33303031 30313030 30303030 5A303031 2E302C06 03550403 1325494F\ + \ \n 532D5365 6C662D53 69676E65 642D4365 72746966 69636174 652D3937 31313234\ + \ \n 38303430 82012230 0D06092A 864886F7 0D010101 05000382 010F0030 82010A02\ + \ \n 82010100 9A5AFB47 FBB29463 C3B0E15E 881CAD52 5C652FC8 498B8FE2 BD025CA6\ + \ \n 9E98FB34 036B5B87 DC88A835 3B3A40DE 84ED8365 7CDA56F0 80630520 CCCE14A6\ + \ \n 9512C259 8D1E30E9 446A45EF 72464059 C0AB9279 F11AC3F6 71DFC173 95B99AE4\ + \ \n 3E4E32C6 00584C6C 7CE8A0FB 2DAEAC90 14516A4B C8B28D8C 444E9DDA 831DA497\ + \ \n 735818E4 5D7253C5 0FEE261A 0B9E9014 49AAAD3E E44AF3B1 351A19DC 7B78BE07\ + \ \n D452B6CC 4032AC79 33D3EC32 178FA55D B4F30EF6 B4AFF847 FB1677B6 A8969B6A\ + \ \n AB7D7019 4436A67B 98CC2808 62136E03 CE3CBE98 D32EF392 85406D04 7CAF3BE7\ + \ \n C2E34EAC 5F69E38A 6CC4E8B9 A00B76EC 79577B9B E5BBAA35 37D6B900 79D5EC0F\ + \ \n 5837E09B 02030100 01A35330 51300F06 03551D13 0101FF04 05300301 01FF301F\ + \ \n 0603551D 23041830 1680143A A780D0ED 95DFA1D7 42E88EBC DFCAA823 CFB03D30\ + \ \n 1D060355 1D0E0416 04143AA7 80D0ED95 DFA1D742 E88EBCDF CAA823CF B03D300D\ + \ \n 06092A86 4886F70D 01010505 00038201 010026D4 17358B20 82C17EC6 33F7ED1D\ + \ \n 8F6A52D0 67A557A0 46461293 D77EE377 1DB715B4 97C4C112 3FE955A9 99D17602\ + \ \n AA6F0DC8 A17F55D1 DDD335BF 4296E3C7 30974AA6 A260D83C EF127FE8 33ABF964\ + \ \n C45FF04C 9E271FD8 B6F4986F F2AA4ED9 AA940143 45F7B6BD 0973946F 35F66CBF\ + \ \n 5A7916D3 AC478064 7C69FE20 C57F7538 4AD5CF79 671270D0 4F779ABE D62485C4\ + \ \n 8979887C 79AA9B8C C6A6036C E2AA78E2 4D4331FC 9C5F5BF8 78E6D796 31697E35\ + \ \n 54C0AA53 E52EECD8 8ECF24E7 8A01A8D9 C33D8353 D9C34F93 CF41336A 02CD7F15\ + \ \n 22C3BF05 23579F26 EFF63502 3ED320ED 67E61168 9E25D8F0 B0FB882C 81E111FD\ + \ \n FC38A6E7 2DC02DC7 4DE9C66E 617E07DA 883A\n \tquit\ncrypto pki certificate\ + \ chain SLA-TrustPoint\n certificate ca 01\n 30820321 30820209 A0030201 02020101\ \ 300D0609 2A864886 F70D0101 0B050030 \n 32310E30 0C060355 040A1305 43697363\ \ 6F312030 1E060355 04031317 43697363 \n 6F204C69 63656E73 696E6720 526F6F74\ \ 20434130 1E170D31 33303533 30313934 \n 3834375A 170D3338 30353330 31393438\ @@ -97,11 +126,11 @@ localhost:21023:AsynctelnetTransport::0: \ F3A58BE1 1A48A229 C37C1E69 39F08678 \n 80DDCD16 D6BACECA EEBC7CF9 8428787B\ \ 35202CDC 60E4616A B623CDBD 230E3AFB \n 418616A9 4093E049 4D10AB75 27E86F73\ \ 932E35B5 8862FDAE 0275156F 719BB2F0 \n D697DF7F 28\n \tquit\n!\nlicense\ - \ udi pid CSR1000V sn 9MVVU09YZFH\ndiagnostic bootup level minimal\narchive\n\ + \ udi pid CSR1000V sn 9IB2R42M6QG\ndiagnostic bootup level minimal\narchive\n\ \ log config\n logging enable\n path bootflash:\nmemory free low-watermark\ - \ processor 72329\n!\n!\nspanning-tree extend system-id\n!\nusername vrnetlab\ - \ privilege 15 password 0 VR-netlab9\n!\nredundancy\n!\n!\n!\n!\n!\n!\n! \n\ - !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n! \n! \n!\n!\ninterface GigabitEthernet1\n\ + \ processor 72329\n!\n!\nspanning-tree extend system-id\n!\nusername boxen\ + \ privilege 15 password 0 b0x3N-b0x3N\n!\nredundancy\n!\n!\n!\n!\n!\n!\n!\ + \ \n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n! \n! \n!\n!\ninterface GigabitEthernet1\n\ \ ip address 10.0.0.15 255.255.255.0\n negotiation auto\n no mop enabled\n\ \ no mop sysid\n!\ninterface GigabitEthernet2\n no ip address\n shutdown\n\ \ negotiation auto\n no mop enabled\n no mop sysid\n!\ninterface GigabitEthernet3\n\ @@ -118,11 +147,11 @@ localhost:21023:AsynctelnetTransport::0: \ GigabitEthernet10\n no ip address\n shutdown\n negotiation auto\n no mop\ \ enabled\n no mop sysid\n!\n!\nvirtual-service csr_mgmt\n!\nip forward-protocol\ \ nd\nno ip http server\nno ip http secure-server\n!\nip ssh pubkey-chain\n\ - \ username vrnetlab\n key-hash ssh-rsa 5CC74A68B18B026A1709FB09D1F44E2F\ - \ \nip scp server enable\n!\n!\n!\n!\n!\n!\n!\ncontrol-plane\n!\n!\n!\n!\n\ - !\n!\nline con 0\n stopbits 1\nline vty 0 4\n login local\n transport input\ - \ all\nline vty 5 15\n login local\n transport input all\n!\nnetconf ssh\n\ - !\n!\n!\n!\n!\nnetconf-yang\nend\n\ncsr1000v#" + \ username boxen\n key-hash ssh-rsa 5CC74A68B18B026A1709FB09D1F44E2F \n\ + ip scp server enable\n!\n!\n!\n!\n!\n!\n!\ncontrol-plane\n!\n!\n!\n!\n!\n\ + !\nline con 0\n stopbits 1\nline vty 0 4\n login local\n transport input all\n\ + line vty 5 15\n login local\n transport input all\n!\nnetconf ssh\n!\n!\n\ + !\n!\n!\nnetconf-yang\nend\n\ncsr1000v#" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\ncsr1000v#" diff --git a/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxe-paramiko].yaml b/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxe-paramiko].yaml index a765ac4..43f50d9 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxe-paramiko].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxe-paramiko].yaml @@ -2,7 +2,7 @@ localhost:21022:ParamikoTransport::0: connection_profile: host: localhost port: 21022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -42,13 +42,13 @@ localhost:21022:ParamikoTransport::0: - channel_output: show running-config expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nBuilding configuration...\n\nCurrent configuration : 7021\ - \ bytes\n!\n! Last configuration change at 19:33:06 UTC Tue Apr 27 2021 by\ - \ vrnetlab\n!\nversion 16.12\nservice timestamps debug datetime msec\nservice\ + - channel_output: "\nBuilding configuration...\n\nCurrent configuration : 7013\ + \ bytes\n!\n! Last configuration change at 12:44:10 UTC Sat May 29 2021 by\ + \ boxen\n!\nversion 16.12\nservice timestamps debug datetime msec\nservice\ \ timestamps log datetime msec\nservice call-home\nplatform qfp utilization\ \ monitor load 80\nplatform punt-keepalive disable-kernel-core\nplatform console\ \ serial\n!\nhostname csr1000v\n!\nboot-start-marker\nboot-end-marker\n!\n\ - !\nenable secret 9 $9$h6Ayg86tb/EImk$2T6Ns.ke08cAlZ2TbMf3YRCYr7ngDGzgAxZB0YMe7lQ\n\ + !\nenable secret 9 $9$xvWnx8Fe35f8xE$E9ijp7GM/V48P5y1Uz3IEPtotXgwkJKYJmN0q3q2E92\n\ !\nno aaa new-model\ncall-home\n ! If contact email address in call-home is\ \ configured as sch-smart-licensing@cisco.com\n ! the email address configured\ \ in Cisco Smart License Portal will be used as contact email address to send\ @@ -57,68 +57,68 @@ localhost:21022:ParamikoTransport::0: \ no destination transport-method email\n!\n!\n!\n!\n!\n!\n!\nip domain name\ \ example.com\n!\n!\n!\nlogin on-success log\n!\n!\n!\n!\n!\n!\n!\nsubscriber\ \ templating\n! \n! \n! \n! \n!\n!\nmultilink bundle-name authenticated\n\ - !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\ncrypto pki trustpoint SLA-TrustPoint\n\ - \ enrollment pkcs12\n revocation-check crl\n!\ncrypto pki trustpoint TP-self-signed-422690288\n\ - \ enrollment selfsigned\n subject-name cn=IOS-Self-Signed-Certificate-422690288\n\ - \ revocation-check none\n rsakeypair TP-self-signed-422690288\n!\n!\ncrypto\ - \ pki certificate chain SLA-TrustPoint\n certificate ca 01\n 30820321 30820209\ - \ A0030201 02020101 300D0609 2A864886 F70D0101 0B050030 \n 32310E30 0C060355\ - \ 040A1305 43697363 6F312030 1E060355 04031317 43697363 \n 6F204C69 63656E73\ - \ 696E6720 526F6F74 20434130 1E170D31 33303533 30313934 \n 3834375A 170D3338\ - \ 30353330 31393438 34375A30 32310E30 0C060355 040A1305 \n 43697363 6F312030\ - \ 1E060355 04031317 43697363 6F204C69 63656E73 696E6720 \n 526F6F74 20434130\ - \ 82012230 0D06092A 864886F7 0D010101 05000382 010F0030 \n 82010A02 82010100\ - \ A6BCBD96 131E05F7 145EA72C 2CD686E6 17222EA1 F1EFF64D \n CBB4C798 212AA147\ - \ C655D8D7 9471380D 8711441E 1AAF071A 9CAE6388 8A38E520 \n 1C394D78 462EF239\ - \ C659F715 B98C0A59 5BBB5CBD 0CFEBEA3 700A8BF7 D8F256EE \n 4AA4E80D DB6FD1C9\ - \ 60B1FD18 FFC69C96 6FA68957 A2617DE7 104FDC5F EA2956AC \n 7390A3EB 2B5436AD\ - \ C847A2C5 DAB553EB 69A9A535 58E9F3E3 C0BD23CF 58BD7188 \n 68E69491 20F320E7\ - \ 948E71D7 AE3BCC84 F10684C7 4BC8E00F 539BA42B 42C68BB7 \n C7479096 B4CB2D62\ - \ EA2F505D C7B062A4 6811D95B E8250FC4 5D5D5FB8 8F27D191 \n C55F0D76 61F9A4CD\ - \ 3D992327 A8BB03BD 4E6D7069 7CBADF8B DF5F4368 95135E44 \n DFC7C6CF 04DD7FD1\ - \ 02030100 01A34230 40300E06 03551D0F 0101FF04 04030201 \n 06300F06 03551D13\ - \ 0101FF04 05300301 01FF301D 0603551D 0E041604 1449DC85 \n 4B3D31E5 1B3E6A17\ - \ 606AF333 3D3B4C73 E8300D06 092A8648 86F70D01 010B0500 \n 03820101 00507F24\ - \ D3932A66 86025D9F E838AE5C 6D4DF6B0 49631C78 240DA905 \n 604EDCDE FF4FED2B\ - \ 77FC460E CD636FDB DD44681E 3A5673AB 9093D3B1 6C9E3D8B \n D98987BF E40CBD9E\ - \ 1AECA0C2 2189BB5C 8FA85686 CD98B646 5575B146 8DFC66A8 \n 467A3DF4 4D565700\ - \ 6ADF0F0D CF835015 3C04FF7C 21E878AC 11BA9CD2 55A9232C \n 7CA7B7E6 C1AF74F6\ - \ 152E99B7 B1FCF9BB E973DE7F 5BDDEB86 C71E3B49 1765308B \n 5FB0DA06 B92AFE7F\ - \ 494E8A9E 07B85737 F3A58BE1 1A48A229 C37C1E69 39F08678 \n 80DDCD16 D6BACECA\ - \ EEBC7CF9 8428787B 35202CDC 60E4616A B623CDBD 230E3AFB \n 418616A9 4093E049\ - \ 4D10AB75 27E86F73 932E35B5 8862FDAE 0275156F 719BB2F0 \n D697DF7F 28\n\ - \ \tquit\ncrypto pki certificate chain TP-self-signed-422690288\n certificate\ - \ self-signed 01\n 3082032E 30820216 A0030201 02020101 300D0609 2A864886\ - \ F70D0101 05050030 \n 30312E30 2C060355 04031325 494F532D 53656C66 2D536967\ - \ 6E65642D 43657274 \n 69666963 6174652D 34323236 39303238 38301E17 0D323130\ - \ 34323431 34343633 \n 325A170D 33303031 30313030 30303030 5A303031 2E302C06\ - \ 03550403 1325494F \n 532D5365 6C662D53 69676E65 642D4365 72746966 69636174\ - \ 652D3432 32363930 \n 32383830 82012230 0D06092A 864886F7 0D010101 05000382\ - \ 010F0030 82010A02 \n 82010100 C27FD6F3 1166295D F49633D3 51450DE6 F9BFCF2F\ - \ 7D3AACC7 3B5ED6B2 \n 3F68308B 39990E36 EBD37E75 A4BEC830 3B2A690B 13830C49\ - \ 2B25D19A E2B96F77 \n BE553C56 EED3B3BB 6584D3BB B1765477 02E693D1 C2316AE4\ - \ 4EE23F38 E346D59F \n D7949E95 C48D9020 FD03136D 57FA5A92 9B8A57CE D455621E\ - \ A72B3D2C AAD3EB8B \n 65CF62D5 C18B005B CA85EAB2 60DAE050 866B4C85 BDBEF084\ - \ 0AA4560F C19B8AA5 \n 287090B9 6B035146 F42C3A94 F2EE4DD5 5A81EEC1 704D5584\ - \ 77ADDBA7 4DF33581 \n CABC4B99 B0FB35E9 25DF1AB1 C898CD50 C859B551 EEEF4A3B\ - \ 703351E7 8094547B \n DB6AC6AC 066D8AAD 96AAF404 336424BB 07876BDD 56B0DEBA\ - \ 4CE59AEF 58F9E6EF \n 3F1B3887 02030100 01A35330 51300F06 03551D13 0101FF04\ - \ 05300301 01FF301F \n 0603551D 23041830 16801452 75C9AA75 B92C6980 AFFF95F7\ - \ 015BA9DB CF56EF30 \n 1D060355 1D0E0416 04145275 C9AA75B9 2C6980AF FF95F701\ - \ 5BA9DBCF 56EF300D \n 06092A86 4886F70D 01010505 00038201 01007990 FB8C5182\ - \ 74A472E9 F8933726 \n 0AAAE421 58EC4C5E DD15BAAE 5E95D5D3 12FE143C 8A80F8FF\ - \ F4512402 DE2D1091 \n F0928C73 ACB88E28 4DADB7CD E5876DE4 FCE7E1C1 EB465801\ - \ 9592F6C0 06501F1F \n 03118D27 7F80C6C0 4C4C3CFC 67FABA0D 65C9E228 B4F43ED9\ - \ FAE62872 FFBCC72F \n 25635208 12E436D4 7F27BA6E 151EE76A 560AC6D4 B9983DF4\ - \ 85D990E7 42A83E9B \n CDB0E802 4D2B1C3B A091CC70 F2878CAF 1222B9D6 9FA625F0\ - \ B4426FAF 75C0B1DE \n 16B3C323 0E1B1D98 9B35DCCD 43A6CA7B C59AF71E FE525B64\ - \ F921D394 5CD3E67B \n 3E808F51 6B93BF9A 28BD9F50 E0C6AB58 4266EA8C 38893595\ - \ BAE03E69 838973C2 \n 928F6137 2DCA8AB4 530DB0E8 57A12266 A50C\n \tquit\n\ - !\nlicense udi pid CSR1000V sn 9MVVU09YZFH\ndiagnostic bootup level minimal\n\ - archive\n log config\n logging enable\n path bootflash:\nmemory free low-watermark\ - \ processor 72329\n!\n!\nspanning-tree extend system-id\n!\nusername vrnetlab\ - \ privilege 15 password 0 VR-netlab9\n!\nredundancy\n!\n!\n!\n!\n!\n!\n! \n\ - !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n! \n! \n!\n!\ninterface GigabitEthernet1\n\ + !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\ncrypto pki trustpoint TP-self-signed-971124804\n\ + \ enrollment selfsigned\n subject-name cn=IOS-Self-Signed-Certificate-971124804\n\ + \ revocation-check none\n rsakeypair TP-self-signed-971124804\n!\ncrypto pki\ + \ trustpoint SLA-TrustPoint\n enrollment pkcs12\n revocation-check crl\n!\n\ + !\ncrypto pki certificate chain TP-self-signed-971124804\n certificate self-signed\ + \ 01\n 3082032E 30820216 A0030201 02020101 300D0609 2A864886 F70D0101 05050030\ + \ \n 30312E30 2C060355 04031325 494F532D 53656C66 2D536967 6E65642D 43657274\ + \ \n 69666963 6174652D 39373131 32343830 34301E17 0D323130 35323831 39323031\ + \ \n 315A170D 33303031 30313030 30303030 5A303031 2E302C06 03550403 1325494F\ + \ \n 532D5365 6C662D53 69676E65 642D4365 72746966 69636174 652D3937 31313234\ + \ \n 38303430 82012230 0D06092A 864886F7 0D010101 05000382 010F0030 82010A02\ + \ \n 82010100 9A5AFB47 FBB29463 C3B0E15E 881CAD52 5C652FC8 498B8FE2 BD025CA6\ + \ \n 9E98FB34 036B5B87 DC88A835 3B3A40DE 84ED8365 7CDA56F0 80630520 CCCE14A6\ + \ \n 9512C259 8D1E30E9 446A45EF 72464059 C0AB9279 F11AC3F6 71DFC173 95B99AE4\ + \ \n 3E4E32C6 00584C6C 7CE8A0FB 2DAEAC90 14516A4B C8B28D8C 444E9DDA 831DA497\ + \ \n 735818E4 5D7253C5 0FEE261A 0B9E9014 49AAAD3E E44AF3B1 351A19DC 7B78BE07\ + \ \n D452B6CC 4032AC79 33D3EC32 178FA55D B4F30EF6 B4AFF847 FB1677B6 A8969B6A\ + \ \n AB7D7019 4436A67B 98CC2808 62136E03 CE3CBE98 D32EF392 85406D04 7CAF3BE7\ + \ \n C2E34EAC 5F69E38A 6CC4E8B9 A00B76EC 79577B9B E5BBAA35 37D6B900 79D5EC0F\ + \ \n 5837E09B 02030100 01A35330 51300F06 03551D13 0101FF04 05300301 01FF301F\ + \ \n 0603551D 23041830 1680143A A780D0ED 95DFA1D7 42E88EBC DFCAA823 CFB03D30\ + \ \n 1D060355 1D0E0416 04143AA7 80D0ED95 DFA1D742 E88EBCDF CAA823CF B03D300D\ + \ \n 06092A86 4886F70D 01010505 00038201 010026D4 17358B20 82C17EC6 33F7ED1D\ + \ \n 8F6A52D0 67A557A0 46461293 D77EE377 1DB715B4 97C4C112 3FE955A9 99D17602\ + \ \n AA6F0DC8 A17F55D1 DDD335BF 4296E3C7 30974AA6 A260D83C EF127FE8 33ABF964\ + \ \n C45FF04C 9E271FD8 B6F4986F F2AA4ED9 AA940143 45F7B6BD 0973946F 35F66CBF\ + \ \n 5A7916D3 AC478064 7C69FE20 C57F7538 4AD5CF79 671270D0 4F779ABE D62485C4\ + \ \n 8979887C 79AA9B8C C6A6036C E2AA78E2 4D4331FC 9C5F5BF8 78E6D796 31697E35\ + \ \n 54C0AA53 E52EECD8 8ECF24E7 8A01A8D9 C33D8353 D9C34F93 CF41336A 02CD7F15\ + \ \n 22C3BF05 23579F26 EFF63502 3ED320ED 67E61168 9E25D8F0 B0FB882C 81E111FD\ + \ \n FC38A6E7 2DC02DC7 4DE9C66E 617E07DA 883A\n \tquit\ncrypto pki certificate\ + \ chain SLA-TrustPoint\n certificate ca 01\n 30820321 30820209 A0030201 02020101\ + \ 300D0609 2A864886 F70D0101 0B050030 \n 32310E30 0C060355 040A1305 43697363\ + \ 6F312030 1E060355 04031317 43697363 \n 6F204C69 63656E73 696E6720 526F6F74\ + \ 20434130 1E170D31 33303533 30313934 \n 3834375A 170D3338 30353330 31393438\ + \ 34375A30 32310E30 0C060355 040A1305 \n 43697363 6F312030 1E060355 04031317\ + \ 43697363 6F204C69 63656E73 696E6720 \n 526F6F74 20434130 82012230 0D06092A\ + \ 864886F7 0D010101 05000382 010F0030 \n 82010A02 82010100 A6BCBD96 131E05F7\ + \ 145EA72C 2CD686E6 17222EA1 F1EFF64D \n CBB4C798 212AA147 C655D8D7 9471380D\ + \ 8711441E 1AAF071A 9CAE6388 8A38E520 \n 1C394D78 462EF239 C659F715 B98C0A59\ + \ 5BBB5CBD 0CFEBEA3 700A8BF7 D8F256EE \n 4AA4E80D DB6FD1C9 60B1FD18 FFC69C96\ + \ 6FA68957 A2617DE7 104FDC5F EA2956AC \n 7390A3EB 2B5436AD C847A2C5 DAB553EB\ + \ 69A9A535 58E9F3E3 C0BD23CF 58BD7188 \n 68E69491 20F320E7 948E71D7 AE3BCC84\ + \ F10684C7 4BC8E00F 539BA42B 42C68BB7 \n C7479096 B4CB2D62 EA2F505D C7B062A4\ + \ 6811D95B E8250FC4 5D5D5FB8 8F27D191 \n C55F0D76 61F9A4CD 3D992327 A8BB03BD\ + \ 4E6D7069 7CBADF8B DF5F4368 95135E44 \n DFC7C6CF 04DD7FD1 02030100 01A34230\ + \ 40300E06 03551D0F 0101FF04 04030201 \n 06300F06 03551D13 0101FF04 05300301\ + \ 01FF301D 0603551D 0E041604 1449DC85 \n 4B3D31E5 1B3E6A17 606AF333 3D3B4C73\ + \ E8300D06 092A8648 86F70D01 010B0500 \n 03820101 00507F24 D3932A66 86025D9F\ + \ E838AE5C 6D4DF6B0 49631C78 240DA905 \n 604EDCDE FF4FED2B 77FC460E CD636FDB\ + \ DD44681E 3A5673AB 9093D3B1 6C9E3D8B \n D98987BF E40CBD9E 1AECA0C2 2189BB5C\ + \ 8FA85686 CD98B646 5575B146 8DFC66A8 \n 467A3DF4 4D565700 6ADF0F0D CF835015\ + \ 3C04FF7C 21E878AC 11BA9CD2 55A9232C \n 7CA7B7E6 C1AF74F6 152E99B7 B1FCF9BB\ + \ E973DE7F 5BDDEB86 C71E3B49 1765308B \n 5FB0DA06 B92AFE7F 494E8A9E 07B85737\ + \ F3A58BE1 1A48A229 C37C1E69 39F08678 \n 80DDCD16 D6BACECA EEBC7CF9 8428787B\ + \ 35202CDC 60E4616A B623CDBD 230E3AFB \n 418616A9 4093E049 4D10AB75 27E86F73\ + \ 932E35B5 8862FDAE 0275156F 719BB2F0 \n D697DF7F 28\n \tquit\n!\nlicense\ + \ udi pid CSR1000V sn 9IB2R42M6QG\ndiagnostic bootup level minimal\narchive\n\ + \ log config\n logging enable\n path bootflash:\nmemory free low-watermark\ + \ processor 72329\n!\n!\nspanning-tree extend system-id\n!\nusername boxen\ + \ privilege 15 password 0 b0x3N-b0x3N\n!\nredundancy\n!\n!\n!\n!\n!\n!\n!\ + \ \n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n! \n! \n!\n!\ninterface GigabitEthernet1\n\ \ ip address 10.0.0.15 255.255.255.0\n negotiation auto\n no mop enabled\n\ \ no mop sysid\n!\ninterface GigabitEthernet2\n no ip address\n shutdown\n\ \ negotiation auto\n no mop enabled\n no mop sysid\n!\ninterface GigabitEthernet3\n\ @@ -135,11 +135,11 @@ localhost:21022:ParamikoTransport::0: \ GigabitEthernet10\n no ip address\n shutdown\n negotiation auto\n no mop\ \ enabled\n no mop sysid\n!\n!\nvirtual-service csr_mgmt\n!\nip forward-protocol\ \ nd\nno ip http server\nno ip http secure-server\n!\nip ssh pubkey-chain\n\ - \ username vrnetlab\n key-hash ssh-rsa 5CC74A68B18B026A1709FB09D1F44E2F\ - \ \nip scp server enable\n!\n!\n!\n!\n!\n!\n!\ncontrol-plane\n!\n!\n!\n!\n\ - !\n!\nline con 0\n stopbits 1\nline vty 0 4\n login local\n transport input\ - \ all\nline vty 5 15\n login local\n transport input all\n!\nnetconf ssh\n\ - !\n!\n!\n!\n!\nnetconf-yang\nend\n\ncsr1000v#" + \ username boxen\n key-hash ssh-rsa 5CC74A68B18B026A1709FB09D1F44E2F \n\ + ip scp server enable\n!\n!\n!\n!\n!\n!\n!\ncontrol-plane\n!\n!\n!\n!\n!\n\ + !\nline con 0\n stopbits 1\nline vty 0 4\n login local\n transport input all\n\ + line vty 5 15\n login local\n transport input all\n!\nnetconf ssh\n!\n!\n\ + !\n!\n!\nnetconf-yang\nend\n\ncsr1000v#" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\ncsr1000v#" diff --git a/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxe-ssh2].yaml b/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxe-ssh2].yaml index 26421f0..36ac38f 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxe-ssh2].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxe-ssh2].yaml @@ -2,7 +2,7 @@ localhost:21022:Ssh2Transport::0: connection_profile: host: localhost port: 21022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -42,13 +42,13 @@ localhost:21022:Ssh2Transport::0: - channel_output: show running-config expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nBuilding configuration...\n\nCurrent configuration : 7021\ - \ bytes\n!\n! Last configuration change at 19:33:06 UTC Tue Apr 27 2021 by\ - \ vrnetlab\n!\nversion 16.12\nservice timestamps debug datetime msec\nservice\ + - channel_output: "\nBuilding configuration...\n\nCurrent configuration : 7013\ + \ bytes\n!\n! Last configuration change at 12:44:10 UTC Sat May 29 2021 by\ + \ boxen\n!\nversion 16.12\nservice timestamps debug datetime msec\nservice\ \ timestamps log datetime msec\nservice call-home\nplatform qfp utilization\ \ monitor load 80\nplatform punt-keepalive disable-kernel-core\nplatform console\ \ serial\n!\nhostname csr1000v\n!\nboot-start-marker\nboot-end-marker\n!\n\ - !\nenable secret 9 $9$h6Ayg86tb/EImk$2T6Ns.ke08cAlZ2TbMf3YRCYr7ngDGzgAxZB0YMe7lQ\n\ + !\nenable secret 9 $9$xvWnx8Fe35f8xE$E9ijp7GM/V48P5y1Uz3IEPtotXgwkJKYJmN0q3q2E92\n\ !\nno aaa new-model\ncall-home\n ! If contact email address in call-home is\ \ configured as sch-smart-licensing@cisco.com\n ! the email address configured\ \ in Cisco Smart License Portal will be used as contact email address to send\ @@ -57,68 +57,68 @@ localhost:21022:Ssh2Transport::0: \ no destination transport-method email\n!\n!\n!\n!\n!\n!\n!\nip domain name\ \ example.com\n!\n!\n!\nlogin on-success log\n!\n!\n!\n!\n!\n!\n!\nsubscriber\ \ templating\n! \n! \n! \n! \n!\n!\nmultilink bundle-name authenticated\n\ - !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\ncrypto pki trustpoint SLA-TrustPoint\n\ - \ enrollment pkcs12\n revocation-check crl\n!\ncrypto pki trustpoint TP-self-signed-422690288\n\ - \ enrollment selfsigned\n subject-name cn=IOS-Self-Signed-Certificate-422690288\n\ - \ revocation-check none\n rsakeypair TP-self-signed-422690288\n!\n!\ncrypto\ - \ pki certificate chain SLA-TrustPoint\n certificate ca 01\n 30820321 30820209\ - \ A0030201 02020101 300D0609 2A864886 F70D0101 0B050030 \n 32310E30 0C060355\ - \ 040A1305 43697363 6F312030 1E060355 04031317 43697363 \n 6F204C69 63656E73\ - \ 696E6720 526F6F74 20434130 1E170D31 33303533 30313934 \n 3834375A 170D3338\ - \ 30353330 31393438 34375A30 32310E30 0C060355 040A1305 \n 43697363 6F312030\ - \ 1E060355 04031317 43697363 6F204C69 63656E73 696E6720 \n 526F6F74 20434130\ - \ 82012230 0D06092A 864886F7 0D010101 05000382 010F0030 \n 82010A02 82010100\ - \ A6BCBD96 131E05F7 145EA72C 2CD686E6 17222EA1 F1EFF64D \n CBB4C798 212AA147\ - \ C655D8D7 9471380D 8711441E 1AAF071A 9CAE6388 8A38E520 \n 1C394D78 462EF239\ - \ C659F715 B98C0A59 5BBB5CBD 0CFEBEA3 700A8BF7 D8F256EE \n 4AA4E80D DB6FD1C9\ - \ 60B1FD18 FFC69C96 6FA68957 A2617DE7 104FDC5F EA2956AC \n 7390A3EB 2B5436AD\ - \ C847A2C5 DAB553EB 69A9A535 58E9F3E3 C0BD23CF 58BD7188 \n 68E69491 20F320E7\ - \ 948E71D7 AE3BCC84 F10684C7 4BC8E00F 539BA42B 42C68BB7 \n C7479096 B4CB2D62\ - \ EA2F505D C7B062A4 6811D95B E8250FC4 5D5D5FB8 8F27D191 \n C55F0D76 61F9A4CD\ - \ 3D992327 A8BB03BD 4E6D7069 7CBADF8B DF5F4368 95135E44 \n DFC7C6CF 04DD7FD1\ - \ 02030100 01A34230 40300E06 03551D0F 0101FF04 04030201 \n 06300F06 03551D13\ - \ 0101FF04 05300301 01FF301D 0603551D 0E041604 1449DC85 \n 4B3D31E5 1B3E6A17\ - \ 606AF333 3D3B4C73 E8300D06 092A8648 86F70D01 010B0500 \n 03820101 00507F24\ - \ D3932A66 86025D9F E838AE5C 6D4DF6B0 49631C78 240DA905 \n 604EDCDE FF4FED2B\ - \ 77FC460E CD636FDB DD44681E 3A5673AB 9093D3B1 6C9E3D8B \n D98987BF E40CBD9E\ - \ 1AECA0C2 2189BB5C 8FA85686 CD98B646 5575B146 8DFC66A8 \n 467A3DF4 4D565700\ - \ 6ADF0F0D CF835015 3C04FF7C 21E878AC 11BA9CD2 55A9232C \n 7CA7B7E6 C1AF74F6\ - \ 152E99B7 B1FCF9BB E973DE7F 5BDDEB86 C71E3B49 1765308B \n 5FB0DA06 B92AFE7F\ - \ 494E8A9E 07B85737 F3A58BE1 1A48A229 C37C1E69 39F08678 \n 80DDCD16 D6BACECA\ - \ EEBC7CF9 8428787B 35202CDC 60E4616A B623CDBD 230E3AFB \n 418616A9 4093E049\ - \ 4D10AB75 27E86F73 932E35B5 8862FDAE 0275156F 719BB2F0 \n D697DF7F 28\n\ - \ \tquit\ncrypto pki certificate chain TP-self-signed-422690288\n certificate\ - \ self-signed 01\n 3082032E 30820216 A0030201 02020101 300D0609 2A864886\ - \ F70D0101 05050030 \n 30312E30 2C060355 04031325 494F532D 53656C66 2D536967\ - \ 6E65642D 43657274 \n 69666963 6174652D 34323236 39303238 38301E17 0D323130\ - \ 34323431 34343633 \n 325A170D 33303031 30313030 30303030 5A303031 2E302C06\ - \ 03550403 1325494F \n 532D5365 6C662D53 69676E65 642D4365 72746966 69636174\ - \ 652D3432 32363930 \n 32383830 82012230 0D06092A 864886F7 0D010101 05000382\ - \ 010F0030 82010A02 \n 82010100 C27FD6F3 1166295D F49633D3 51450DE6 F9BFCF2F\ - \ 7D3AACC7 3B5ED6B2 \n 3F68308B 39990E36 EBD37E75 A4BEC830 3B2A690B 13830C49\ - \ 2B25D19A E2B96F77 \n BE553C56 EED3B3BB 6584D3BB B1765477 02E693D1 C2316AE4\ - \ 4EE23F38 E346D59F \n D7949E95 C48D9020 FD03136D 57FA5A92 9B8A57CE D455621E\ - \ A72B3D2C AAD3EB8B \n 65CF62D5 C18B005B CA85EAB2 60DAE050 866B4C85 BDBEF084\ - \ 0AA4560F C19B8AA5 \n 287090B9 6B035146 F42C3A94 F2EE4DD5 5A81EEC1 704D5584\ - \ 77ADDBA7 4DF33581 \n CABC4B99 B0FB35E9 25DF1AB1 C898CD50 C859B551 EEEF4A3B\ - \ 703351E7 8094547B \n DB6AC6AC 066D8AAD 96AAF404 336424BB 07876BDD 56B0DEBA\ - \ 4CE59AEF 58F9E6EF \n 3F1B3887 02030100 01A35330 51300F06 03551D13 0101FF04\ - \ 05300301 01FF301F \n 0603551D 23041830 16801452 75C9AA75 B92C6980 AFFF95F7\ - \ 015BA9DB CF56EF30 \n 1D060355 1D0E0416 04145275 C9AA75B9 2C6980AF FF95F701\ - \ 5BA9DBCF 56EF300D \n 06092A86 4886F70D 01010505 00038201 01007990 FB8C5182\ - \ 74A472E9 F8933726 \n 0AAAE421 58EC4C5E DD15BAAE 5E95D5D3 12FE143C 8A80F8FF\ - \ F4512402 DE2D1091 \n F0928C73 ACB88E28 4DADB7CD E5876DE4 FCE7E1C1 EB465801\ - \ 9592F6C0 06501F1F \n 03118D27 7F80C6C0 4C4C3CFC 67FABA0D 65C9E228 B4F43ED9\ - \ FAE62872 FFBCC72F \n 25635208 12E436D4 7F27BA6E 151EE76A 560AC6D4 B9983DF4\ - \ 85D990E7 42A83E9B \n CDB0E802 4D2B1C3B A091CC70 F2878CAF 1222B9D6 9FA625F0\ - \ B4426FAF 75C0B1DE \n 16B3C323 0E1B1D98 9B35DCCD 43A6CA7B C59AF71E FE525B64\ - \ F921D394 5CD3E67B \n 3E808F51 6B93BF9A 28BD9F50 E0C6AB58 4266EA8C 38893595\ - \ BAE03E69 838973C2 \n 928F6137 2DCA8AB4 530DB0E8 57A12266 A50C\n \tquit\n\ - !\nlicense udi pid CSR1000V sn 9MVVU09YZFH\ndiagnostic bootup level minimal\n\ - archive\n log config\n logging enable\n path bootflash:\nmemory free low-watermark\ - \ processor 72329\n!\n!\nspanning-tree extend system-id\n!\nusername vrnetlab\ - \ privilege 15 password 0 VR-netlab9\n!\nredundancy\n!\n!\n!\n!\n!\n!\n! \n\ - !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n! \n! \n!\n!\ninterface GigabitEthernet1\n\ + !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\ncrypto pki trustpoint TP-self-signed-971124804\n\ + \ enrollment selfsigned\n subject-name cn=IOS-Self-Signed-Certificate-971124804\n\ + \ revocation-check none\n rsakeypair TP-self-signed-971124804\n!\ncrypto pki\ + \ trustpoint SLA-TrustPoint\n enrollment pkcs12\n revocation-check crl\n!\n\ + !\ncrypto pki certificate chain TP-self-signed-971124804\n certificate self-signed\ + \ 01\n 3082032E 30820216 A0030201 02020101 300D0609 2A864886 F70D0101 05050030\ + \ \n 30312E30 2C060355 04031325 494F532D 53656C66 2D536967 6E65642D 43657274\ + \ \n 69666963 6174652D 39373131 32343830 34301E17 0D323130 35323831 39323031\ + \ \n 315A170D 33303031 30313030 30303030 5A303031 2E302C06 03550403 1325494F\ + \ \n 532D5365 6C662D53 69676E65 642D4365 72746966 69636174 652D3937 31313234\ + \ \n 38303430 82012230 0D06092A 864886F7 0D010101 05000382 010F0030 82010A02\ + \ \n 82010100 9A5AFB47 FBB29463 C3B0E15E 881CAD52 5C652FC8 498B8FE2 BD025CA6\ + \ \n 9E98FB34 036B5B87 DC88A835 3B3A40DE 84ED8365 7CDA56F0 80630520 CCCE14A6\ + \ \n 9512C259 8D1E30E9 446A45EF 72464059 C0AB9279 F11AC3F6 71DFC173 95B99AE4\ + \ \n 3E4E32C6 00584C6C 7CE8A0FB 2DAEAC90 14516A4B C8B28D8C 444E9DDA 831DA497\ + \ \n 735818E4 5D7253C5 0FEE261A 0B9E9014 49AAAD3E E44AF3B1 351A19DC 7B78BE07\ + \ \n D452B6CC 4032AC79 33D3EC32 178FA55D B4F30EF6 B4AFF847 FB1677B6 A8969B6A\ + \ \n AB7D7019 4436A67B 98CC2808 62136E03 CE3CBE98 D32EF392 85406D04 7CAF3BE7\ + \ \n C2E34EAC 5F69E38A 6CC4E8B9 A00B76EC 79577B9B E5BBAA35 37D6B900 79D5EC0F\ + \ \n 5837E09B 02030100 01A35330 51300F06 03551D13 0101FF04 05300301 01FF301F\ + \ \n 0603551D 23041830 1680143A A780D0ED 95DFA1D7 42E88EBC DFCAA823 CFB03D30\ + \ \n 1D060355 1D0E0416 04143AA7 80D0ED95 DFA1D742 E88EBCDF CAA823CF B03D300D\ + \ \n 06092A86 4886F70D 01010505 00038201 010026D4 17358B20 82C17EC6 33F7ED1D\ + \ \n 8F6A52D0 67A557A0 46461293 D77EE377 1DB715B4 97C4C112 3FE955A9 99D17602\ + \ \n AA6F0DC8 A17F55D1 DDD335BF 4296E3C7 30974AA6 A260D83C EF127FE8 33ABF964\ + \ \n C45FF04C 9E271FD8 B6F4986F F2AA4ED9 AA940143 45F7B6BD 0973946F 35F66CBF\ + \ \n 5A7916D3 AC478064 7C69FE20 C57F7538 4AD5CF79 671270D0 4F779ABE D62485C4\ + \ \n 8979887C 79AA9B8C C6A6036C E2AA78E2 4D4331FC 9C5F5BF8 78E6D796 31697E35\ + \ \n 54C0AA53 E52EECD8 8ECF24E7 8A01A8D9 C33D8353 D9C34F93 CF41336A 02CD7F15\ + \ \n 22C3BF05 23579F26 EFF63502 3ED320ED 67E61168 9E25D8F0 B0FB882C 81E111FD\ + \ \n FC38A6E7 2DC02DC7 4DE9C66E 617E07DA 883A\n \tquit\ncrypto pki certificate\ + \ chain SLA-TrustPoint\n certificate ca 01\n 30820321 30820209 A0030201 02020101\ + \ 300D0609 2A864886 F70D0101 0B050030 \n 32310E30 0C060355 040A1305 43697363\ + \ 6F312030 1E060355 04031317 43697363 \n 6F204C69 63656E73 696E6720 526F6F74\ + \ 20434130 1E170D31 33303533 30313934 \n 3834375A 170D3338 30353330 31393438\ + \ 34375A30 32310E30 0C060355 040A1305 \n 43697363 6F312030 1E060355 04031317\ + \ 43697363 6F204C69 63656E73 696E6720 \n 526F6F74 20434130 82012230 0D06092A\ + \ 864886F7 0D010101 05000382 010F0030 \n 82010A02 82010100 A6BCBD96 131E05F7\ + \ 145EA72C 2CD686E6 17222EA1 F1EFF64D \n CBB4C798 212AA147 C655D8D7 9471380D\ + \ 8711441E 1AAF071A 9CAE6388 8A38E520 \n 1C394D78 462EF239 C659F715 B98C0A59\ + \ 5BBB5CBD 0CFEBEA3 700A8BF7 D8F256EE \n 4AA4E80D DB6FD1C9 60B1FD18 FFC69C96\ + \ 6FA68957 A2617DE7 104FDC5F EA2956AC \n 7390A3EB 2B5436AD C847A2C5 DAB553EB\ + \ 69A9A535 58E9F3E3 C0BD23CF 58BD7188 \n 68E69491 20F320E7 948E71D7 AE3BCC84\ + \ F10684C7 4BC8E00F 539BA42B 42C68BB7 \n C7479096 B4CB2D62 EA2F505D C7B062A4\ + \ 6811D95B E8250FC4 5D5D5FB8 8F27D191 \n C55F0D76 61F9A4CD 3D992327 A8BB03BD\ + \ 4E6D7069 7CBADF8B DF5F4368 95135E44 \n DFC7C6CF 04DD7FD1 02030100 01A34230\ + \ 40300E06 03551D0F 0101FF04 04030201 \n 06300F06 03551D13 0101FF04 05300301\ + \ 01FF301D 0603551D 0E041604 1449DC85 \n 4B3D31E5 1B3E6A17 606AF333 3D3B4C73\ + \ E8300D06 092A8648 86F70D01 010B0500 \n 03820101 00507F24 D3932A66 86025D9F\ + \ E838AE5C 6D4DF6B0 49631C78 240DA905 \n 604EDCDE FF4FED2B 77FC460E CD636FDB\ + \ DD44681E 3A5673AB 9093D3B1 6C9E3D8B \n D98987BF E40CBD9E 1AECA0C2 2189BB5C\ + \ 8FA85686 CD98B646 5575B146 8DFC66A8 \n 467A3DF4 4D565700 6ADF0F0D CF835015\ + \ 3C04FF7C 21E878AC 11BA9CD2 55A9232C \n 7CA7B7E6 C1AF74F6 152E99B7 B1FCF9BB\ + \ E973DE7F 5BDDEB86 C71E3B49 1765308B \n 5FB0DA06 B92AFE7F 494E8A9E 07B85737\ + \ F3A58BE1 1A48A229 C37C1E69 39F08678 \n 80DDCD16 D6BACECA EEBC7CF9 8428787B\ + \ 35202CDC 60E4616A B623CDBD 230E3AFB \n 418616A9 4093E049 4D10AB75 27E86F73\ + \ 932E35B5 8862FDAE 0275156F 719BB2F0 \n D697DF7F 28\n \tquit\n!\nlicense\ + \ udi pid CSR1000V sn 9IB2R42M6QG\ndiagnostic bootup level minimal\narchive\n\ + \ log config\n logging enable\n path bootflash:\nmemory free low-watermark\ + \ processor 72329\n!\n!\nspanning-tree extend system-id\n!\nusername boxen\ + \ privilege 15 password 0 b0x3N-b0x3N\n!\nredundancy\n!\n!\n!\n!\n!\n!\n!\ + \ \n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n! \n! \n!\n!\ninterface GigabitEthernet1\n\ \ ip address 10.0.0.15 255.255.255.0\n negotiation auto\n no mop enabled\n\ \ no mop sysid\n!\ninterface GigabitEthernet2\n no ip address\n shutdown\n\ \ negotiation auto\n no mop enabled\n no mop sysid\n!\ninterface GigabitEthernet3\n\ @@ -135,11 +135,11 @@ localhost:21022:Ssh2Transport::0: \ GigabitEthernet10\n no ip address\n shutdown\n negotiation auto\n no mop\ \ enabled\n no mop sysid\n!\n!\nvirtual-service csr_mgmt\n!\nip forward-protocol\ \ nd\nno ip http server\nno ip http secure-server\n!\nip ssh pubkey-chain\n\ - \ username vrnetlab\n key-hash ssh-rsa 5CC74A68B18B026A1709FB09D1F44E2F\ - \ \nip scp server enable\n!\n!\n!\n!\n!\n!\n!\ncontrol-plane\n!\n!\n!\n!\n\ - !\n!\nline con 0\n stopbits 1\nline vty 0 4\n login local\n transport input\ - \ all\nline vty 5 15\n login local\n transport input all\n!\nnetconf ssh\n\ - !\n!\n!\n!\n!\nnetconf-yang\nend\n\ncsr1000v#" + \ username boxen\n key-hash ssh-rsa 5CC74A68B18B026A1709FB09D1F44E2F \n\ + ip scp server enable\n!\n!\n!\n!\n!\n!\n!\ncontrol-plane\n!\n!\n!\n!\n!\n\ + !\nline con 0\n stopbits 1\nline vty 0 4\n login local\n transport input all\n\ + line vty 5 15\n login local\n transport input all\n!\nnetconf ssh\n!\n!\n\ + !\n!\n!\nnetconf-yang\nend\n\ncsr1000v#" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\ncsr1000v#" diff --git a/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxe-system].yaml b/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxe-system].yaml index c99a7da..f21f871 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxe-system].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxe-system].yaml @@ -2,7 +2,7 @@ localhost:21022:SystemTransport::0: connection_profile: host: localhost port: 21022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -49,13 +49,13 @@ localhost:21022:SystemTransport::0: - channel_output: show running-config expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nBuilding configuration...\n\nCurrent configuration : 7021\ - \ bytes\n!\n! Last configuration change at 19:33:06 UTC Tue Apr 27 2021 by\ - \ vrnetlab\n!\nversion 16.12\nservice timestamps debug datetime msec\nservice\ + - channel_output: "\nBuilding configuration...\n\nCurrent configuration : 7013\ + \ bytes\n!\n! Last configuration change at 12:44:10 UTC Sat May 29 2021 by\ + \ boxen\n!\nversion 16.12\nservice timestamps debug datetime msec\nservice\ \ timestamps log datetime msec\nservice call-home\nplatform qfp utilization\ \ monitor load 80\nplatform punt-keepalive disable-kernel-core\nplatform console\ \ serial\n!\nhostname csr1000v\n!\nboot-start-marker\nboot-end-marker\n!\n\ - !\nenable secret 9 $9$h6Ayg86tb/EImk$2T6Ns.ke08cAlZ2TbMf3YRCYr7ngDGzgAxZB0YMe7lQ\n\ + !\nenable secret 9 $9$xvWnx8Fe35f8xE$E9ijp7GM/V48P5y1Uz3IEPtotXgwkJKYJmN0q3q2E92\n\ !\nno aaa new-model\ncall-home\n ! If contact email address in call-home is\ \ configured as sch-smart-licensing@cisco.com\n ! the email address configured\ \ in Cisco Smart License Portal will be used as contact email address to send\ @@ -64,68 +64,68 @@ localhost:21022:SystemTransport::0: \ no destination transport-method email\n!\n!\n!\n!\n!\n!\n!\nip domain name\ \ example.com\n!\n!\n!\nlogin on-success log\n!\n!\n!\n!\n!\n!\n!\nsubscriber\ \ templating\n! \n! \n! \n! \n!\n!\nmultilink bundle-name authenticated\n\ - !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\ncrypto pki trustpoint SLA-TrustPoint\n\ - \ enrollment pkcs12\n revocation-check crl\n!\ncrypto pki trustpoint TP-self-signed-422690288\n\ - \ enrollment selfsigned\n subject-name cn=IOS-Self-Signed-Certificate-422690288\n\ - \ revocation-check none\n rsakeypair TP-self-signed-422690288\n!\n!\ncrypto\ - \ pki certificate chain SLA-TrustPoint\n certificate ca 01\n 30820321 30820209\ - \ A0030201 02020101 300D0609 2A864886 F70D0101 0B050030 \n 32310E30 0C060355\ - \ 040A1305 43697363 6F312030 1E060355 04031317 43697363 \n 6F204C69 63656E73\ - \ 696E6720 526F6F74 20434130 1E170D31 33303533 30313934 \n 3834375A 170D3338\ - \ 30353330 31393438 34375A30 32310E30 0C060355 040A1305 \n 43697363 6F312030\ - \ 1E060355 04031317 43697363 6F204C69 63656E73 696E6720 \n 526F6F74 20434130\ - \ 82012230 0D06092A 864886F7 0D010101 05000382 010F0030 \n 82010A02 82010100\ - \ A6BCBD96 131E05F7 145EA72C 2CD686E6 17222EA1 F1EFF64D \n CBB4C798 212AA147\ - \ C655D8D7 9471380D 8711441E 1AAF071A 9CAE6388 8A38E520 \n 1C394D78 462EF239\ - \ C659F715 B98C0A59 5BBB5CBD 0CFEBEA3 700A8BF7 D8F256EE \n 4AA4E80D DB6FD1C9\ - \ 60B1FD18 FFC69C96 6FA68957 A2617DE7 104FDC5F EA2956AC \n 7390A3EB 2B5436AD\ - \ C847A2C5 DAB553EB 69A9A535 58E9F3E3 C0BD23CF 58BD7188 \n 68E69491 20F320E7\ - \ 948E71D7 AE3BCC84 F10684C7 4BC8E00F 539BA42B 42C68BB7 \n C7479096 B4CB2D62\ - \ EA2F505D C7B062A4 6811D95B E8250FC4 5D5D5FB8 8F27D191 \n C55F0D76 61F9A4CD\ - \ 3D992327 A8BB03BD 4E6D7069 7CBADF8B DF5F4368 95135E44 \n DFC7C6CF 04DD7FD1\ - \ 02030100 01A34230 40300E06 03551D0F 0101FF04 04030201 \n 06300F06 03551D13\ - \ 0101FF04 05300301 01FF301D 0603551D 0E041604 1449DC85 \n 4B3D31E5 1B3E6A17\ - \ 606AF333 3D3B4C73 E8300D06 092A8648 86F70D01 010B0500 \n 03820101 00507F24\ - \ D3932A66 86025D9F E838AE5C 6D4DF6B0 49631C78 240DA905 \n 604EDCDE FF4FED2B\ - \ 77FC460E CD636FDB DD44681E 3A5673AB 9093D3B1 6C9E3D8B \n D98987BF E40CBD9E\ - \ 1AECA0C2 2189BB5C 8FA85686 CD98B646 5575B146 8DFC66A8 \n 467A3DF4 4D565700\ - \ 6ADF0F0D CF835015 3C04FF7C 21E878AC 11BA9CD2 55A9232C \n 7CA7B7E6 C1AF74F6\ - \ 152E99B7 B1FCF9BB E973DE7F 5BDDEB86 C71E3B49 1765308B \n 5FB0DA06 B92AFE7F\ - \ 494E8A9E 07B85737 F3A58BE1 1A48A229 C37C1E69 39F08678 \n 80DDCD16 D6BACECA\ - \ EEBC7CF9 8428787B 35202CDC 60E4616A B623CDBD 230E3AFB \n 418616A9 4093E049\ - \ 4D10AB75 27E86F73 932E35B5 8862FDAE 0275156F 719BB2F0 \n D697DF7F 28\n\ - \ \tquit\ncrypto pki certificate chain TP-self-signed-422690288\n certificate\ - \ self-signed 01\n 3082032E 30820216 A0030201 02020101 300D0609 2A864886\ - \ F70D0101 05050030 \n 30312E30 2C060355 04031325 494F532D 53656C66 2D536967\ - \ 6E65642D 43657274 \n 69666963 6174652D 34323236 39303238 38301E17 0D323130\ - \ 34323431 34343633 \n 325A170D 33303031 30313030 30303030 5A303031 2E302C06\ - \ 03550403 1325494F \n 532D5365 6C662D53 69676E65 642D4365 72746966 69636174\ - \ 652D3432 32363930 \n 32383830 82012230 0D06092A 864886F7 0D010101 05000382\ - \ 010F0030 82010A02 \n 82010100 C27FD6F3 1166295D F49633D3 51450DE6 F9BFCF2F\ - \ 7D3AACC7 3B5ED6B2 \n 3F68308B 39990E36 EBD37E75 A4BEC830 3B2A690B 13830C49\ - \ 2B25D19A E2B96F77 \n BE553C56 EED3B3BB 6584D3BB B1765477 02E693D1 C2316AE4\ - \ 4EE23F38 E346D59F \n D7949E95 C48D9020 FD03136D 57FA5A92 9B8A57CE D455621E\ - \ A72B3D2C AAD3EB8B \n 65CF62D5 C18B005B CA85EAB2 60DAE050 866B4C85 BDBEF084\ - \ 0AA4560F C19B8AA5 \n 287090B9 6B035146 F42C3A94 F2EE4DD5 5A81EEC1 704D5584\ - \ 77ADDBA7 4DF33581 \n CABC4B99 B0FB35E9 25DF1AB1 C898CD50 C859B551 EEEF4A3B\ - \ 703351E7 8094547B \n DB6AC6AC 066D8AAD 96AAF404 336424BB 07876BDD 56B0DEBA\ - \ 4CE59AEF 58F9E6EF \n 3F1B3887 02030100 01A35330 51300F06 03551D13 0101FF04\ - \ 05300301 01FF301F \n 0603551D 23041830 16801452 75C9AA75 B92C6980 AFFF95F7\ - \ 015BA9DB CF56EF30 \n 1D060355 1D0E0416 04145275 C9AA75B9 2C6980AF FF95F701\ - \ 5BA9DBCF 56EF300D \n 06092A86 4886F70D 01010505 00038201 01007990 FB8C5182\ - \ 74A472E9 F8933726 \n 0AAAE421 58EC4C5E DD15BAAE 5E95D5D3 12FE143C 8A80F8FF\ - \ F4512402 DE2D1091 \n F0928C73 ACB88E28 4DADB7CD E5876DE4 FCE7E1C1 EB465801\ - \ 9592F6C0 06501F1F \n 03118D27 7F80C6C0 4C4C3CFC 67FABA0D 65C9E228 B4F43ED9\ - \ FAE62872 FFBCC72F \n 25635208 12E436D4 7F27BA6E 151EE76A 560AC6D4 B9983DF4\ - \ 85D990E7 42A83E9B \n CDB0E802 4D2B1C3B A091CC70 F2878CAF 1222B9D6 9FA625F0\ - \ B4426FAF 75C0B1DE \n 16B3C323 0E1B1D98 9B35DCCD 43A6CA7B C59AF71E FE525B64\ - \ F921D394 5CD3E67B \n 3E808F51 6B93BF9A 28BD9F50 E0C6AB58 4266EA8C 38893595\ - \ BAE03E69 838973C2 \n 928F6137 2DCA8AB4 530DB0E8 57A12266 A50C\n \tquit\n\ - !\nlicense udi pid CSR1000V sn 9MVVU09YZFH\ndiagnostic bootup level minimal\n\ - archive\n log config\n logging enable\n path bootflash:\nmemory free low-watermark\ - \ processor 72329\n!\n!\nspanning-tree extend system-id\n!\nusername vrnetlab\ - \ privilege 15 password 0 VR-netlab9\n!\nredundancy\n!\n!\n!\n!\n!\n!\n! \n\ - !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n! \n! \n!\n!\ninterface GigabitEthernet1\n\ + !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\ncrypto pki trustpoint TP-self-signed-971124804\n\ + \ enrollment selfsigned\n subject-name cn=IOS-Self-Signed-Certificate-971124804\n\ + \ revocation-check none\n rsakeypair TP-self-signed-971124804\n!\ncrypto pki\ + \ trustpoint SLA-TrustPoint\n enrollment pkcs12\n revocation-check crl\n!\n\ + !\ncrypto pki certificate chain TP-self-signed-971124804\n certificate self-signed\ + \ 01\n 3082032E 30820216 A0030201 02020101 300D0609 2A864886 F70D0101 05050030\ + \ \n 30312E30 2C060355 04031325 494F532D 53656C66 2D536967 6E65642D 43657274\ + \ \n 69666963 6174652D 39373131 32343830 34301E17 0D323130 35323831 39323031\ + \ \n 315A170D 33303031 30313030 30303030 5A303031 2E302C06 03550403 1325494F\ + \ \n 532D5365 6C662D53 69676E65 642D4365 72746966 69636174 652D3937 31313234\ + \ \n 38303430 82012230 0D06092A 864886F7 0D010101 05000382 010F0030 82010A02\ + \ \n 82010100 9A5AFB47 FBB29463 C3B0E15E 881CAD52 5C652FC8 498B8FE2 BD025CA6\ + \ \n 9E98FB34 036B5B87 DC88A835 3B3A40DE 84ED8365 7CDA56F0 80630520 CCCE14A6\ + \ \n 9512C259 8D1E30E9 446A45EF 72464059 C0AB9279 F11AC3F6 71DFC173 95B99AE4\ + \ \n 3E4E32C6 00584C6C 7CE8A0FB 2DAEAC90 14516A4B C8B28D8C 444E9DDA 831DA497\ + \ \n 735818E4 5D7253C5 0FEE261A 0B9E9014 49AAAD3E E44AF3B1 351A19DC 7B78BE07\ + \ \n D452B6CC 4032AC79 33D3EC32 178FA55D B4F30EF6 B4AFF847 FB1677B6 A8969B6A\ + \ \n AB7D7019 4436A67B 98CC2808 62136E03 CE3CBE98 D32EF392 85406D04 7CAF3BE7\ + \ \n C2E34EAC 5F69E38A 6CC4E8B9 A00B76EC 79577B9B E5BBAA35 37D6B900 79D5EC0F\ + \ \n 5837E09B 02030100 01A35330 51300F06 03551D13 0101FF04 05300301 01FF301F\ + \ \n 0603551D 23041830 1680143A A780D0ED 95DFA1D7 42E88EBC DFCAA823 CFB03D30\ + \ \n 1D060355 1D0E0416 04143AA7 80D0ED95 DFA1D742 E88EBCDF CAA823CF B03D300D\ + \ \n 06092A86 4886F70D 01010505 00038201 010026D4 17358B20 82C17EC6 33F7ED1D\ + \ \n 8F6A52D0 67A557A0 46461293 D77EE377 1DB715B4 97C4C112 3FE955A9 99D17602\ + \ \n AA6F0DC8 A17F55D1 DDD335BF 4296E3C7 30974AA6 A260D83C EF127FE8 33ABF964\ + \ \n C45FF04C 9E271FD8 B6F4986F F2AA4ED9 AA940143 45F7B6BD 0973946F 35F66CBF\ + \ \n 5A7916D3 AC478064 7C69FE20 C57F7538 4AD5CF79 671270D0 4F779ABE D62485C4\ + \ \n 8979887C 79AA9B8C C6A6036C E2AA78E2 4D4331FC 9C5F5BF8 78E6D796 31697E35\ + \ \n 54C0AA53 E52EECD8 8ECF24E7 8A01A8D9 C33D8353 D9C34F93 CF41336A 02CD7F15\ + \ \n 22C3BF05 23579F26 EFF63502 3ED320ED 67E61168 9E25D8F0 B0FB882C 81E111FD\ + \ \n FC38A6E7 2DC02DC7 4DE9C66E 617E07DA 883A\n \tquit\ncrypto pki certificate\ + \ chain SLA-TrustPoint\n certificate ca 01\n 30820321 30820209 A0030201 02020101\ + \ 300D0609 2A864886 F70D0101 0B050030 \n 32310E30 0C060355 040A1305 43697363\ + \ 6F312030 1E060355 04031317 43697363 \n 6F204C69 63656E73 696E6720 526F6F74\ + \ 20434130 1E170D31 33303533 30313934 \n 3834375A 170D3338 30353330 31393438\ + \ 34375A30 32310E30 0C060355 040A1305 \n 43697363 6F312030 1E060355 04031317\ + \ 43697363 6F204C69 63656E73 696E6720 \n 526F6F74 20434130 82012230 0D06092A\ + \ 864886F7 0D010101 05000382 010F0030 \n 82010A02 82010100 A6BCBD96 131E05F7\ + \ 145EA72C 2CD686E6 17222EA1 F1EFF64D \n CBB4C798 212AA147 C655D8D7 9471380D\ + \ 8711441E 1AAF071A 9CAE6388 8A38E520 \n 1C394D78 462EF239 C659F715 B98C0A59\ + \ 5BBB5CBD 0CFEBEA3 700A8BF7 D8F256EE \n 4AA4E80D DB6FD1C9 60B1FD18 FFC69C96\ + \ 6FA68957 A2617DE7 104FDC5F EA2956AC \n 7390A3EB 2B5436AD C847A2C5 DAB553EB\ + \ 69A9A535 58E9F3E3 C0BD23CF 58BD7188 \n 68E69491 20F320E7 948E71D7 AE3BCC84\ + \ F10684C7 4BC8E00F 539BA42B 42C68BB7 \n C7479096 B4CB2D62 EA2F505D C7B062A4\ + \ 6811D95B E8250FC4 5D5D5FB8 8F27D191 \n C55F0D76 61F9A4CD 3D992327 A8BB03BD\ + \ 4E6D7069 7CBADF8B DF5F4368 95135E44 \n DFC7C6CF 04DD7FD1 02030100 01A34230\ + \ 40300E06 03551D0F 0101FF04 04030201 \n 06300F06 03551D13 0101FF04 05300301\ + \ 01FF301D 0603551D 0E041604 1449DC85 \n 4B3D31E5 1B3E6A17 606AF333 3D3B4C73\ + \ E8300D06 092A8648 86F70D01 010B0500 \n 03820101 00507F24 D3932A66 86025D9F\ + \ E838AE5C 6D4DF6B0 49631C78 240DA905 \n 604EDCDE FF4FED2B 77FC460E CD636FDB\ + \ DD44681E 3A5673AB 9093D3B1 6C9E3D8B \n D98987BF E40CBD9E 1AECA0C2 2189BB5C\ + \ 8FA85686 CD98B646 5575B146 8DFC66A8 \n 467A3DF4 4D565700 6ADF0F0D CF835015\ + \ 3C04FF7C 21E878AC 11BA9CD2 55A9232C \n 7CA7B7E6 C1AF74F6 152E99B7 B1FCF9BB\ + \ E973DE7F 5BDDEB86 C71E3B49 1765308B \n 5FB0DA06 B92AFE7F 494E8A9E 07B85737\ + \ F3A58BE1 1A48A229 C37C1E69 39F08678 \n 80DDCD16 D6BACECA EEBC7CF9 8428787B\ + \ 35202CDC 60E4616A B623CDBD 230E3AFB \n 418616A9 4093E049 4D10AB75 27E86F73\ + \ 932E35B5 8862FDAE 0275156F 719BB2F0 \n D697DF7F 28\n \tquit\n!\nlicense\ + \ udi pid CSR1000V sn 9IB2R42M6QG\ndiagnostic bootup level minimal\narchive\n\ + \ log config\n logging enable\n path bootflash:\nmemory free low-watermark\ + \ processor 72329\n!\n!\nspanning-tree extend system-id\n!\nusername boxen\ + \ privilege 15 password 0 b0x3N-b0x3N\n!\nredundancy\n!\n!\n!\n!\n!\n!\n!\ + \ \n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n! \n! \n!\n!\ninterface GigabitEthernet1\n\ \ ip address 10.0.0.15 255.255.255.0\n negotiation auto\n no mop enabled\n\ \ no mop sysid\n!\ninterface GigabitEthernet2\n no ip address\n shutdown\n\ \ negotiation auto\n no mop enabled\n no mop sysid\n!\ninterface GigabitEthernet3\n\ @@ -142,11 +142,11 @@ localhost:21022:SystemTransport::0: \ GigabitEthernet10\n no ip address\n shutdown\n negotiation auto\n no mop\ \ enabled\n no mop sysid\n!\n!\nvirtual-service csr_mgmt\n!\nip forward-protocol\ \ nd\nno ip http server\nno ip http secure-server\n!\nip ssh pubkey-chain\n\ - \ username vrnetlab\n key-hash ssh-rsa 5CC74A68B18B026A1709FB09D1F44E2F\ - \ \nip scp server enable\n!\n!\n!\n!\n!\n!\n!\ncontrol-plane\n!\n!\n!\n!\n\ - !\n!\nline con 0\n stopbits 1\nline vty 0 4\n login local\n transport input\ - \ all\nline vty 5 15\n login local\n transport input all\n!\nnetconf ssh\n\ - !\n!\n!\n!\n!\nnetconf-yang\nend\n\ncsr1000v#" + \ username boxen\n key-hash ssh-rsa 5CC74A68B18B026A1709FB09D1F44E2F \n\ + ip scp server enable\n!\n!\n!\n!\n!\n!\n!\ncontrol-plane\n!\n!\n!\n!\n!\n\ + !\nline con 0\n stopbits 1\nline vty 0 4\n login local\n transport input all\n\ + line vty 5 15\n login local\n transport input all\n!\nnetconf ssh\n!\n!\n\ + !\n!\n!\nnetconf-yang\nend\n\ncsr1000v#" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\ncsr1000v#" diff --git a/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxe-telnet].yaml b/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxe-telnet].yaml index d3330b7..f614895 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxe-telnet].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxe-telnet].yaml @@ -2,7 +2,7 @@ localhost:21023:TelnetTransport::0: connection_profile: host: localhost port: 21023 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -11,12 +11,12 @@ localhost:21023:TelnetTransport::0: auth_secondary: true interactions: - channel_output: "\n\nUser Access Verification\n\nUsername: " - expected_channel_input: vrnetlab + expected_channel_input: boxen expected_channel_input_redacted: false - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "vrnetlab\nPassword: " + - channel_output: "boxen\nPassword: " expected_channel_input: REDACTED expected_channel_input_redacted: true - channel_output: '' @@ -54,13 +54,13 @@ localhost:21023:TelnetTransport::0: - channel_output: show running-config expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nBuilding configuration...\n\nCurrent configuration : 7021\ - \ bytes\n!\n! Last configuration change at 19:33:06 UTC Tue Apr 27 2021 by\ - \ vrnetlab\n!\nversion 16.12\nservice timestamps debug datetime msec\nservice\ + - channel_output: "\nBuilding configuration...\n\nCurrent configuration : 7013\ + \ bytes\n!\n! Last configuration change at 12:44:10 UTC Sat May 29 2021 by\ + \ boxen\n!\nversion 16.12\nservice timestamps debug datetime msec\nservice\ \ timestamps log datetime msec\nservice call-home\nplatform qfp utilization\ \ monitor load 80\nplatform punt-keepalive disable-kernel-core\nplatform console\ \ serial\n!\nhostname csr1000v\n!\nboot-start-marker\nboot-end-marker\n!\n\ - !\nenable secret 9 $9$h6Ayg86tb/EImk$2T6Ns.ke08cAlZ2TbMf3YRCYr7ngDGzgAxZB0YMe7lQ\n\ + !\nenable secret 9 $9$xvWnx8Fe35f8xE$E9ijp7GM/V48P5y1Uz3IEPtotXgwkJKYJmN0q3q2E92\n\ !\nno aaa new-model\ncall-home\n ! If contact email address in call-home is\ \ configured as sch-smart-licensing@cisco.com\n ! the email address configured\ \ in Cisco Smart License Portal will be used as contact email address to send\ @@ -69,68 +69,68 @@ localhost:21023:TelnetTransport::0: \ no destination transport-method email\n!\n!\n!\n!\n!\n!\n!\nip domain name\ \ example.com\n!\n!\n!\nlogin on-success log\n!\n!\n!\n!\n!\n!\n!\nsubscriber\ \ templating\n! \n! \n! \n! \n!\n!\nmultilink bundle-name authenticated\n\ - !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\ncrypto pki trustpoint SLA-TrustPoint\n\ - \ enrollment pkcs12\n revocation-check crl\n!\ncrypto pki trustpoint TP-self-signed-422690288\n\ - \ enrollment selfsigned\n subject-name cn=IOS-Self-Signed-Certificate-422690288\n\ - \ revocation-check none\n rsakeypair TP-self-signed-422690288\n!\n!\ncrypto\ - \ pki certificate chain SLA-TrustPoint\n certificate ca 01\n 30820321 30820209\ - \ A0030201 02020101 300D0609 2A864886 F70D0101 0B050030 \n 32310E30 0C060355\ - \ 040A1305 43697363 6F312030 1E060355 04031317 43697363 \n 6F204C69 63656E73\ - \ 696E6720 526F6F74 20434130 1E170D31 33303533 30313934 \n 3834375A 170D3338\ - \ 30353330 31393438 34375A30 32310E30 0C060355 040A1305 \n 43697363 6F312030\ - \ 1E060355 04031317 43697363 6F204C69 63656E73 696E6720 \n 526F6F74 20434130\ - \ 82012230 0D06092A 864886F7 0D010101 05000382 010F0030 \n 82010A02 82010100\ - \ A6BCBD96 131E05F7 145EA72C 2CD686E6 17222EA1 F1EFF64D \n CBB4C798 212AA147\ - \ C655D8D7 9471380D 8711441E 1AAF071A 9CAE6388 8A38E520 \n 1C394D78 462EF239\ - \ C659F715 B98C0A59 5BBB5CBD 0CFEBEA3 700A8BF7 D8F256EE \n 4AA4E80D DB6FD1C9\ - \ 60B1FD18 FFC69C96 6FA68957 A2617DE7 104FDC5F EA2956AC \n 7390A3EB 2B5436AD\ - \ C847A2C5 DAB553EB 69A9A535 58E9F3E3 C0BD23CF 58BD7188 \n 68E69491 20F320E7\ - \ 948E71D7 AE3BCC84 F10684C7 4BC8E00F 539BA42B 42C68BB7 \n C7479096 B4CB2D62\ - \ EA2F505D C7B062A4 6811D95B E8250FC4 5D5D5FB8 8F27D191 \n C55F0D76 61F9A4CD\ - \ 3D992327 A8BB03BD 4E6D7069 7CBADF8B DF5F4368 95135E44 \n DFC7C6CF 04DD7FD1\ - \ 02030100 01A34230 40300E06 03551D0F 0101FF04 04030201 \n 06300F06 03551D13\ - \ 0101FF04 05300301 01FF301D 0603551D 0E041604 1449DC85 \n 4B3D31E5 1B3E6A17\ - \ 606AF333 3D3B4C73 E8300D06 092A8648 86F70D01 010B0500 \n 03820101 00507F24\ - \ D3932A66 86025D9F E838AE5C 6D4DF6B0 49631C78 240DA905 \n 604EDCDE FF4FED2B\ - \ 77FC460E CD636FDB DD44681E 3A5673AB 9093D3B1 6C9E3D8B \n D98987BF E40CBD9E\ - \ 1AECA0C2 2189BB5C 8FA85686 CD98B646 5575B146 8DFC66A8 \n 467A3DF4 4D565700\ - \ 6ADF0F0D CF835015 3C04FF7C 21E878AC 11BA9CD2 55A9232C \n 7CA7B7E6 C1AF74F6\ - \ 152E99B7 B1FCF9BB E973DE7F 5BDDEB86 C71E3B49 1765308B \n 5FB0DA06 B92AFE7F\ - \ 494E8A9E 07B85737 F3A58BE1 1A48A229 C37C1E69 39F08678 \n 80DDCD16 D6BACECA\ - \ EEBC7CF9 8428787B 35202CDC 60E4616A B623CDBD 230E3AFB \n 418616A9 4093E049\ - \ 4D10AB75 27E86F73 932E35B5 8862FDAE 0275156F 719BB2F0 \n D697DF7F 28\n\ - \ \tquit\ncrypto pki certificate chain TP-self-signed-422690288\n certificate\ - \ self-signed 01\n 3082032E 30820216 A0030201 02020101 300D0609 2A864886\ - \ F70D0101 05050030 \n 30312E30 2C060355 04031325 494F532D 53656C66 2D536967\ - \ 6E65642D 43657274 \n 69666963 6174652D 34323236 39303238 38301E17 0D323130\ - \ 34323431 34343633 \n 325A170D 33303031 30313030 30303030 5A303031 2E302C06\ - \ 03550403 1325494F \n 532D5365 6C662D53 69676E65 642D4365 72746966 69636174\ - \ 652D3432 32363930 \n 32383830 82012230 0D06092A 864886F7 0D010101 05000382\ - \ 010F0030 82010A02 \n 82010100 C27FD6F3 1166295D F49633D3 51450DE6 F9BFCF2F\ - \ 7D3AACC7 3B5ED6B2 \n 3F68308B 39990E36 EBD37E75 A4BEC830 3B2A690B 13830C49\ - \ 2B25D19A E2B96F77 \n BE553C56 EED3B3BB 6584D3BB B1765477 02E693D1 C2316AE4\ - \ 4EE23F38 E346D59F \n D7949E95 C48D9020 FD03136D 57FA5A92 9B8A57CE D455621E\ - \ A72B3D2C AAD3EB8B \n 65CF62D5 C18B005B CA85EAB2 60DAE050 866B4C85 BDBEF084\ - \ 0AA4560F C19B8AA5 \n 287090B9 6B035146 F42C3A94 F2EE4DD5 5A81EEC1 704D5584\ - \ 77ADDBA7 4DF33581 \n CABC4B99 B0FB35E9 25DF1AB1 C898CD50 C859B551 EEEF4A3B\ - \ 703351E7 8094547B \n DB6AC6AC 066D8AAD 96AAF404 336424BB 07876BDD 56B0DEBA\ - \ 4CE59AEF 58F9E6EF \n 3F1B3887 02030100 01A35330 51300F06 03551D13 0101FF04\ - \ 05300301 01FF301F \n 0603551D 23041830 16801452 75C9AA75 B92C6980 AFFF95F7\ - \ 015BA9DB CF56EF30 \n 1D060355 1D0E0416 04145275 C9AA75B9 2C6980AF FF95F701\ - \ 5BA9DBCF 56EF300D \n 06092A86 4886F70D 01010505 00038201 01007990 FB8C5182\ - \ 74A472E9 F8933726 \n 0AAAE421 58EC4C5E DD15BAAE 5E95D5D3 12FE143C 8A80F8FF\ - \ F4512402 DE2D1091 \n F0928C73 ACB88E28 4DADB7CD E5876DE4 FCE7E1C1 EB465801\ - \ 9592F6C0 06501F1F \n 03118D27 7F80C6C0 4C4C3CFC 67FABA0D 65C9E228 B4F43ED9\ - \ FAE62872 FFBCC72F \n 25635208 12E436D4 7F27BA6E 151EE76A 560AC6D4 B9983DF4\ - \ 85D990E7 42A83E9B \n CDB0E802 4D2B1C3B A091CC70 F2878CAF 1222B9D6 9FA625F0\ - \ B4426FAF 75C0B1DE \n 16B3C323 0E1B1D98 9B35DCCD 43A6CA7B C59AF71E FE525B64\ - \ F921D394 5CD3E67B \n 3E808F51 6B93BF9A 28BD9F50 E0C6AB58 4266EA8C 38893595\ - \ BAE03E69 838973C2 \n 928F6137 2DCA8AB4 530DB0E8 57A12266 A50C\n \tquit\n\ - !\nlicense udi pid CSR1000V sn 9MVVU09YZFH\ndiagnostic bootup level minimal\n\ - archive\n log config\n logging enable\n path bootflash:\nmemory free low-watermark\ - \ processor 72329\n!\n!\nspanning-tree extend system-id\n!\nusername vrnetlab\ - \ privilege 15 password 0 VR-netlab9\n!\nredundancy\n!\n!\n!\n!\n!\n!\n! \n\ - !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n! \n! \n!\n!\ninterface GigabitEthernet1\n\ + !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\ncrypto pki trustpoint TP-self-signed-971124804\n\ + \ enrollment selfsigned\n subject-name cn=IOS-Self-Signed-Certificate-971124804\n\ + \ revocation-check none\n rsakeypair TP-self-signed-971124804\n!\ncrypto pki\ + \ trustpoint SLA-TrustPoint\n enrollment pkcs12\n revocation-check crl\n!\n\ + !\ncrypto pki certificate chain TP-self-signed-971124804\n certificate self-signed\ + \ 01\n 3082032E 30820216 A0030201 02020101 300D0609 2A864886 F70D0101 05050030\ + \ \n 30312E30 2C060355 04031325 494F532D 53656C66 2D536967 6E65642D 43657274\ + \ \n 69666963 6174652D 39373131 32343830 34301E17 0D323130 35323831 39323031\ + \ \n 315A170D 33303031 30313030 30303030 5A303031 2E302C06 03550403 1325494F\ + \ \n 532D5365 6C662D53 69676E65 642D4365 72746966 69636174 652D3937 31313234\ + \ \n 38303430 82012230 0D06092A 864886F7 0D010101 05000382 010F0030 82010A02\ + \ \n 82010100 9A5AFB47 FBB29463 C3B0E15E 881CAD52 5C652FC8 498B8FE2 BD025CA6\ + \ \n 9E98FB34 036B5B87 DC88A835 3B3A40DE 84ED8365 7CDA56F0 80630520 CCCE14A6\ + \ \n 9512C259 8D1E30E9 446A45EF 72464059 C0AB9279 F11AC3F6 71DFC173 95B99AE4\ + \ \n 3E4E32C6 00584C6C 7CE8A0FB 2DAEAC90 14516A4B C8B28D8C 444E9DDA 831DA497\ + \ \n 735818E4 5D7253C5 0FEE261A 0B9E9014 49AAAD3E E44AF3B1 351A19DC 7B78BE07\ + \ \n D452B6CC 4032AC79 33D3EC32 178FA55D B4F30EF6 B4AFF847 FB1677B6 A8969B6A\ + \ \n AB7D7019 4436A67B 98CC2808 62136E03 CE3CBE98 D32EF392 85406D04 7CAF3BE7\ + \ \n C2E34EAC 5F69E38A 6CC4E8B9 A00B76EC 79577B9B E5BBAA35 37D6B900 79D5EC0F\ + \ \n 5837E09B 02030100 01A35330 51300F06 03551D13 0101FF04 05300301 01FF301F\ + \ \n 0603551D 23041830 1680143A A780D0ED 95DFA1D7 42E88EBC DFCAA823 CFB03D30\ + \ \n 1D060355 1D0E0416 04143AA7 80D0ED95 DFA1D742 E88EBCDF CAA823CF B03D300D\ + \ \n 06092A86 4886F70D 01010505 00038201 010026D4 17358B20 82C17EC6 33F7ED1D\ + \ \n 8F6A52D0 67A557A0 46461293 D77EE377 1DB715B4 97C4C112 3FE955A9 99D17602\ + \ \n AA6F0DC8 A17F55D1 DDD335BF 4296E3C7 30974AA6 A260D83C EF127FE8 33ABF964\ + \ \n C45FF04C 9E271FD8 B6F4986F F2AA4ED9 AA940143 45F7B6BD 0973946F 35F66CBF\ + \ \n 5A7916D3 AC478064 7C69FE20 C57F7538 4AD5CF79 671270D0 4F779ABE D62485C4\ + \ \n 8979887C 79AA9B8C C6A6036C E2AA78E2 4D4331FC 9C5F5BF8 78E6D796 31697E35\ + \ \n 54C0AA53 E52EECD8 8ECF24E7 8A01A8D9 C33D8353 D9C34F93 CF41336A 02CD7F15\ + \ \n 22C3BF05 23579F26 EFF63502 3ED320ED 67E61168 9E25D8F0 B0FB882C 81E111FD\ + \ \n FC38A6E7 2DC02DC7 4DE9C66E 617E07DA 883A\n \tquit\ncrypto pki certificate\ + \ chain SLA-TrustPoint\n certificate ca 01\n 30820321 30820209 A0030201 02020101\ + \ 300D0609 2A864886 F70D0101 0B050030 \n 32310E30 0C060355 040A1305 43697363\ + \ 6F312030 1E060355 04031317 43697363 \n 6F204C69 63656E73 696E6720 526F6F74\ + \ 20434130 1E170D31 33303533 30313934 \n 3834375A 170D3338 30353330 31393438\ + \ 34375A30 32310E30 0C060355 040A1305 \n 43697363 6F312030 1E060355 04031317\ + \ 43697363 6F204C69 63656E73 696E6720 \n 526F6F74 20434130 82012230 0D06092A\ + \ 864886F7 0D010101 05000382 010F0030 \n 82010A02 82010100 A6BCBD96 131E05F7\ + \ 145EA72C 2CD686E6 17222EA1 F1EFF64D \n CBB4C798 212AA147 C655D8D7 9471380D\ + \ 8711441E 1AAF071A 9CAE6388 8A38E520 \n 1C394D78 462EF239 C659F715 B98C0A59\ + \ 5BBB5CBD 0CFEBEA3 700A8BF7 D8F256EE \n 4AA4E80D DB6FD1C9 60B1FD18 FFC69C96\ + \ 6FA68957 A2617DE7 104FDC5F EA2956AC \n 7390A3EB 2B5436AD C847A2C5 DAB553EB\ + \ 69A9A535 58E9F3E3 C0BD23CF 58BD7188 \n 68E69491 20F320E7 948E71D7 AE3BCC84\ + \ F10684C7 4BC8E00F 539BA42B 42C68BB7 \n C7479096 B4CB2D62 EA2F505D C7B062A4\ + \ 6811D95B E8250FC4 5D5D5FB8 8F27D191 \n C55F0D76 61F9A4CD 3D992327 A8BB03BD\ + \ 4E6D7069 7CBADF8B DF5F4368 95135E44 \n DFC7C6CF 04DD7FD1 02030100 01A34230\ + \ 40300E06 03551D0F 0101FF04 04030201 \n 06300F06 03551D13 0101FF04 05300301\ + \ 01FF301D 0603551D 0E041604 1449DC85 \n 4B3D31E5 1B3E6A17 606AF333 3D3B4C73\ + \ E8300D06 092A8648 86F70D01 010B0500 \n 03820101 00507F24 D3932A66 86025D9F\ + \ E838AE5C 6D4DF6B0 49631C78 240DA905 \n 604EDCDE FF4FED2B 77FC460E CD636FDB\ + \ DD44681E 3A5673AB 9093D3B1 6C9E3D8B \n D98987BF E40CBD9E 1AECA0C2 2189BB5C\ + \ 8FA85686 CD98B646 5575B146 8DFC66A8 \n 467A3DF4 4D565700 6ADF0F0D CF835015\ + \ 3C04FF7C 21E878AC 11BA9CD2 55A9232C \n 7CA7B7E6 C1AF74F6 152E99B7 B1FCF9BB\ + \ E973DE7F 5BDDEB86 C71E3B49 1765308B \n 5FB0DA06 B92AFE7F 494E8A9E 07B85737\ + \ F3A58BE1 1A48A229 C37C1E69 39F08678 \n 80DDCD16 D6BACECA EEBC7CF9 8428787B\ + \ 35202CDC 60E4616A B623CDBD 230E3AFB \n 418616A9 4093E049 4D10AB75 27E86F73\ + \ 932E35B5 8862FDAE 0275156F 719BB2F0 \n D697DF7F 28\n \tquit\n!\nlicense\ + \ udi pid CSR1000V sn 9IB2R42M6QG\ndiagnostic bootup level minimal\narchive\n\ + \ log config\n logging enable\n path bootflash:\nmemory free low-watermark\ + \ processor 72329\n!\n!\nspanning-tree extend system-id\n!\nusername boxen\ + \ privilege 15 password 0 b0x3N-b0x3N\n!\nredundancy\n!\n!\n!\n!\n!\n!\n!\ + \ \n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n! \n! \n!\n!\ninterface GigabitEthernet1\n\ \ ip address 10.0.0.15 255.255.255.0\n negotiation auto\n no mop enabled\n\ \ no mop sysid\n!\ninterface GigabitEthernet2\n no ip address\n shutdown\n\ \ negotiation auto\n no mop enabled\n no mop sysid\n!\ninterface GigabitEthernet3\n\ @@ -147,11 +147,11 @@ localhost:21023:TelnetTransport::0: \ GigabitEthernet10\n no ip address\n shutdown\n negotiation auto\n no mop\ \ enabled\n no mop sysid\n!\n!\nvirtual-service csr_mgmt\n!\nip forward-protocol\ \ nd\nno ip http server\nno ip http secure-server\n!\nip ssh pubkey-chain\n\ - \ username vrnetlab\n key-hash ssh-rsa 5CC74A68B18B026A1709FB09D1F44E2F\ - \ \nip scp server enable\n!\n!\n!\n!\n!\n!\n!\ncontrol-plane\n!\n!\n!\n!\n\ - !\n!\nline con 0\n stopbits 1\nline vty 0 4\n login local\n transport input\ - \ all\nline vty 5 15\n login local\n transport input all\n!\nnetconf ssh\n\ - !\n!\n!\n!\n!\nnetconf-yang\nend\n\ncsr1000v#" + \ username boxen\n key-hash ssh-rsa 5CC74A68B18B026A1709FB09D1F44E2F \n\ + ip scp server enable\n!\n!\n!\n!\n!\n!\n!\ncontrol-plane\n!\n!\n!\n!\n!\n\ + !\nline con 0\n stopbits 1\nline vty 0 4\n login local\n transport input all\n\ + line vty 5 15\n login local\n transport input all\n!\nnetconf ssh\n!\n!\n\ + !\n!\n!\nnetconf-yang\nend\n\ncsr1000v#" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\ncsr1000v#" diff --git a/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxr-asyncssh].yaml b/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxr-asyncssh].yaml index 7524b1d..df8634d 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxr-asyncssh].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxr-asyncssh].yaml @@ -2,7 +2,7 @@ localhost:23022:AsyncsshTransport::0: connection_profile: host: localhost port: 23022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -13,35 +13,35 @@ localhost:23022:AsyncsshTransport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nRP/0/RP0/CPU0:ios#\n" + - channel_output: "\n\n\nRP/0/RP0/CPU0:ios#" expected_channel_input: terminal length 0 expected_channel_input_redacted: false - - channel_output: RP/0/RP0/CPU0:ios#terminal length 0 + - channel_output: terminal length 0 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:56:56.737 UTC\nRP/0/RP0/CPU0:ios#" + - channel_output: "\nSat May 29 13:08:48.900 UTC\nRP/0/RP0/CPU0:ios#" expected_channel_input: terminal width 512 expected_channel_input_redacted: false - channel_output: terminal width 512 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:56:56.825 UTC\nRP/0/RP0/CPU0:ios#" + - channel_output: "\nSat May 29 13:08:49.036 UTC\nRP/0/RP0/CPU0:ios#" expected_channel_input: show version | i Version expected_channel_input_redacted: false - channel_output: show version | i Version expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:56:56.926 UTC\nCisco IOS XR Software, Version\ + - channel_output: "\nSat May 29 13:08:49.149 UTC\nCisco IOS XR Software, Version\ \ 6.5.3\n Version : 6.5.3\nRP/0/RP0/CPU0:ios#" expected_channel_input: show running-config expected_channel_input_redacted: false - channel_output: show running-config expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:56:57.088 UTC\nBuilding configuration...\n\ - !! IOS XR Configuration version = 6.5.3\n!! Last configuration change at Tue\ - \ Apr 27 00:13:12 2021 by vrnetlab\n!\ntelnet vrf default ipv4 server max-servers\ - \ 10\nusername vrnetlab\n group root-lr\n group cisco-support\n secret 5 $1$5aFx$Ul43RjEjA7C4LFsghgQCu0\n\ + - channel_output: "\nSat May 29 13:08:49.257 UTC\nBuilding configuration...\n\ + !! IOS XR Configuration version = 6.5.3\n!! Last configuration change at Sat\ + \ May 29 01:20:11 2021 by boxen\n!\ntelnet vrf default ipv4 server max-servers\ + \ 10\nusername boxen\n group root-lr\n group cisco-support\n secret 5 $1$ERrP$IwIygdqbJGkqrXZDtaWVI0\n\ !\ncall-home\n service active\n contact smart-licensing\n profile CiscoTAC-1\n\ \ active\n destination transport-method http\n !\n!\ninterface MgmtEth0/RP0/CPU0/0\n\ \ ipv4 address 10.0.0.15 255.255.255.0\n!\ninterface GigabitEthernet0/0/0/0\n\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxr-asynctelnet].yaml b/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxr-asynctelnet].yaml index 3469f0b..dfaab36 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxr-asynctelnet].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxr-asynctelnet].yaml @@ -2,7 +2,7 @@ localhost:23023:AsynctelnetTransport::0: connection_profile: host: localhost port: 23023 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -11,12 +11,12 @@ localhost:23023:AsynctelnetTransport::0: auth_secondary: false interactions: - channel_output: "\nUser Access Verification\n\nUsername: " - expected_channel_input: vrnetlab + expected_channel_input: boxen expected_channel_input_redacted: false - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "vrnetlab\nPassword: " + - channel_output: "boxen\nPassword: " expected_channel_input: REDACTED expected_channel_input_redacted: true - channel_output: '' @@ -31,29 +31,29 @@ localhost:23023:AsynctelnetTransport::0: - channel_output: terminal length 0 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:57:05.876 UTC\nRP/0/RP0/CPU0:ios#" + - channel_output: "\nSat May 29 13:08:57.170 UTC\nRP/0/RP0/CPU0:ios#" expected_channel_input: terminal width 512 expected_channel_input_redacted: false - channel_output: terminal width 512 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:57:05.956 UTC\nRP/0/RP0/CPU0:ios#" + - channel_output: "\nSat May 29 13:08:57.271 UTC\nRP/0/RP0/CPU0:ios#" expected_channel_input: show version | i Version expected_channel_input_redacted: false - channel_output: show version | i Version expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:57:06.056 UTC\nCisco IOS XR Software, Version\ + - channel_output: "\nSat May 29 13:08:57.363 UTC\nCisco IOS XR Software, Version\ \ 6.5.3\n Version : 6.5.3\nRP/0/RP0/CPU0:ios#" expected_channel_input: show running-config expected_channel_input_redacted: false - channel_output: show running-config expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:57:06.166 UTC\nBuilding configuration...\n\ - !! IOS XR Configuration version = 6.5.3\n!! Last configuration change at Tue\ - \ Apr 27 00:13:12 2021 by vrnetlab\n!\ntelnet vrf default ipv4 server max-servers\ - \ 10\nusername vrnetlab\n group root-lr\n group cisco-support\n secret 5 $1$5aFx$Ul43RjEjA7C4LFsghgQCu0\n\ + - channel_output: "\nSat May 29 13:08:57.470 UTC\nBuilding configuration...\n\ + !! IOS XR Configuration version = 6.5.3\n!! Last configuration change at Sat\ + \ May 29 01:20:11 2021 by boxen\n!\ntelnet vrf default ipv4 server max-servers\ + \ 10\nusername boxen\n group root-lr\n group cisco-support\n secret 5 $1$ERrP$IwIygdqbJGkqrXZDtaWVI0\n\ !\ncall-home\n service active\n contact smart-licensing\n profile CiscoTAC-1\n\ \ active\n destination transport-method http\n !\n!\ninterface MgmtEth0/RP0/CPU0/0\n\ \ ipv4 address 10.0.0.15 255.255.255.0\n!\ninterface GigabitEthernet0/0/0/0\n\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxr-paramiko].yaml b/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxr-paramiko].yaml index a5be93b..c565ef9 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxr-paramiko].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxr-paramiko].yaml @@ -2,7 +2,7 @@ localhost:23022:ParamikoTransport::0: connection_profile: host: localhost port: 23022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -13,35 +13,35 @@ localhost:23022:ParamikoTransport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nRP/0/RP0/CPU0:ios#" + - channel_output: "\n\n\nRP/0/RP0/CPU0:ios#" expected_channel_input: terminal length 0 expected_channel_input_redacted: false - - channel_output: "\nRP/0/RP0/CPU0:ios#terminal length 0" + - channel_output: terminal length 0 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:43:10.172 UTC\nRP/0/RP0/CPU0:ios#" + - channel_output: "\nSat May 29 13:07:44.835 UTC\nRP/0/RP0/CPU0:ios#" expected_channel_input: terminal width 512 expected_channel_input_redacted: false - channel_output: terminal width 512 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:43:10.254 UTC\nRP/0/RP0/CPU0:ios#" + - channel_output: "\nSat May 29 13:07:44.954 UTC\nRP/0/RP0/CPU0:ios#" expected_channel_input: show version | i Version expected_channel_input_redacted: false - channel_output: show version | i Version expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:43:10.341 UTC\nCisco IOS XR Software, Version\ + - channel_output: "\nSat May 29 13:07:45.056 UTC\nCisco IOS XR Software, Version\ \ 6.5.3\n Version : 6.5.3\nRP/0/RP0/CPU0:ios#" expected_channel_input: show running-config expected_channel_input_redacted: false - channel_output: show running-config expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:43:10.468 UTC\nBuilding configuration...\n\ - !! IOS XR Configuration version = 6.5.3\n!! Last configuration change at Tue\ - \ Apr 27 00:13:12 2021 by vrnetlab\n!\ntelnet vrf default ipv4 server max-servers\ - \ 10\nusername vrnetlab\n group root-lr\n group cisco-support\n secret 5 $1$5aFx$Ul43RjEjA7C4LFsghgQCu0\n\ + - channel_output: "\nSat May 29 13:07:45.168 UTC\nBuilding configuration...\n\ + !! IOS XR Configuration version = 6.5.3\n!! Last configuration change at Sat\ + \ May 29 01:20:11 2021 by boxen\n!\ntelnet vrf default ipv4 server max-servers\ + \ 10\nusername boxen\n group root-lr\n group cisco-support\n secret 5 $1$ERrP$IwIygdqbJGkqrXZDtaWVI0\n\ !\ncall-home\n service active\n contact smart-licensing\n profile CiscoTAC-1\n\ \ active\n destination transport-method http\n !\n!\ninterface MgmtEth0/RP0/CPU0/0\n\ \ ipv4 address 10.0.0.15 255.255.255.0\n!\ninterface GigabitEthernet0/0/0/0\n\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxr-ssh2].yaml b/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxr-ssh2].yaml index 707ea26..36b9811 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxr-ssh2].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxr-ssh2].yaml @@ -2,7 +2,7 @@ localhost:23022:Ssh2Transport::0: connection_profile: host: localhost port: 23022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -13,35 +13,35 @@ localhost:23022:Ssh2Transport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nRP/0/RP0/CPU0:ios#" + - channel_output: "\n\n\nRP/0/RP0/CPU0:ios#" expected_channel_input: terminal length 0 expected_channel_input_redacted: false - - channel_output: "\nRP/0/RP0/CPU0:ios#terminal length 0" + - channel_output: terminal length 0 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:43:07.842 UTC\nRP/0/RP0/CPU0:ios#" + - channel_output: "\nSat May 29 13:07:42.771 UTC\nRP/0/RP0/CPU0:ios#" expected_channel_input: terminal width 512 expected_channel_input_redacted: false - channel_output: terminal width 512 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:43:07.914 UTC\nRP/0/RP0/CPU0:ios#" + - channel_output: "\nSat May 29 13:07:42.895 UTC\nRP/0/RP0/CPU0:ios#" expected_channel_input: show version | i Version expected_channel_input_redacted: false - channel_output: show version | i Version expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:43:08.010 UTC\nCisco IOS XR Software, Version\ + - channel_output: "\nSat May 29 13:07:42.993 UTC\nCisco IOS XR Software, Version\ \ 6.5.3\n Version : 6.5.3\nRP/0/RP0/CPU0:ios#" expected_channel_input: show running-config expected_channel_input_redacted: false - channel_output: show running-config expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:43:08.113 UTC\nBuilding configuration...\n\ - !! IOS XR Configuration version = 6.5.3\n!! Last configuration change at Tue\ - \ Apr 27 00:13:12 2021 by vrnetlab\n!\ntelnet vrf default ipv4 server max-servers\ - \ 10\nusername vrnetlab\n group root-lr\n group cisco-support\n secret 5 $1$5aFx$Ul43RjEjA7C4LFsghgQCu0\n\ + - channel_output: "\nSat May 29 13:07:43.111 UTC\nBuilding configuration...\n\ + !! IOS XR Configuration version = 6.5.3\n!! Last configuration change at Sat\ + \ May 29 01:20:11 2021 by boxen\n!\ntelnet vrf default ipv4 server max-servers\ + \ 10\nusername boxen\n group root-lr\n group cisco-support\n secret 5 $1$ERrP$IwIygdqbJGkqrXZDtaWVI0\n\ !\ncall-home\n service active\n contact smart-licensing\n profile CiscoTAC-1\n\ \ active\n destination transport-method http\n !\n!\ninterface MgmtEth0/RP0/CPU0/0\n\ \ ipv4 address 10.0.0.15 255.255.255.0\n!\ninterface GigabitEthernet0/0/0/0\n\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxr-system].yaml b/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxr-system].yaml index f83f14e..db93d87 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxr-system].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxr-system].yaml @@ -2,7 +2,7 @@ localhost:23022:SystemTransport::0: connection_profile: host: localhost port: 23022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -26,29 +26,29 @@ localhost:23022:SystemTransport::0: - channel_output: terminal length 0 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:43:05.467 UTC\nRP/0/RP0/CPU0:ios#" + - channel_output: "\nSat May 29 13:07:40.050 UTC\nRP/0/RP0/CPU0:ios#" expected_channel_input: terminal width 512 expected_channel_input_redacted: false - channel_output: terminal width 512 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:43:05.551 UTC\nRP/0/RP0/CPU0:ios#" + - channel_output: "\nSat May 29 13:07:40.171 UTC\nRP/0/RP0/CPU0:ios#" expected_channel_input: show version | i Version expected_channel_input_redacted: false - channel_output: show version | i Version expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:43:05.645 UTC\nCisco IOS XR Software, Version\ + - channel_output: "\nSat May 29 13:07:40.280 UTC\nCisco IOS XR Software, Version\ \ 6.5.3\n Version : 6.5.3\nRP/0/RP0/CPU0:ios#" expected_channel_input: show running-config expected_channel_input_redacted: false - channel_output: show running-config expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:43:05.752 UTC\nBuilding configuration...\n\ - !! IOS XR Configuration version = 6.5.3\n!! Last configuration change at Tue\ - \ Apr 27 00:13:12 2021 by vrnetlab\n!\ntelnet vrf default ipv4 server max-servers\ - \ 10\nusername vrnetlab\n group root-lr\n group cisco-support\n secret 5 $1$5aFx$Ul43RjEjA7C4LFsghgQCu0\n\ + - channel_output: "\nSat May 29 13:07:40.394 UTC\nBuilding configuration...\n\ + !! IOS XR Configuration version = 6.5.3\n!! Last configuration change at Sat\ + \ May 29 01:20:11 2021 by boxen\n!\ntelnet vrf default ipv4 server max-servers\ + \ 10\nusername boxen\n group root-lr\n group cisco-support\n secret 5 $1$ERrP$IwIygdqbJGkqrXZDtaWVI0\n\ !\ncall-home\n service active\n contact smart-licensing\n profile CiscoTAC-1\n\ \ active\n destination transport-method http\n !\n!\ninterface MgmtEth0/RP0/CPU0/0\n\ \ ipv4 address 10.0.0.15 255.255.255.0\n!\ninterface GigabitEthernet0/0/0/0\n\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxr-telnet].yaml b/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxr-telnet].yaml index 994ad79..11c1015 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxr-telnet].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_iosxr-telnet].yaml @@ -2,7 +2,7 @@ localhost:23023:TelnetTransport::0: connection_profile: host: localhost port: 23023 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -11,12 +11,12 @@ localhost:23023:TelnetTransport::0: auth_secondary: true interactions: - channel_output: "\nUser Access Verification\n\nUsername: " - expected_channel_input: vrnetlab + expected_channel_input: boxen expected_channel_input_redacted: false - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "vrnetlab\nPassword: " + - channel_output: "boxen\nPassword: " expected_channel_input: REDACTED expected_channel_input_redacted: true - channel_output: '' @@ -31,29 +31,29 @@ localhost:23023:TelnetTransport::0: - channel_output: terminal length 0 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:43:13.076 UTC\nRP/0/RP0/CPU0:ios#" + - channel_output: "\nSat May 29 13:07:46.971 UTC\nRP/0/RP0/CPU0:ios#" expected_channel_input: terminal width 512 expected_channel_input_redacted: false - channel_output: terminal width 512 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:43:13.156 UTC\nRP/0/RP0/CPU0:ios#" + - channel_output: "\nSat May 29 13:07:47.094 UTC\nRP/0/RP0/CPU0:ios#" expected_channel_input: show version | i Version expected_channel_input_redacted: false - channel_output: show version | i Version expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:43:13.244 UTC\nCisco IOS XR Software, Version\ + - channel_output: "\nSat May 29 13:07:47.224 UTC\nCisco IOS XR Software, Version\ \ 6.5.3\n Version : 6.5.3\nRP/0/RP0/CPU0:ios#" expected_channel_input: show running-config expected_channel_input_redacted: false - channel_output: show running-config expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:43:13.347 UTC\nBuilding configuration...\n\ - !! IOS XR Configuration version = 6.5.3\n!! Last configuration change at Tue\ - \ Apr 27 00:13:12 2021 by vrnetlab\n!\ntelnet vrf default ipv4 server max-servers\ - \ 10\nusername vrnetlab\n group root-lr\n group cisco-support\n secret 5 $1$5aFx$Ul43RjEjA7C4LFsghgQCu0\n\ + - channel_output: "\nSat May 29 13:07:47.366 UTC\nBuilding configuration...\n\ + !! IOS XR Configuration version = 6.5.3\n!! Last configuration change at Sat\ + \ May 29 01:20:11 2021 by boxen\n!\ntelnet vrf default ipv4 server max-servers\ + \ 10\nusername boxen\n group root-lr\n group cisco-support\n secret 5 $1$ERrP$IwIygdqbJGkqrXZDtaWVI0\n\ !\ncall-home\n service active\n contact smart-licensing\n profile CiscoTAC-1\n\ \ active\n destination transport-method http\n !\n!\ninterface MgmtEth0/RP0/CPU0/0\n\ \ ipv4 address 10.0.0.15 255.255.255.0\n!\ninterface GigabitEthernet0/0/0/0\n\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_nxos-asyncssh].yaml b/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_nxos-asyncssh].yaml index 560aaa9..0f2fd84 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_nxos-asyncssh].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_nxos-asyncssh].yaml @@ -2,7 +2,7 @@ localhost:22022:AsyncsshTransport::0: connection_profile: host: localhost port: 22022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -60,7 +60,7 @@ localhost:22022:AsyncsshTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\n\n!Command: show running-config\n!Running configuration last\ - \ done at: Tue Apr 27 16:04:25 2021\n!Time: Tue Apr 27 19:56:34 2021\n\nversion\ + \ done at: Sat May 29 12:38:33 2021\n!Time: Sat May 29 13:08:22 2021\n\nversion\ \ 9.2(4) Bios:version \nvdc switch id 1\n limit-resource vlan minimum 16\ \ maximum 4094\n limit-resource vrf minimum 2 maximum 4096\n limit-resource\ \ port-channel minimum 0 maximum 511\n limit-resource u4route-mem minimum\ @@ -68,12 +68,12 @@ localhost:22022:AsyncsshTransport::0: \ m4route-mem minimum 58 maximum 58\n limit-resource m6route-mem minimum\ \ 8 maximum 8\nfeature telnet\nfeature nxapi\nfeature scp-server\n\nno password\ \ strength-check\nusername admin password 5 $5$LOIMHI$hIaO64VM40/x.MTQoeWg8/IAn2iBY5jv4WZyzQbb5q9\ - \ role network-admin\nusername vrnetlab password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3\ - \ role network-admin\nusername vrnetlab passphrase lifetime 99999 warntime\ + \ role network-admin\nusername boxen password 5 $5$rFrywOjz$buvWY6uEPf79GVyfGNO6SGOi5gbxV2VAcsbBtyXDZyB\ + \ role network-admin\nusername boxen passphrase lifetime 99999 warntime\ \ 14 gracetime 3\nip domain-lookup\ncopp profile strict\nsnmp-server user\ \ admin network-admin auth md5 0xd42fc9f6e153a348e1ab40f0f5b84589 priv 0xd42fc9f6e153a348e1ab40f0f5b84589\ - \ localizedkey\nsnmp-server user vrnetlab network-admin auth md5 0x1a3abb28531cf988a22cc61af30861a7\ - \ priv 0x1a3abb28531cf988a22cc61af30861a7 localizedkey\nrmon event 1 description\ + \ localizedkey\nsnmp-server user boxen network-admin auth md5 0xc168bfc2b500129bd35ee550b6d5d93d\ + \ priv 0xc168bfc2b500129bd35ee550b6d5d93d localizedkey\nrmon event 1 description\ \ FATAL(1) owner PMON@FATAL\nrmon event 2 description CRITICAL(2) owner PMON@CRITICAL\n\ rmon event 3 description ERROR(3) owner PMON@ERROR\nrmon event 4 description\ \ WARNING(4) owner PMON@WARNING\nrmon event 5 description INFORMATION(5) owner\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_nxos-asynctelnet].yaml b/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_nxos-asynctelnet].yaml index 372d66d..4916003 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_nxos-asynctelnet].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_nxos-asynctelnet].yaml @@ -2,7 +2,7 @@ localhost:22023:AsynctelnetTransport::0: connection_profile: host: localhost port: 22023 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -11,7 +11,7 @@ localhost:22023:AsynctelnetTransport::0: auth_secondary: false interactions: - channel_output: "User Access Verification\nlogin: " - expected_channel_input: vrnetlab + expected_channel_input: boxen expected_channel_input_redacted: false - channel_output: '' expected_channel_input: "\n" @@ -72,7 +72,7 @@ localhost:22023:AsynctelnetTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\n\n!Command: show running-config\n!Running configuration last\ - \ done at: Tue Apr 27 16:04:25 2021\n!Time: Tue Apr 27 19:56:56 2021\n\nversion\ + \ done at: Sat May 29 12:38:33 2021\n!Time: Sat May 29 13:08:46 2021\n\nversion\ \ 9.2(4) Bios:version \nvdc switch id 1\n limit-resource vlan minimum 16\ \ maximum 4094\n limit-resource vrf minimum 2 maximum 4096\n limit-resource\ \ port-channel minimum 0 maximum 511\n limit-resource u4route-mem minimum\ @@ -80,12 +80,12 @@ localhost:22023:AsynctelnetTransport::0: \ m4route-mem minimum 58 maximum 58\n limit-resource m6route-mem minimum\ \ 8 maximum 8\nfeature telnet\nfeature nxapi\nfeature scp-server\n\nno password\ \ strength-check\nusername admin password 5 $5$LOIMHI$hIaO64VM40/x.MTQoeWg8/IAn2iBY5jv4WZyzQbb5q9\ - \ role network-admin\nusername vrnetlab password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3\ - \ role network-admin\nusername vrnetlab passphrase lifetime 99999 warntime\ + \ role network-admin\nusername boxen password 5 $5$rFrywOjz$buvWY6uEPf79GVyfGNO6SGOi5gbxV2VAcsbBtyXDZyB\ + \ role network-admin\nusername boxen passphrase lifetime 99999 warntime\ \ 14 gracetime 3\nip domain-lookup\ncopp profile strict\nsnmp-server user\ \ admin network-admin auth md5 0xd42fc9f6e153a348e1ab40f0f5b84589 priv 0xd42fc9f6e153a348e1ab40f0f5b84589\ - \ localizedkey\nsnmp-server user vrnetlab network-admin auth md5 0x1a3abb28531cf988a22cc61af30861a7\ - \ priv 0x1a3abb28531cf988a22cc61af30861a7 localizedkey\nrmon event 1 description\ + \ localizedkey\nsnmp-server user boxen network-admin auth md5 0xc168bfc2b500129bd35ee550b6d5d93d\ + \ priv 0xc168bfc2b500129bd35ee550b6d5d93d localizedkey\nrmon event 1 description\ \ FATAL(1) owner PMON@FATAL\nrmon event 2 description CRITICAL(2) owner PMON@CRITICAL\n\ rmon event 3 description ERROR(3) owner PMON@ERROR\nrmon event 4 description\ \ WARNING(4) owner PMON@WARNING\nrmon event 5 description INFORMATION(5) owner\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_nxos-paramiko].yaml b/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_nxos-paramiko].yaml index 9ee8fb4..c1dfd90 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_nxos-paramiko].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_nxos-paramiko].yaml @@ -2,7 +2,7 @@ localhost:22022:ParamikoTransport::0: connection_profile: host: localhost port: 22022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -35,10 +35,10 @@ localhost:22022:ParamikoTransport::0: \ any *\n* purposes is expressly prohibited except as otherwise authorized\ \ by *\n* Cisco in writing. \ \ *\n***************************************************************************\n\ - switch# \n" + switch# " expected_channel_input: terminal length 0 expected_channel_input_redacted: false - - channel_output: switch# terminal length 0 + - channel_output: "\nswitch# terminal length 0" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nswitch# " @@ -60,7 +60,7 @@ localhost:22022:ParamikoTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\n\n!Command: show running-config\n!Running configuration last\ - \ done at: Tue Apr 27 16:04:25 2021\n!Time: Tue Apr 27 19:42:49 2021\n\nversion\ + \ done at: Sat May 29 12:38:33 2021\n!Time: Sat May 29 13:07:19 2021\n\nversion\ \ 9.2(4) Bios:version \nvdc switch id 1\n limit-resource vlan minimum 16\ \ maximum 4094\n limit-resource vrf minimum 2 maximum 4096\n limit-resource\ \ port-channel minimum 0 maximum 511\n limit-resource u4route-mem minimum\ @@ -68,12 +68,12 @@ localhost:22022:ParamikoTransport::0: \ m4route-mem minimum 58 maximum 58\n limit-resource m6route-mem minimum\ \ 8 maximum 8\nfeature telnet\nfeature nxapi\nfeature scp-server\n\nno password\ \ strength-check\nusername admin password 5 $5$LOIMHI$hIaO64VM40/x.MTQoeWg8/IAn2iBY5jv4WZyzQbb5q9\ - \ role network-admin\nusername vrnetlab password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3\ - \ role network-admin\nusername vrnetlab passphrase lifetime 99999 warntime\ + \ role network-admin\nusername boxen password 5 $5$rFrywOjz$buvWY6uEPf79GVyfGNO6SGOi5gbxV2VAcsbBtyXDZyB\ + \ role network-admin\nusername boxen passphrase lifetime 99999 warntime\ \ 14 gracetime 3\nip domain-lookup\ncopp profile strict\nsnmp-server user\ \ admin network-admin auth md5 0xd42fc9f6e153a348e1ab40f0f5b84589 priv 0xd42fc9f6e153a348e1ab40f0f5b84589\ - \ localizedkey\nsnmp-server user vrnetlab network-admin auth md5 0x1a3abb28531cf988a22cc61af30861a7\ - \ priv 0x1a3abb28531cf988a22cc61af30861a7 localizedkey\nrmon event 1 description\ + \ localizedkey\nsnmp-server user boxen network-admin auth md5 0xc168bfc2b500129bd35ee550b6d5d93d\ + \ priv 0xc168bfc2b500129bd35ee550b6d5d93d localizedkey\nrmon event 1 description\ \ FATAL(1) owner PMON@FATAL\nrmon event 2 description CRITICAL(2) owner PMON@CRITICAL\n\ rmon event 3 description ERROR(3) owner PMON@ERROR\nrmon event 4 description\ \ WARNING(4) owner PMON@WARNING\nrmon event 5 description INFORMATION(5) owner\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_nxos-ssh2].yaml b/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_nxos-ssh2].yaml index 84c581a..f1c7c32 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_nxos-ssh2].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_nxos-ssh2].yaml @@ -2,7 +2,7 @@ localhost:22022:Ssh2Transport::0: connection_profile: host: localhost port: 22022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -35,10 +35,10 @@ localhost:22022:Ssh2Transport::0: \ any *\n* purposes is expressly prohibited except as otherwise authorized\ \ by *\n* Cisco in writing. \ \ *\n***************************************************************************\n\ - switch# \n" + switch# \nswitch# " expected_channel_input: terminal length 0 expected_channel_input_redacted: false - - channel_output: switch# terminal length 0 + - channel_output: terminal length 0 expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nswitch# " @@ -60,7 +60,7 @@ localhost:22022:Ssh2Transport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\n\n!Command: show running-config\n!Running configuration last\ - \ done at: Tue Apr 27 16:04:25 2021\n!Time: Tue Apr 27 19:42:34 2021\n\nversion\ + \ done at: Sat May 29 12:38:33 2021\n!Time: Sat May 29 13:07:03 2021\n\nversion\ \ 9.2(4) Bios:version \nvdc switch id 1\n limit-resource vlan minimum 16\ \ maximum 4094\n limit-resource vrf minimum 2 maximum 4096\n limit-resource\ \ port-channel minimum 0 maximum 511\n limit-resource u4route-mem minimum\ @@ -68,12 +68,12 @@ localhost:22022:Ssh2Transport::0: \ m4route-mem minimum 58 maximum 58\n limit-resource m6route-mem minimum\ \ 8 maximum 8\nfeature telnet\nfeature nxapi\nfeature scp-server\n\nno password\ \ strength-check\nusername admin password 5 $5$LOIMHI$hIaO64VM40/x.MTQoeWg8/IAn2iBY5jv4WZyzQbb5q9\ - \ role network-admin\nusername vrnetlab password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3\ - \ role network-admin\nusername vrnetlab passphrase lifetime 99999 warntime\ + \ role network-admin\nusername boxen password 5 $5$rFrywOjz$buvWY6uEPf79GVyfGNO6SGOi5gbxV2VAcsbBtyXDZyB\ + \ role network-admin\nusername boxen passphrase lifetime 99999 warntime\ \ 14 gracetime 3\nip domain-lookup\ncopp profile strict\nsnmp-server user\ \ admin network-admin auth md5 0xd42fc9f6e153a348e1ab40f0f5b84589 priv 0xd42fc9f6e153a348e1ab40f0f5b84589\ - \ localizedkey\nsnmp-server user vrnetlab network-admin auth md5 0x1a3abb28531cf988a22cc61af30861a7\ - \ priv 0x1a3abb28531cf988a22cc61af30861a7 localizedkey\nrmon event 1 description\ + \ localizedkey\nsnmp-server user boxen network-admin auth md5 0xc168bfc2b500129bd35ee550b6d5d93d\ + \ priv 0xc168bfc2b500129bd35ee550b6d5d93d localizedkey\nrmon event 1 description\ \ FATAL(1) owner PMON@FATAL\nrmon event 2 description CRITICAL(2) owner PMON@CRITICAL\n\ rmon event 3 description ERROR(3) owner PMON@ERROR\nrmon event 4 description\ \ WARNING(4) owner PMON@WARNING\nrmon event 5 description INFORMATION(5) owner\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_nxos-system].yaml b/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_nxos-system].yaml index cae4344..8b23f0a 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_nxos-system].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_nxos-system].yaml @@ -2,7 +2,7 @@ localhost:22022:SystemTransport::0: connection_profile: host: localhost port: 22022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -67,7 +67,7 @@ localhost:22022:SystemTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\n\n!Command: show running-config\n!Running configuration last\ - \ done at: Tue Apr 27 16:04:25 2021\n!Time: Tue Apr 27 19:40:28 2021\n\nversion\ + \ done at: Sat May 29 12:38:33 2021\n!Time: Sat May 29 13:06:46 2021\n\nversion\ \ 9.2(4) Bios:version \nvdc switch id 1\n limit-resource vlan minimum 16\ \ maximum 4094\n limit-resource vrf minimum 2 maximum 4096\n limit-resource\ \ port-channel minimum 0 maximum 511\n limit-resource u4route-mem minimum\ @@ -75,12 +75,12 @@ localhost:22022:SystemTransport::0: \ m4route-mem minimum 58 maximum 58\n limit-resource m6route-mem minimum\ \ 8 maximum 8\nfeature telnet\nfeature nxapi\nfeature scp-server\n\nno password\ \ strength-check\nusername admin password 5 $5$LOIMHI$hIaO64VM40/x.MTQoeWg8/IAn2iBY5jv4WZyzQbb5q9\ - \ role network-admin\nusername vrnetlab password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3\ - \ role network-admin\nusername vrnetlab passphrase lifetime 99999 warntime\ + \ role network-admin\nusername boxen password 5 $5$rFrywOjz$buvWY6uEPf79GVyfGNO6SGOi5gbxV2VAcsbBtyXDZyB\ + \ role network-admin\nusername boxen passphrase lifetime 99999 warntime\ \ 14 gracetime 3\nip domain-lookup\ncopp profile strict\nsnmp-server user\ \ admin network-admin auth md5 0xd42fc9f6e153a348e1ab40f0f5b84589 priv 0xd42fc9f6e153a348e1ab40f0f5b84589\ - \ localizedkey\nsnmp-server user vrnetlab network-admin auth md5 0x1a3abb28531cf988a22cc61af30861a7\ - \ priv 0x1a3abb28531cf988a22cc61af30861a7 localizedkey\nrmon event 1 description\ + \ localizedkey\nsnmp-server user boxen network-admin auth md5 0xc168bfc2b500129bd35ee550b6d5d93d\ + \ priv 0xc168bfc2b500129bd35ee550b6d5d93d localizedkey\nrmon event 1 description\ \ FATAL(1) owner PMON@FATAL\nrmon event 2 description CRITICAL(2) owner PMON@CRITICAL\n\ rmon event 3 description ERROR(3) owner PMON@ERROR\nrmon event 4 description\ \ WARNING(4) owner PMON@WARNING\nrmon event 5 description INFORMATION(5) owner\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_nxos-telnet].yaml b/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_nxos-telnet].yaml index 065ff40..625eafe 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_nxos-telnet].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_get_config[cisco_nxos-telnet].yaml @@ -2,7 +2,7 @@ localhost:22023:TelnetTransport::0: connection_profile: host: localhost port: 22023 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -11,7 +11,7 @@ localhost:22023:TelnetTransport::0: auth_secondary: true interactions: - channel_output: "User Access Verification\nlogin: " - expected_channel_input: vrnetlab + expected_channel_input: boxen expected_channel_input_redacted: false - channel_output: '' expected_channel_input: "\n" @@ -19,10 +19,10 @@ localhost:22023:TelnetTransport::0: - channel_output: 'Password: ' expected_channel_input: REDACTED expected_channel_input_redacted: true - - channel_output: '' + - channel_output: "\n\n" expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nBad terminal type: \"network\". Will assume vt100.\nCisco\ + - channel_output: "\nBad terminal type: \"network\". Will assume vt100.\nCisco\ \ NX-OS Software\nCopyright (c) 2002-2019, Cisco Systems, Inc. All rights\ \ reserved.\nNexus 9000v software (\"Nexus 9000v Software\") and related documentation,\n\ files or other reference materials (\"Documentation\") are\nthe proprietary\ @@ -50,7 +50,7 @@ localhost:22023:TelnetTransport::0: - channel_output: "\nswitch# " expected_channel_input: terminal length 0 expected_channel_input_redacted: false - - channel_output: terminal length 0 + - channel_output: "\nswitch# terminal length 0" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nswitch# " @@ -72,7 +72,7 @@ localhost:22023:TelnetTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\n\n!Command: show running-config\n!Running configuration last\ - \ done at: Tue Apr 27 16:04:25 2021\n!Time: Tue Apr 27 19:43:04 2021\n\nversion\ + \ done at: Sat May 29 12:38:33 2021\n!Time: Sat May 29 13:07:37 2021\n\nversion\ \ 9.2(4) Bios:version \nvdc switch id 1\n limit-resource vlan minimum 16\ \ maximum 4094\n limit-resource vrf minimum 2 maximum 4096\n limit-resource\ \ port-channel minimum 0 maximum 511\n limit-resource u4route-mem minimum\ @@ -80,12 +80,12 @@ localhost:22023:TelnetTransport::0: \ m4route-mem minimum 58 maximum 58\n limit-resource m6route-mem minimum\ \ 8 maximum 8\nfeature telnet\nfeature nxapi\nfeature scp-server\n\nno password\ \ strength-check\nusername admin password 5 $5$LOIMHI$hIaO64VM40/x.MTQoeWg8/IAn2iBY5jv4WZyzQbb5q9\ - \ role network-admin\nusername vrnetlab password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3\ - \ role network-admin\nusername vrnetlab passphrase lifetime 99999 warntime\ + \ role network-admin\nusername boxen password 5 $5$rFrywOjz$buvWY6uEPf79GVyfGNO6SGOi5gbxV2VAcsbBtyXDZyB\ + \ role network-admin\nusername boxen passphrase lifetime 99999 warntime\ \ 14 gracetime 3\nip domain-lookup\ncopp profile strict\nsnmp-server user\ \ admin network-admin auth md5 0xd42fc9f6e153a348e1ab40f0f5b84589 priv 0xd42fc9f6e153a348e1ab40f0f5b84589\ - \ localizedkey\nsnmp-server user vrnetlab network-admin auth md5 0x1a3abb28531cf988a22cc61af30861a7\ - \ priv 0x1a3abb28531cf988a22cc61af30861a7 localizedkey\nrmon event 1 description\ + \ localizedkey\nsnmp-server user boxen network-admin auth md5 0xc168bfc2b500129bd35ee550b6d5d93d\ + \ priv 0xc168bfc2b500129bd35ee550b6d5d93d localizedkey\nrmon event 1 description\ \ FATAL(1) owner PMON@FATAL\nrmon event 2 description CRITICAL(2) owner PMON@CRITICAL\n\ rmon event 3 description ERROR(3) owner PMON@ERROR\nrmon event 4 description\ \ WARNING(4) owner PMON@WARNING\nrmon event 5 description INFORMATION(5) owner\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_get_config[juniper_junos-asyncssh].yaml b/tests/integration/platform/scrapli_replay_sessions/test_get_config[juniper_junos-asyncssh].yaml index 952e441..4775e16 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_get_config[juniper_junos-asyncssh].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_get_config[juniper_junos-asyncssh].yaml @@ -2,7 +2,7 @@ localhost:25022:AsyncsshTransport::0: connection_profile: host: localhost port: 25022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -13,42 +13,42 @@ localhost:25022:AsyncsshTransport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "--- JUNOS 17.3R2.10 built 2018-02-08 02:19:07 UTC\n\nvrnetlab> " + - channel_output: "--- JUNOS 17.3R2.10 built 2018-02-08 02:19:07 UTC\n\nboxen> " expected_channel_input: set cli screen-length 0 expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> set cli screen-length 0" + - channel_output: "\n\nboxen> set cli screen-length 0" expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nScreen length set to 0\n\nvrnetlab> " + - channel_output: " \nScreen length set to 0\n\nboxen> " expected_channel_input: set cli screen-width 511 expected_channel_input_redacted: false - channel_output: set cli screen-width 511 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nScreen width set to 511\n\nvrnetlab> " + - channel_output: " \nScreen width set to 511\n\nboxen> " expected_channel_input: set cli complete-on-space off expected_channel_input_redacted: false - channel_output: set cli complete-on-space off expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nDisabling complete-on-space\n\nvrnetlab> " + - channel_output: " \nDisabling complete-on-space\n\nboxen> " expected_channel_input: 'show version | grep junos:' expected_channel_input_redacted: false - channel_output: 'show version | grep junos:' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nJunos: 17.3R2.10\n\nvrnetlab> " + - channel_output: " \nJunos: 17.3R2.10\n\nboxen> " expected_channel_input: show configuration expected_channel_input_redacted: false - channel_output: show configuration expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \n## Last commit: 2021-04-27 19:56:03 UTC by vrnetlab\nversion\ + - channel_output: " \n## Last commit: 2021-05-29 12:46:18 UTC by boxen\nversion\ \ 17.3R2.10;\nsystem {\n root-authentication {\n encrypted-password\ - \ \"$6$dWt4Lg4V$wiqols.Ou//eIg.3kpdu98L9hSzA7VSytcnV4NWI3S2BKM4rfruJf5JKLBdihyCyEgUVHb1Rw3xHIVxQR/O0F.\"\ - ; ## SECRET-DATA\n }\n login {\n user vrnetlab {\n \ - \ uid 2000;\n class super-user;\n authentication {\n\ - \ encrypted-password \"$6$1tKhsTEi$VjaGckqjhgSqaZf5rrWqlhDkI1xAsaTWxFRtVQQnpE4qaeIWFuQUZ3GulwPfBYq2RLSTTl/ZnyyZJrcBl.7lP0\"\ + \ \"$6$RhR81Jm4$DEXKIbZNGjv.agJvM.FlIZWtFqX/966PZk0r4/Ps3LlS.OQZn9fHoVGuYJ7Q.hj2OQLyPJO6Mq7aQ3xLQiNrx/\"\ + ; ## SECRET-DATA\n }\n login {\n user boxen {\n uid\ + \ 2000;\n class super-user;\n authentication {\n \ + \ encrypted-password \"$6$iYt26fU9$gkt6bgxPs.VqHgCoLuSD6Kxv1JUHJLQzXJgzAEUIxobvxWwRErtpaOFvBOjIHr3KMI7sEo.V/7xLXzr0Ok20h0\"\ ; ## SECRET-DATA\n }\n }\n }\n services {\n \ \ ssh {\n protocol-version v2;\n }\n telnet;\n \ \ netconf {\n ssh;\n }\n web-management {\n\ @@ -80,10 +80,10 @@ localhost:25022:AsyncsshTransport::0: \ tcp-rst;\n }\n security-zone untrust {\n \ \ screen untrust-screen;\n }\n }\n}\ninterfaces {\n fxp0 {\n\ \ unit 0 {\n family inet {\n address 10.0.0.15/24;\n\ - \ }\n }\n }\n}\n\nvrnetlab> " + \ }\n }\n }\n}\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: exit expected_channel_input_redacted: false - channel_output: '' diff --git a/tests/integration/platform/scrapli_replay_sessions/test_get_config[juniper_junos-asynctelnet].yaml b/tests/integration/platform/scrapli_replay_sessions/test_get_config[juniper_junos-asynctelnet].yaml index e99b6f0..28814d4 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_get_config[juniper_junos-asynctelnet].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_get_config[juniper_junos-asynctelnet].yaml @@ -2,7 +2,7 @@ localhost:25023:AsynctelnetTransport::0: connection_profile: host: localhost port: 25023 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -11,7 +11,7 @@ localhost:25023:AsynctelnetTransport::0: auth_secondary: false interactions: - channel_output: 'login: ' - expected_channel_input: vrnetlab + expected_channel_input: boxen expected_channel_input_redacted: false - channel_output: '' expected_channel_input: "\n" @@ -22,45 +22,45 @@ localhost:25023:AsynctelnetTransport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n--- JUNOS 17.3R2.10 built 2018-02-08 02:19:07 UTC\nvrnetlab> " + - channel_output: "\n\n--- JUNOS 17.3R2.10 built 2018-02-08 02:19:07 UTC\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: set cli screen-length 0 expected_channel_input_redacted: false - channel_output: set cli screen-length 0 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nScreen length set to 0\n\nvrnetlab> " + - channel_output: " \nScreen length set to 0\n\nboxen> " expected_channel_input: set cli screen-width 511 expected_channel_input_redacted: false - channel_output: set cli screen-width 511 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nScreen width set to 511\n\nvrnetlab> " + - channel_output: " \nScreen width set to 511\n\nboxen> " expected_channel_input: set cli complete-on-space off expected_channel_input_redacted: false - channel_output: set cli complete-on-space off expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nDisabling complete-on-space\n\nvrnetlab> " + - channel_output: " \nDisabling complete-on-space\n\nboxen> " expected_channel_input: 'show version | grep junos:' expected_channel_input_redacted: false - channel_output: 'show version | grep junos:' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nJunos: 17.3R2.10\n\nvrnetlab> " + - channel_output: " \nJunos: 17.3R2.10\n\nboxen> " expected_channel_input: show configuration expected_channel_input_redacted: false - channel_output: show configuration expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \n## Last commit: 2021-04-27 19:56:03 UTC by vrnetlab\nversion\ + - channel_output: " \n## Last commit: 2021-05-29 12:46:18 UTC by boxen\nversion\ \ 17.3R2.10;\nsystem {\n root-authentication {\n encrypted-password\ - \ \"$6$dWt4Lg4V$wiqols.Ou//eIg.3kpdu98L9hSzA7VSytcnV4NWI3S2BKM4rfruJf5JKLBdihyCyEgUVHb1Rw3xHIVxQR/O0F.\"\ - ; ## SECRET-DATA\n }\n login {\n user vrnetlab {\n \ - \ uid 2000;\n class super-user;\n authentication {\n\ - \ encrypted-password \"$6$1tKhsTEi$VjaGckqjhgSqaZf5rrWqlhDkI1xAsaTWxFRtVQQnpE4qaeIWFuQUZ3GulwPfBYq2RLSTTl/ZnyyZJrcBl.7lP0\"\ + \ \"$6$RhR81Jm4$DEXKIbZNGjv.agJvM.FlIZWtFqX/966PZk0r4/Ps3LlS.OQZn9fHoVGuYJ7Q.hj2OQLyPJO6Mq7aQ3xLQiNrx/\"\ + ; ## SECRET-DATA\n }\n login {\n user boxen {\n uid\ + \ 2000;\n class super-user;\n authentication {\n \ + \ encrypted-password \"$6$iYt26fU9$gkt6bgxPs.VqHgCoLuSD6Kxv1JUHJLQzXJgzAEUIxobvxWwRErtpaOFvBOjIHr3KMI7sEo.V/7xLXzr0Ok20h0\"\ ; ## SECRET-DATA\n }\n }\n }\n services {\n \ \ ssh {\n protocol-version v2;\n }\n telnet;\n \ \ netconf {\n ssh;\n }\n web-management {\n\ @@ -92,10 +92,10 @@ localhost:25023:AsynctelnetTransport::0: \ tcp-rst;\n }\n security-zone untrust {\n \ \ screen untrust-screen;\n }\n }\n}\ninterfaces {\n fxp0 {\n\ \ unit 0 {\n family inet {\n address 10.0.0.15/24;\n\ - \ }\n }\n }\n}\n\nvrnetlab> " + \ }\n }\n }\n}\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: exit expected_channel_input_redacted: false - channel_output: '' diff --git a/tests/integration/platform/scrapli_replay_sessions/test_get_config[juniper_junos-paramiko].yaml b/tests/integration/platform/scrapli_replay_sessions/test_get_config[juniper_junos-paramiko].yaml index dee6eda..6e75f2f 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_get_config[juniper_junos-paramiko].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_get_config[juniper_junos-paramiko].yaml @@ -2,7 +2,7 @@ localhost:25022:ParamikoTransport::0: connection_profile: host: localhost port: 25022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -13,42 +13,42 @@ localhost:25022:ParamikoTransport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "--- JUNOS 17.3R2.10 built 2018-02-08 02:19:07 UTC\n\nvrnetlab> " + - channel_output: "\n--- JUNOS 17.3R2.10 built 2018-02-08 02:19:07 UTC\nboxen> " expected_channel_input: set cli screen-length 0 expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> set cli screen-length 0" + - channel_output: "\n\nboxen> set cli screen-length 0" expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nScreen length set to 0\n\nvrnetlab> " + - channel_output: " \nScreen length set to 0\n\nboxen> " expected_channel_input: set cli screen-width 511 expected_channel_input_redacted: false - channel_output: set cli screen-width 511 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nScreen width set to 511\n\nvrnetlab> " + - channel_output: " \nScreen width set to 511\n\nboxen> " expected_channel_input: set cli complete-on-space off expected_channel_input_redacted: false - channel_output: set cli complete-on-space off expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nDisabling complete-on-space\n\nvrnetlab> " + - channel_output: " \nDisabling complete-on-space\n\nboxen> " expected_channel_input: 'show version | grep junos:' expected_channel_input_redacted: false - channel_output: 'show version | grep junos:' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nJunos: 17.3R2.10\n\nvrnetlab> " + - channel_output: " \nJunos: 17.3R2.10\n\nboxen> " expected_channel_input: show configuration expected_channel_input_redacted: false - channel_output: show configuration expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \n## Last commit: 2021-04-27 19:35:05 UTC by vrnetlab\nversion\ + - channel_output: " \n## Last commit: 2021-05-29 12:46:18 UTC by boxen\nversion\ \ 17.3R2.10;\nsystem {\n root-authentication {\n encrypted-password\ - \ \"$6$dWt4Lg4V$wiqols.Ou//eIg.3kpdu98L9hSzA7VSytcnV4NWI3S2BKM4rfruJf5JKLBdihyCyEgUVHb1Rw3xHIVxQR/O0F.\"\ - ; ## SECRET-DATA\n }\n login {\n user vrnetlab {\n \ - \ uid 2000;\n class super-user;\n authentication {\n\ - \ encrypted-password \"$6$1tKhsTEi$VjaGckqjhgSqaZf5rrWqlhDkI1xAsaTWxFRtVQQnpE4qaeIWFuQUZ3GulwPfBYq2RLSTTl/ZnyyZJrcBl.7lP0\"\ + \ \"$6$RhR81Jm4$DEXKIbZNGjv.agJvM.FlIZWtFqX/966PZk0r4/Ps3LlS.OQZn9fHoVGuYJ7Q.hj2OQLyPJO6Mq7aQ3xLQiNrx/\"\ + ; ## SECRET-DATA\n }\n login {\n user boxen {\n uid\ + \ 2000;\n class super-user;\n authentication {\n \ + \ encrypted-password \"$6$iYt26fU9$gkt6bgxPs.VqHgCoLuSD6Kxv1JUHJLQzXJgzAEUIxobvxWwRErtpaOFvBOjIHr3KMI7sEo.V/7xLXzr0Ok20h0\"\ ; ## SECRET-DATA\n }\n }\n }\n services {\n \ \ ssh {\n protocol-version v2;\n }\n telnet;\n \ \ netconf {\n ssh;\n }\n web-management {\n\ @@ -80,10 +80,10 @@ localhost:25022:ParamikoTransport::0: \ tcp-rst;\n }\n security-zone untrust {\n \ \ screen untrust-screen;\n }\n }\n}\ninterfaces {\n fxp0 {\n\ \ unit 0 {\n family inet {\n address 10.0.0.15/24;\n\ - \ }\n }\n }\n}\n\nvrnetlab> " + \ }\n }\n }\n}\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: exit expected_channel_input_redacted: false - channel_output: '' diff --git a/tests/integration/platform/scrapli_replay_sessions/test_get_config[juniper_junos-ssh2].yaml b/tests/integration/platform/scrapli_replay_sessions/test_get_config[juniper_junos-ssh2].yaml index 6104e03..3dd9717 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_get_config[juniper_junos-ssh2].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_get_config[juniper_junos-ssh2].yaml @@ -2,7 +2,7 @@ localhost:25022:Ssh2Transport::0: connection_profile: host: localhost port: 25022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -13,42 +13,42 @@ localhost:25022:Ssh2Transport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n--- JUNOS 17.3R2.10 built 2018-02-08 02:19:07 UTC\nvrnetlab> " + - channel_output: "\n--- JUNOS 17.3R2.10 built 2018-02-08 02:19:07 UTC\nboxen> " expected_channel_input: set cli screen-length 0 expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> set cli screen-length 0" + - channel_output: "\n\nboxen> set cli screen-length 0" expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nScreen length set to 0\n\nvrnetlab> " + - channel_output: " \nScreen length set to 0\n\nboxen> " expected_channel_input: set cli screen-width 511 expected_channel_input_redacted: false - channel_output: set cli screen-width 511 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nScreen width set to 511\n\nvrnetlab> " + - channel_output: " \nScreen width set to 511\n\nboxen> " expected_channel_input: set cli complete-on-space off expected_channel_input_redacted: false - channel_output: set cli complete-on-space off expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nDisabling complete-on-space\n\nvrnetlab> " + - channel_output: " \nDisabling complete-on-space\n\nboxen> " expected_channel_input: 'show version | grep junos:' expected_channel_input_redacted: false - channel_output: 'show version | grep junos:' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nJunos: 17.3R2.10\n\nvrnetlab> " + - channel_output: " \nJunos: 17.3R2.10\n\nboxen> " expected_channel_input: show configuration expected_channel_input_redacted: false - channel_output: show configuration expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \n## Last commit: 2021-04-27 19:35:05 UTC by vrnetlab\nversion\ + - channel_output: " \n## Last commit: 2021-05-29 12:46:18 UTC by boxen\nversion\ \ 17.3R2.10;\nsystem {\n root-authentication {\n encrypted-password\ - \ \"$6$dWt4Lg4V$wiqols.Ou//eIg.3kpdu98L9hSzA7VSytcnV4NWI3S2BKM4rfruJf5JKLBdihyCyEgUVHb1Rw3xHIVxQR/O0F.\"\ - ; ## SECRET-DATA\n }\n login {\n user vrnetlab {\n \ - \ uid 2000;\n class super-user;\n authentication {\n\ - \ encrypted-password \"$6$1tKhsTEi$VjaGckqjhgSqaZf5rrWqlhDkI1xAsaTWxFRtVQQnpE4qaeIWFuQUZ3GulwPfBYq2RLSTTl/ZnyyZJrcBl.7lP0\"\ + \ \"$6$RhR81Jm4$DEXKIbZNGjv.agJvM.FlIZWtFqX/966PZk0r4/Ps3LlS.OQZn9fHoVGuYJ7Q.hj2OQLyPJO6Mq7aQ3xLQiNrx/\"\ + ; ## SECRET-DATA\n }\n login {\n user boxen {\n uid\ + \ 2000;\n class super-user;\n authentication {\n \ + \ encrypted-password \"$6$iYt26fU9$gkt6bgxPs.VqHgCoLuSD6Kxv1JUHJLQzXJgzAEUIxobvxWwRErtpaOFvBOjIHr3KMI7sEo.V/7xLXzr0Ok20h0\"\ ; ## SECRET-DATA\n }\n }\n }\n services {\n \ \ ssh {\n protocol-version v2;\n }\n telnet;\n \ \ netconf {\n ssh;\n }\n web-management {\n\ @@ -80,10 +80,10 @@ localhost:25022:Ssh2Transport::0: \ tcp-rst;\n }\n security-zone untrust {\n \ \ screen untrust-screen;\n }\n }\n}\ninterfaces {\n fxp0 {\n\ \ unit 0 {\n family inet {\n address 10.0.0.15/24;\n\ - \ }\n }\n }\n}\n\nvrnetlab> " + \ }\n }\n }\n}\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: exit expected_channel_input_redacted: false - channel_output: '' diff --git a/tests/integration/platform/scrapli_replay_sessions/test_get_config[juniper_junos-system].yaml b/tests/integration/platform/scrapli_replay_sessions/test_get_config[juniper_junos-system].yaml index 5c6a164..745968f 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_get_config[juniper_junos-system].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_get_config[juniper_junos-system].yaml @@ -2,7 +2,7 @@ localhost:25022:SystemTransport::0: connection_profile: host: localhost port: 25022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -17,45 +17,45 @@ localhost:25022:SystemTransport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n--- JUNOS 17.3R2.10 built 2018-02-08 02:19:07 UTC\nvrnetlab> " + - channel_output: "\n--- JUNOS 17.3R2.10 built 2018-02-08 02:19:07 UTC\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: set cli screen-length 0 expected_channel_input_redacted: false - channel_output: set cli screen-length 0 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nScreen length set to 0\n\nvrnetlab> " + - channel_output: " \nScreen length set to 0\n\nboxen> " expected_channel_input: set cli screen-width 511 expected_channel_input_redacted: false - channel_output: set cli screen-width 511 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nScreen width set to 511\n\nvrnetlab> " + - channel_output: " \nScreen width set to 511\n\nboxen> " expected_channel_input: set cli complete-on-space off expected_channel_input_redacted: false - channel_output: set cli complete-on-space off expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nDisabling complete-on-space\n\nvrnetlab> " + - channel_output: " \nDisabling complete-on-space\n\nboxen> " expected_channel_input: 'show version | grep junos:' expected_channel_input_redacted: false - channel_output: 'show version | grep junos:' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nJunos: 17.3R2.10\n\nvrnetlab> " + - channel_output: " \nJunos: 17.3R2.10\n\nboxen> " expected_channel_input: show configuration expected_channel_input_redacted: false - channel_output: show configuration expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \n## Last commit: 2021-04-27 19:35:05 UTC by vrnetlab\nversion\ + - channel_output: " \n## Last commit: 2021-05-29 12:46:18 UTC by boxen\nversion\ \ 17.3R2.10;\nsystem {\n root-authentication {\n encrypted-password\ - \ \"$6$dWt4Lg4V$wiqols.Ou//eIg.3kpdu98L9hSzA7VSytcnV4NWI3S2BKM4rfruJf5JKLBdihyCyEgUVHb1Rw3xHIVxQR/O0F.\"\ - ; ## SECRET-DATA\n }\n login {\n user vrnetlab {\n \ - \ uid 2000;\n class super-user;\n authentication {\n\ - \ encrypted-password \"$6$1tKhsTEi$VjaGckqjhgSqaZf5rrWqlhDkI1xAsaTWxFRtVQQnpE4qaeIWFuQUZ3GulwPfBYq2RLSTTl/ZnyyZJrcBl.7lP0\"\ + \ \"$6$RhR81Jm4$DEXKIbZNGjv.agJvM.FlIZWtFqX/966PZk0r4/Ps3LlS.OQZn9fHoVGuYJ7Q.hj2OQLyPJO6Mq7aQ3xLQiNrx/\"\ + ; ## SECRET-DATA\n }\n login {\n user boxen {\n uid\ + \ 2000;\n class super-user;\n authentication {\n \ + \ encrypted-password \"$6$iYt26fU9$gkt6bgxPs.VqHgCoLuSD6Kxv1JUHJLQzXJgzAEUIxobvxWwRErtpaOFvBOjIHr3KMI7sEo.V/7xLXzr0Ok20h0\"\ ; ## SECRET-DATA\n }\n }\n }\n services {\n \ \ ssh {\n protocol-version v2;\n }\n telnet;\n \ \ netconf {\n ssh;\n }\n web-management {\n\ @@ -87,10 +87,10 @@ localhost:25022:SystemTransport::0: \ tcp-rst;\n }\n security-zone untrust {\n \ \ screen untrust-screen;\n }\n }\n}\ninterfaces {\n fxp0 {\n\ \ unit 0 {\n family inet {\n address 10.0.0.15/24;\n\ - \ }\n }\n }\n}\n\nvrnetlab> " + \ }\n }\n }\n}\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: exit expected_channel_input_redacted: false - channel_output: '' diff --git a/tests/integration/platform/scrapli_replay_sessions/test_get_config[juniper_junos-telnet].yaml b/tests/integration/platform/scrapli_replay_sessions/test_get_config[juniper_junos-telnet].yaml index 8658c6a..ea134f8 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_get_config[juniper_junos-telnet].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_get_config[juniper_junos-telnet].yaml @@ -2,7 +2,7 @@ localhost:25023:TelnetTransport::0: connection_profile: host: localhost port: 25023 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -11,56 +11,56 @@ localhost:25023:TelnetTransport::0: auth_secondary: true interactions: - channel_output: 'login: ' - expected_channel_input: vrnetlab + expected_channel_input: boxen expected_channel_input_redacted: false - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "vrnetlab\nPassword:" + - channel_output: "boxen\nPassword:" expected_channel_input: REDACTED expected_channel_input_redacted: true - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n--- JUNOS 17.3R2.10 built 2018-02-08 02:19:07 UTC\nvrnetlab> " + - channel_output: "\n\n--- JUNOS 17.3R2.10 built 2018-02-08 02:19:07 UTC\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: set cli screen-length 0 expected_channel_input_redacted: false - channel_output: set cli screen-length 0 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nScreen length set to 0\n\nvrnetlab> " + - channel_output: " \nScreen length set to 0\n\nboxen> " expected_channel_input: set cli screen-width 511 expected_channel_input_redacted: false - channel_output: set cli screen-width 511 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nScreen width set to 511\n\nvrnetlab> " + - channel_output: " \nScreen width set to 511\n\nboxen> " expected_channel_input: set cli complete-on-space off expected_channel_input_redacted: false - channel_output: set cli complete-on-space off expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nDisabling complete-on-space\n\nvrnetlab> " + - channel_output: " \nDisabling complete-on-space\n\nboxen> " expected_channel_input: 'show version | grep junos:' expected_channel_input_redacted: false - channel_output: 'show version | grep junos:' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nJunos: 17.3R2.10\n\nvrnetlab> " + - channel_output: " \nJunos: 17.3R2.10\n\nboxen> " expected_channel_input: show configuration expected_channel_input_redacted: false - channel_output: show configuration expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \n## Last commit: 2021-04-27 19:35:05 UTC by vrnetlab\nversion\ + - channel_output: " \n## Last commit: 2021-05-29 12:46:18 UTC by boxen\nversion\ \ 17.3R2.10;\nsystem {\n root-authentication {\n encrypted-password\ - \ \"$6$dWt4Lg4V$wiqols.Ou//eIg.3kpdu98L9hSzA7VSytcnV4NWI3S2BKM4rfruJf5JKLBdihyCyEgUVHb1Rw3xHIVxQR/O0F.\"\ - ; ## SECRET-DATA\n }\n login {\n user vrnetlab {\n \ - \ uid 2000;\n class super-user;\n authentication {\n\ - \ encrypted-password \"$6$1tKhsTEi$VjaGckqjhgSqaZf5rrWqlhDkI1xAsaTWxFRtVQQnpE4qaeIWFuQUZ3GulwPfBYq2RLSTTl/ZnyyZJrcBl.7lP0\"\ + \ \"$6$RhR81Jm4$DEXKIbZNGjv.agJvM.FlIZWtFqX/966PZk0r4/Ps3LlS.OQZn9fHoVGuYJ7Q.hj2OQLyPJO6Mq7aQ3xLQiNrx/\"\ + ; ## SECRET-DATA\n }\n login {\n user boxen {\n uid\ + \ 2000;\n class super-user;\n authentication {\n \ + \ encrypted-password \"$6$iYt26fU9$gkt6bgxPs.VqHgCoLuSD6Kxv1JUHJLQzXJgzAEUIxobvxWwRErtpaOFvBOjIHr3KMI7sEo.V/7xLXzr0Ok20h0\"\ ; ## SECRET-DATA\n }\n }\n }\n services {\n \ \ ssh {\n protocol-version v2;\n }\n telnet;\n \ \ netconf {\n ssh;\n }\n web-management {\n\ @@ -92,10 +92,10 @@ localhost:25023:TelnetTransport::0: \ tcp-rst;\n }\n security-zone untrust {\n \ \ screen untrust-screen;\n }\n }\n}\ninterfaces {\n fxp0 {\n\ \ unit 0 {\n family inet {\n address 10.0.0.15/24;\n\ - \ }\n }\n }\n}\n\nvrnetlab> " + \ }\n }\n }\n}\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: exit expected_channel_input_redacted: false - channel_output: '' diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[arista_eos-asyncssh].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[arista_eos-asyncssh].yaml index 6a19928..9124735 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[arista_eos-asyncssh].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[arista_eos-asyncssh].yaml @@ -2,7 +2,7 @@ localhost:24022:AsyncsshTransport::0: connection_profile: host: localhost port: 24022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -13,8 +13,7 @@ localhost:24022:AsyncsshTransport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "Last login: Tue Apr 27 19:57:07 2021 from 10.0.0.2\n\n\n\e\ - [5nlocalhost>" + - channel_output: "Last login: Sat May 29 13:12:03 2021 from 10.0.0.2\n\n\nlocalhost>" expected_channel_input: enable expected_channel_input_redacted: false - channel_output: enable @@ -139,8 +138,8 @@ localhost:24022:AsyncsshTransport::0: \ level VMWAREVI errors\nlogging level VMWAREVS errors\nlogging level VRF\ \ errors\nlogging level VRRP errors\nlogging level VXLAN errors\nlogging level\ \ XMPP errors\nlogging level ZTP informational\n!\nspanning-tree mode mstp\n\ - !\nenable secret sha512 $6$P1M9SV2bLTmQJpwW$KVoaaIa7i34uTFp7JRRp.hqL55nr7jSJJiDA.9CHTCW7q4GDIwyceMMSp6TavgYiAokjobyBYCO70L7FxpZon1\n\ - no aaa root\n!\nusername vrnetlab role network-admin secret sha512 $6$8zrJ4ESW2fqG2QqH$9u768TvLXXDeUJmG2Std71EX1ip6q4MoJrMwDng1cmpuSYc9ECWytRjvXpMH7C3dzSdoEv0MxAUiAZeeTre3h.\n\ + !\nenable secret sha512 $6$TVJ6KgdC0qsGkKfb$LjGGPd6W3S1iJQVQ.Vvo3Bca4Yt1R3y4nOjWAaaTCsk1NuIoqB/gOMseoigt/HQVFDTvDAJ3IPmsF9sWfxi1V/\n\ + no aaa root\n!\nusername boxen role network-admin secret sha512 $6$1ex07TzYfKx23A9z$c02oeDxnr4J7HMgj0PcabYvACZfjdiu3zp4IAgjJQ51IBtkstpvOjm0FYbxSSBhsl.mytIr9Y4PaERp4MDXJM/\n\ !\ninterface Ethernet1\n speed forced 10000full\n no switchport\n ipv6\ \ enable\n ipv6 address auto-config\n ipv6 nd ra rx accept default-route\n\ !\ninterface Ethernet2\n speed forced 10000full\n no switchport\n ipv6\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[arista_eos-asynctelnet].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[arista_eos-asynctelnet].yaml index de35e06..74a36f0 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[arista_eos-asynctelnet].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[arista_eos-asynctelnet].yaml @@ -2,7 +2,7 @@ localhost:24023:AsynctelnetTransport::0: connection_profile: host: localhost port: 24023 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -18,7 +18,7 @@ localhost:24023:AsynctelnetTransport::0: \ at the CLI. Alternatively, to disable Zero Touch\nProvisioning permanently,\ \ type 'zerotouch disable' at the CLI.\nNote: The device will reload when\ \ these commands are issued.\nUsername: " - expected_channel_input: vrnetlab + expected_channel_input: boxen expected_channel_input_redacted: false - channel_output: '' expected_channel_input: "\n" @@ -29,7 +29,7 @@ localhost:24023:AsynctelnetTransport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nLast login: Tue Apr 27 19:57:16 from 10.0.0.2\nlocalhost>" + - channel_output: "\nLast login: Sat May 29 13:13:17 from 10.0.0.2\nlocalhost>" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nlocalhost>" @@ -157,8 +157,8 @@ localhost:24023:AsynctelnetTransport::0: \ level VMWAREVI errors\nlogging level VMWAREVS errors\nlogging level VRF\ \ errors\nlogging level VRRP errors\nlogging level VXLAN errors\nlogging level\ \ XMPP errors\nlogging level ZTP informational\n!\nspanning-tree mode mstp\n\ - !\nenable secret sha512 $6$P1M9SV2bLTmQJpwW$KVoaaIa7i34uTFp7JRRp.hqL55nr7jSJJiDA.9CHTCW7q4GDIwyceMMSp6TavgYiAokjobyBYCO70L7FxpZon1\n\ - no aaa root\n!\nusername vrnetlab role network-admin secret sha512 $6$8zrJ4ESW2fqG2QqH$9u768TvLXXDeUJmG2Std71EX1ip6q4MoJrMwDng1cmpuSYc9ECWytRjvXpMH7C3dzSdoEv0MxAUiAZeeTre3h.\n\ + !\nenable secret sha512 $6$TVJ6KgdC0qsGkKfb$LjGGPd6W3S1iJQVQ.Vvo3Bca4Yt1R3y4nOjWAaaTCsk1NuIoqB/gOMseoigt/HQVFDTvDAJ3IPmsF9sWfxi1V/\n\ + no aaa root\n!\nusername boxen role network-admin secret sha512 $6$1ex07TzYfKx23A9z$c02oeDxnr4J7HMgj0PcabYvACZfjdiu3zp4IAgjJQ51IBtkstpvOjm0FYbxSSBhsl.mytIr9Y4PaERp4MDXJM/\n\ !\ninterface Ethernet1\n speed forced 10000full\n no switchport\n ipv6\ \ enable\n ipv6 address auto-config\n ipv6 nd ra rx accept default-route\n\ !\ninterface Ethernet2\n speed forced 10000full\n no switchport\n ipv6\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[arista_eos-paramiko].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[arista_eos-paramiko].yaml index e2c1ed7..4890703 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[arista_eos-paramiko].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[arista_eos-paramiko].yaml @@ -2,7 +2,7 @@ localhost:24022:ParamikoTransport::0: connection_profile: host: localhost port: 24022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -13,10 +13,10 @@ localhost:24022:ParamikoTransport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nLast login: Tue Apr 27 19:49:17 2021 from 10.0.0.2\n\nlocalhost>" + - channel_output: "Last login: Sat May 29 13:12:00 2021 from 10.0.0.2\n\n\nlocalhost>\n" expected_channel_input: enable expected_channel_input_redacted: false - - channel_output: "\nlocalhost>enable" + - channel_output: localhost>enable expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nPassword: " @@ -138,8 +138,8 @@ localhost:24022:ParamikoTransport::0: \ level VMWAREVI errors\nlogging level VMWAREVS errors\nlogging level VRF\ \ errors\nlogging level VRRP errors\nlogging level VXLAN errors\nlogging level\ \ XMPP errors\nlogging level ZTP informational\n!\nspanning-tree mode mstp\n\ - !\nenable secret sha512 $6$P1M9SV2bLTmQJpwW$KVoaaIa7i34uTFp7JRRp.hqL55nr7jSJJiDA.9CHTCW7q4GDIwyceMMSp6TavgYiAokjobyBYCO70L7FxpZon1\n\ - no aaa root\n!\nusername vrnetlab role network-admin secret sha512 $6$8zrJ4ESW2fqG2QqH$9u768TvLXXDeUJmG2Std71EX1ip6q4MoJrMwDng1cmpuSYc9ECWytRjvXpMH7C3dzSdoEv0MxAUiAZeeTre3h.\n\ + !\nenable secret sha512 $6$TVJ6KgdC0qsGkKfb$LjGGPd6W3S1iJQVQ.Vvo3Bca4Yt1R3y4nOjWAaaTCsk1NuIoqB/gOMseoigt/HQVFDTvDAJ3IPmsF9sWfxi1V/\n\ + no aaa root\n!\nusername boxen role network-admin secret sha512 $6$1ex07TzYfKx23A9z$c02oeDxnr4J7HMgj0PcabYvACZfjdiu3zp4IAgjJQ51IBtkstpvOjm0FYbxSSBhsl.mytIr9Y4PaERp4MDXJM/\n\ !\ninterface Ethernet1\n speed forced 10000full\n no switchport\n ipv6\ \ enable\n ipv6 address auto-config\n ipv6 nd ra rx accept default-route\n\ !\ninterface Ethernet2\n speed forced 10000full\n no switchport\n ipv6\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[arista_eos-ssh2].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[arista_eos-ssh2].yaml index 4768d04..e76a302 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[arista_eos-ssh2].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[arista_eos-ssh2].yaml @@ -2,7 +2,7 @@ localhost:24022:Ssh2Transport::0: connection_profile: host: localhost port: 24022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -13,10 +13,10 @@ localhost:24022:Ssh2Transport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nLast login: Tue Apr 27 19:49:15 2021 from 10.0.0.2\n\nlocalhost>\n" + - channel_output: "\nLast login: Sat May 29 13:11:58 2021 from 10.0.0.2\n\nlocalhost>" expected_channel_input: enable expected_channel_input_redacted: false - - channel_output: localhost>enable + - channel_output: "\nlocalhost>enable" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nPassword: " @@ -138,8 +138,8 @@ localhost:24022:Ssh2Transport::0: \ level VMWAREVI errors\nlogging level VMWAREVS errors\nlogging level VRF\ \ errors\nlogging level VRRP errors\nlogging level VXLAN errors\nlogging level\ \ XMPP errors\nlogging level ZTP informational\n!\nspanning-tree mode mstp\n\ - !\nenable secret sha512 $6$P1M9SV2bLTmQJpwW$KVoaaIa7i34uTFp7JRRp.hqL55nr7jSJJiDA.9CHTCW7q4GDIwyceMMSp6TavgYiAokjobyBYCO70L7FxpZon1\n\ - no aaa root\n!\nusername vrnetlab role network-admin secret sha512 $6$8zrJ4ESW2fqG2QqH$9u768TvLXXDeUJmG2Std71EX1ip6q4MoJrMwDng1cmpuSYc9ECWytRjvXpMH7C3dzSdoEv0MxAUiAZeeTre3h.\n\ + !\nenable secret sha512 $6$TVJ6KgdC0qsGkKfb$LjGGPd6W3S1iJQVQ.Vvo3Bca4Yt1R3y4nOjWAaaTCsk1NuIoqB/gOMseoigt/HQVFDTvDAJ3IPmsF9sWfxi1V/\n\ + no aaa root\n!\nusername boxen role network-admin secret sha512 $6$1ex07TzYfKx23A9z$c02oeDxnr4J7HMgj0PcabYvACZfjdiu3zp4IAgjJQ51IBtkstpvOjm0FYbxSSBhsl.mytIr9Y4PaERp4MDXJM/\n\ !\ninterface Ethernet1\n speed forced 10000full\n no switchport\n ipv6\ \ enable\n ipv6 address auto-config\n ipv6 nd ra rx accept default-route\n\ !\ninterface Ethernet2\n speed forced 10000full\n no switchport\n ipv6\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[arista_eos-system].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[arista_eos-system].yaml index c5e56e9..9655864 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[arista_eos-system].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[arista_eos-system].yaml @@ -2,7 +2,7 @@ localhost:24022:SystemTransport::0: connection_profile: host: localhost port: 24022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -24,7 +24,7 @@ localhost:24022:SystemTransport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nLast login: Tue Apr 27 19:45:59 2021 from 10.0.0.2\n\e[5nlocalhost>" + - channel_output: "\nLast login: Sat May 29 13:09:06 2021 from 10.0.0.2\nlocalhost>" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nlocalhost>" @@ -152,8 +152,8 @@ localhost:24022:SystemTransport::0: \ level VMWAREVI errors\nlogging level VMWAREVS errors\nlogging level VRF\ \ errors\nlogging level VRRP errors\nlogging level VXLAN errors\nlogging level\ \ XMPP errors\nlogging level ZTP informational\n!\nspanning-tree mode mstp\n\ - !\nenable secret sha512 $6$P1M9SV2bLTmQJpwW$KVoaaIa7i34uTFp7JRRp.hqL55nr7jSJJiDA.9CHTCW7q4GDIwyceMMSp6TavgYiAokjobyBYCO70L7FxpZon1\n\ - no aaa root\n!\nusername vrnetlab role network-admin secret sha512 $6$8zrJ4ESW2fqG2QqH$9u768TvLXXDeUJmG2Std71EX1ip6q4MoJrMwDng1cmpuSYc9ECWytRjvXpMH7C3dzSdoEv0MxAUiAZeeTre3h.\n\ + !\nenable secret sha512 $6$TVJ6KgdC0qsGkKfb$LjGGPd6W3S1iJQVQ.Vvo3Bca4Yt1R3y4nOjWAaaTCsk1NuIoqB/gOMseoigt/HQVFDTvDAJ3IPmsF9sWfxi1V/\n\ + no aaa root\n!\nusername boxen role network-admin secret sha512 $6$1ex07TzYfKx23A9z$c02oeDxnr4J7HMgj0PcabYvACZfjdiu3zp4IAgjJQ51IBtkstpvOjm0FYbxSSBhsl.mytIr9Y4PaERp4MDXJM/\n\ !\ninterface Ethernet1\n speed forced 10000full\n no switchport\n ipv6\ \ enable\n ipv6 address auto-config\n ipv6 nd ra rx accept default-route\n\ !\ninterface Ethernet2\n speed forced 10000full\n no switchport\n ipv6\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[arista_eos-telnet].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[arista_eos-telnet].yaml index aaddbcb..cb325bf 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[arista_eos-telnet].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[arista_eos-telnet].yaml @@ -2,7 +2,7 @@ localhost:24023:TelnetTransport::0: connection_profile: host: localhost port: 24023 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -18,7 +18,7 @@ localhost:24023:TelnetTransport::0: \ at the CLI. Alternatively, to disable Zero Touch\nProvisioning permanently,\ \ type 'zerotouch disable' at the CLI.\nNote: The device will reload when\ \ these commands are issued.\nUsername: " - expected_channel_input: vrnetlab + expected_channel_input: boxen expected_channel_input_redacted: false - channel_output: '' expected_channel_input: "\n" @@ -29,7 +29,7 @@ localhost:24023:TelnetTransport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nLast login: Tue Apr 27 19:46:00 from 10.0.0.2\nlocalhost>" + - channel_output: "\nLast login: Sat May 29 13:12:01 from 10.0.0.2\nlocalhost>" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nlocalhost>" @@ -157,8 +157,8 @@ localhost:24023:TelnetTransport::0: \ level VMWAREVI errors\nlogging level VMWAREVS errors\nlogging level VRF\ \ errors\nlogging level VRRP errors\nlogging level VXLAN errors\nlogging level\ \ XMPP errors\nlogging level ZTP informational\n!\nspanning-tree mode mstp\n\ - !\nenable secret sha512 $6$P1M9SV2bLTmQJpwW$KVoaaIa7i34uTFp7JRRp.hqL55nr7jSJJiDA.9CHTCW7q4GDIwyceMMSp6TavgYiAokjobyBYCO70L7FxpZon1\n\ - no aaa root\n!\nusername vrnetlab role network-admin secret sha512 $6$8zrJ4ESW2fqG2QqH$9u768TvLXXDeUJmG2Std71EX1ip6q4MoJrMwDng1cmpuSYc9ECWytRjvXpMH7C3dzSdoEv0MxAUiAZeeTre3h.\n\ + !\nenable secret sha512 $6$TVJ6KgdC0qsGkKfb$LjGGPd6W3S1iJQVQ.Vvo3Bca4Yt1R3y4nOjWAaaTCsk1NuIoqB/gOMseoigt/HQVFDTvDAJ3IPmsF9sWfxi1V/\n\ + no aaa root\n!\nusername boxen role network-admin secret sha512 $6$1ex07TzYfKx23A9z$c02oeDxnr4J7HMgj0PcabYvACZfjdiu3zp4IAgjJQ51IBtkstpvOjm0FYbxSSBhsl.mytIr9Y4PaERp4MDXJM/\n\ !\ninterface Ethernet1\n speed forced 10000full\n no switchport\n ipv6\ \ enable\n ipv6 address auto-config\n ipv6 nd ra rx accept default-route\n\ !\ninterface Ethernet2\n speed forced 10000full\n no switchport\n ipv6\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxe-asyncssh].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxe-asyncssh].yaml index bb9cd69..79e2a75 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxe-asyncssh].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxe-asyncssh].yaml @@ -2,7 +2,7 @@ localhost:21022:AsyncsshTransport::0: connection_profile: host: localhost port: 21022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -42,7 +42,7 @@ localhost:21022:AsyncsshTransport::0: - channel_output: 'dir flash: | i bytes' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n6286540800 bytes total (5484523520 bytes free)\ncsr1000v#" + - channel_output: "\n6286540800 bytes total (5488705536 bytes free)\ncsr1000v#" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\ncsr1000v#" @@ -106,13 +106,13 @@ localhost:21022:AsyncsshTransport::0: - channel_output: show running-config expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nBuilding configuration...\n\nCurrent configuration : 4826\ - \ bytes\n!\n! Last configuration change at 19:49:38 UTC Tue Apr 27 2021 by\ - \ vrnetlab\n!\nversion 16.12\nservice timestamps debug datetime msec\nservice\ + - channel_output: "\nBuilding configuration...\n\nCurrent configuration : 7013\ + \ bytes\n!\n! Last configuration change at 12:44:10 UTC Sat May 29 2021 by\ + \ boxen\n!\nversion 16.12\nservice timestamps debug datetime msec\nservice\ \ timestamps log datetime msec\nservice call-home\nplatform qfp utilization\ \ monitor load 80\nplatform punt-keepalive disable-kernel-core\nplatform console\ \ serial\n!\nhostname csr1000v\n!\nboot-start-marker\nboot-end-marker\n!\n\ - !\nenable secret 9 $9$h6Ayg86tb/EImk$2T6Ns.ke08cAlZ2TbMf3YRCYr7ngDGzgAxZB0YMe7lQ\n\ + !\nenable secret 9 $9$xvWnx8Fe35f8xE$E9ijp7GM/V48P5y1Uz3IEPtotXgwkJKYJmN0q3q2E92\n\ !\nno aaa new-model\ncall-home\n ! If contact email address in call-home is\ \ configured as sch-smart-licensing@cisco.com\n ! the email address configured\ \ in Cisco Smart License Portal will be used as contact email address to send\ @@ -121,9 +121,38 @@ localhost:21022:AsyncsshTransport::0: \ no destination transport-method email\n!\n!\n!\n!\n!\n!\n!\nip domain name\ \ example.com\n!\n!\n!\nlogin on-success log\n!\n!\n!\n!\n!\n!\n!\nsubscriber\ \ templating\n! \n! \n! \n! \n!\n!\nmultilink bundle-name authenticated\n\ - !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\ncrypto pki trustpoint SLA-TrustPoint\n\ - \ enrollment pkcs12\n revocation-check crl\n!\n!\ncrypto pki certificate chain\ - \ SLA-TrustPoint\n certificate ca 01\n 30820321 30820209 A0030201 02020101\ + !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\ncrypto pki trustpoint TP-self-signed-971124804\n\ + \ enrollment selfsigned\n subject-name cn=IOS-Self-Signed-Certificate-971124804\n\ + \ revocation-check none\n rsakeypair TP-self-signed-971124804\n!\ncrypto pki\ + \ trustpoint SLA-TrustPoint\n enrollment pkcs12\n revocation-check crl\n!\n\ + !\ncrypto pki certificate chain TP-self-signed-971124804\n certificate self-signed\ + \ 01\n 3082032E 30820216 A0030201 02020101 300D0609 2A864886 F70D0101 05050030\ + \ \n 30312E30 2C060355 04031325 494F532D 53656C66 2D536967 6E65642D 43657274\ + \ \n 69666963 6174652D 39373131 32343830 34301E17 0D323130 35323831 39323031\ + \ \n 315A170D 33303031 30313030 30303030 5A303031 2E302C06 03550403 1325494F\ + \ \n 532D5365 6C662D53 69676E65 642D4365 72746966 69636174 652D3937 31313234\ + \ \n 38303430 82012230 0D06092A 864886F7 0D010101 05000382 010F0030 82010A02\ + \ \n 82010100 9A5AFB47 FBB29463 C3B0E15E 881CAD52 5C652FC8 498B8FE2 BD025CA6\ + \ \n 9E98FB34 036B5B87 DC88A835 3B3A40DE 84ED8365 7CDA56F0 80630520 CCCE14A6\ + \ \n 9512C259 8D1E30E9 446A45EF 72464059 C0AB9279 F11AC3F6 71DFC173 95B99AE4\ + \ \n 3E4E32C6 00584C6C 7CE8A0FB 2DAEAC90 14516A4B C8B28D8C 444E9DDA 831DA497\ + \ \n 735818E4 5D7253C5 0FEE261A 0B9E9014 49AAAD3E E44AF3B1 351A19DC 7B78BE07\ + \ \n D452B6CC 4032AC79 33D3EC32 178FA55D B4F30EF6 B4AFF847 FB1677B6 A8969B6A\ + \ \n AB7D7019 4436A67B 98CC2808 62136E03 CE3CBE98 D32EF392 85406D04 7CAF3BE7\ + \ \n C2E34EAC 5F69E38A 6CC4E8B9 A00B76EC 79577B9B E5BBAA35 37D6B900 79D5EC0F\ + \ \n 5837E09B 02030100 01A35330 51300F06 03551D13 0101FF04 05300301 01FF301F\ + \ \n 0603551D 23041830 1680143A A780D0ED 95DFA1D7 42E88EBC DFCAA823 CFB03D30\ + \ \n 1D060355 1D0E0416 04143AA7 80D0ED95 DFA1D742 E88EBCDF CAA823CF B03D300D\ + \ \n 06092A86 4886F70D 01010505 00038201 010026D4 17358B20 82C17EC6 33F7ED1D\ + \ \n 8F6A52D0 67A557A0 46461293 D77EE377 1DB715B4 97C4C112 3FE955A9 99D17602\ + \ \n AA6F0DC8 A17F55D1 DDD335BF 4296E3C7 30974AA6 A260D83C EF127FE8 33ABF964\ + \ \n C45FF04C 9E271FD8 B6F4986F F2AA4ED9 AA940143 45F7B6BD 0973946F 35F66CBF\ + \ \n 5A7916D3 AC478064 7C69FE20 C57F7538 4AD5CF79 671270D0 4F779ABE D62485C4\ + \ \n 8979887C 79AA9B8C C6A6036C E2AA78E2 4D4331FC 9C5F5BF8 78E6D796 31697E35\ + \ \n 54C0AA53 E52EECD8 8ECF24E7 8A01A8D9 C33D8353 D9C34F93 CF41336A 02CD7F15\ + \ \n 22C3BF05 23579F26 EFF63502 3ED320ED 67E61168 9E25D8F0 B0FB882C 81E111FD\ + \ \n FC38A6E7 2DC02DC7 4DE9C66E 617E07DA 883A\n \tquit\ncrypto pki certificate\ + \ chain SLA-TrustPoint\n certificate ca 01\n 30820321 30820209 A0030201 02020101\ \ 300D0609 2A864886 F70D0101 0B050030 \n 32310E30 0C060355 040A1305 43697363\ \ 6F312030 1E060355 04031317 43697363 \n 6F204C69 63656E73 696E6720 526F6F74\ \ 20434130 1E170D31 33303533 30313934 \n 3834375A 170D3338 30353330 31393438\ @@ -149,11 +178,11 @@ localhost:21022:AsyncsshTransport::0: \ F3A58BE1 1A48A229 C37C1E69 39F08678 \n 80DDCD16 D6BACECA EEBC7CF9 8428787B\ \ 35202CDC 60E4616A B623CDBD 230E3AFB \n 418616A9 4093E049 4D10AB75 27E86F73\ \ 932E35B5 8862FDAE 0275156F 719BB2F0 \n D697DF7F 28\n \tquit\n!\nlicense\ - \ udi pid CSR1000V sn 9MVVU09YZFH\ndiagnostic bootup level minimal\narchive\n\ + \ udi pid CSR1000V sn 9IB2R42M6QG\ndiagnostic bootup level minimal\narchive\n\ \ log config\n logging enable\n path bootflash:\nmemory free low-watermark\ - \ processor 72329\n!\n!\nspanning-tree extend system-id\n!\nusername vrnetlab\ - \ privilege 15 password 0 VR-netlab9\n!\nredundancy\n!\n!\n!\n!\n!\n!\n! \n\ - !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n! \n! \n!\n!\ninterface GigabitEthernet1\n\ + \ processor 72329\n!\n!\nspanning-tree extend system-id\n!\nusername boxen\ + \ privilege 15 password 0 b0x3N-b0x3N\n!\nredundancy\n!\n!\n!\n!\n!\n!\n!\ + \ \n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n! \n! \n!\n!\ninterface GigabitEthernet1\n\ \ ip address 10.0.0.15 255.255.255.0\n negotiation auto\n no mop enabled\n\ \ no mop sysid\n!\ninterface GigabitEthernet2\n no ip address\n shutdown\n\ \ negotiation auto\n no mop enabled\n no mop sysid\n!\ninterface GigabitEthernet3\n\ @@ -170,11 +199,11 @@ localhost:21022:AsyncsshTransport::0: \ GigabitEthernet10\n no ip address\n shutdown\n negotiation auto\n no mop\ \ enabled\n no mop sysid\n!\n!\nvirtual-service csr_mgmt\n!\nip forward-protocol\ \ nd\nno ip http server\nno ip http secure-server\n!\nip ssh pubkey-chain\n\ - \ username vrnetlab\n key-hash ssh-rsa 5CC74A68B18B026A1709FB09D1F44E2F\ - \ \nip scp server enable\n!\n!\n!\n!\n!\n!\n!\ncontrol-plane\n!\n!\n!\n!\n\ - !\n!\nline con 0\n stopbits 1\nline vty 0 4\n login local\n transport input\ - \ all\nline vty 5 15\n login local\n transport input all\n!\nnetconf ssh\n\ - !\n!\n!\n!\n!\nnetconf-yang\nend\n\ncsr1000v#" + \ username boxen\n key-hash ssh-rsa 5CC74A68B18B026A1709FB09D1F44E2F \n\ + ip scp server enable\n!\n!\n!\n!\n!\n!\n!\ncontrol-plane\n!\n!\n!\n!\n!\n\ + !\nline con 0\n stopbits 1\nline vty 0 4\n login local\n transport input all\n\ + line vty 5 15\n login local\n transport input all\n!\nnetconf ssh\n!\n!\n\ + !\n!\n!\nnetconf-yang\nend\n\ncsr1000v#" expected_channel_input: show run | i file prompt expected_channel_input_redacted: false - channel_output: show run | i file prompt diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxe-asynctelnet].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxe-asynctelnet].yaml index 7da230b..094ec2c 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxe-asynctelnet].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxe-asynctelnet].yaml @@ -2,7 +2,7 @@ localhost:21023:AsynctelnetTransport::0: connection_profile: host: localhost port: 21023 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -11,12 +11,12 @@ localhost:21023:AsynctelnetTransport::0: auth_secondary: false interactions: - channel_output: "\n\nUser Access Verification\n\nUsername: " - expected_channel_input: vrnetlab + expected_channel_input: boxen expected_channel_input_redacted: false - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "vrnetlab\nPassword: " + - channel_output: "boxen\nPassword: " expected_channel_input: REDACTED expected_channel_input_redacted: true - channel_output: '' @@ -54,7 +54,7 @@ localhost:21023:AsynctelnetTransport::0: - channel_output: 'dir flash: | i bytes' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n6286540800 bytes total (5484523520 bytes free)\ncsr1000v#" + - channel_output: "\n6286540800 bytes total (5488705536 bytes free)\ncsr1000v#" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\ncsr1000v#" @@ -118,13 +118,13 @@ localhost:21023:AsynctelnetTransport::0: - channel_output: show running-config expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nBuilding configuration...\n\nCurrent configuration : 4826\ - \ bytes\n!\n! Last configuration change at 19:49:38 UTC Tue Apr 27 2021 by\ - \ vrnetlab\n!\nversion 16.12\nservice timestamps debug datetime msec\nservice\ + - channel_output: "\nBuilding configuration...\n\nCurrent configuration : 7013\ + \ bytes\n!\n! Last configuration change at 12:44:10 UTC Sat May 29 2021 by\ + \ boxen\n!\nversion 16.12\nservice timestamps debug datetime msec\nservice\ \ timestamps log datetime msec\nservice call-home\nplatform qfp utilization\ \ monitor load 80\nplatform punt-keepalive disable-kernel-core\nplatform console\ \ serial\n!\nhostname csr1000v\n!\nboot-start-marker\nboot-end-marker\n!\n\ - !\nenable secret 9 $9$h6Ayg86tb/EImk$2T6Ns.ke08cAlZ2TbMf3YRCYr7ngDGzgAxZB0YMe7lQ\n\ + !\nenable secret 9 $9$xvWnx8Fe35f8xE$E9ijp7GM/V48P5y1Uz3IEPtotXgwkJKYJmN0q3q2E92\n\ !\nno aaa new-model\ncall-home\n ! If contact email address in call-home is\ \ configured as sch-smart-licensing@cisco.com\n ! the email address configured\ \ in Cisco Smart License Portal will be used as contact email address to send\ @@ -133,9 +133,38 @@ localhost:21023:AsynctelnetTransport::0: \ no destination transport-method email\n!\n!\n!\n!\n!\n!\n!\nip domain name\ \ example.com\n!\n!\n!\nlogin on-success log\n!\n!\n!\n!\n!\n!\n!\nsubscriber\ \ templating\n! \n! \n! \n! \n!\n!\nmultilink bundle-name authenticated\n\ - !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\ncrypto pki trustpoint SLA-TrustPoint\n\ - \ enrollment pkcs12\n revocation-check crl\n!\n!\ncrypto pki certificate chain\ - \ SLA-TrustPoint\n certificate ca 01\n 30820321 30820209 A0030201 02020101\ + !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\ncrypto pki trustpoint TP-self-signed-971124804\n\ + \ enrollment selfsigned\n subject-name cn=IOS-Self-Signed-Certificate-971124804\n\ + \ revocation-check none\n rsakeypair TP-self-signed-971124804\n!\ncrypto pki\ + \ trustpoint SLA-TrustPoint\n enrollment pkcs12\n revocation-check crl\n!\n\ + !\ncrypto pki certificate chain TP-self-signed-971124804\n certificate self-signed\ + \ 01\n 3082032E 30820216 A0030201 02020101 300D0609 2A864886 F70D0101 05050030\ + \ \n 30312E30 2C060355 04031325 494F532D 53656C66 2D536967 6E65642D 43657274\ + \ \n 69666963 6174652D 39373131 32343830 34301E17 0D323130 35323831 39323031\ + \ \n 315A170D 33303031 30313030 30303030 5A303031 2E302C06 03550403 1325494F\ + \ \n 532D5365 6C662D53 69676E65 642D4365 72746966 69636174 652D3937 31313234\ + \ \n 38303430 82012230 0D06092A 864886F7 0D010101 05000382 010F0030 82010A02\ + \ \n 82010100 9A5AFB47 FBB29463 C3B0E15E 881CAD52 5C652FC8 498B8FE2 BD025CA6\ + \ \n 9E98FB34 036B5B87 DC88A835 3B3A40DE 84ED8365 7CDA56F0 80630520 CCCE14A6\ + \ \n 9512C259 8D1E30E9 446A45EF 72464059 C0AB9279 F11AC3F6 71DFC173 95B99AE4\ + \ \n 3E4E32C6 00584C6C 7CE8A0FB 2DAEAC90 14516A4B C8B28D8C 444E9DDA 831DA497\ + \ \n 735818E4 5D7253C5 0FEE261A 0B9E9014 49AAAD3E E44AF3B1 351A19DC 7B78BE07\ + \ \n D452B6CC 4032AC79 33D3EC32 178FA55D B4F30EF6 B4AFF847 FB1677B6 A8969B6A\ + \ \n AB7D7019 4436A67B 98CC2808 62136E03 CE3CBE98 D32EF392 85406D04 7CAF3BE7\ + \ \n C2E34EAC 5F69E38A 6CC4E8B9 A00B76EC 79577B9B E5BBAA35 37D6B900 79D5EC0F\ + \ \n 5837E09B 02030100 01A35330 51300F06 03551D13 0101FF04 05300301 01FF301F\ + \ \n 0603551D 23041830 1680143A A780D0ED 95DFA1D7 42E88EBC DFCAA823 CFB03D30\ + \ \n 1D060355 1D0E0416 04143AA7 80D0ED95 DFA1D742 E88EBCDF CAA823CF B03D300D\ + \ \n 06092A86 4886F70D 01010505 00038201 010026D4 17358B20 82C17EC6 33F7ED1D\ + \ \n 8F6A52D0 67A557A0 46461293 D77EE377 1DB715B4 97C4C112 3FE955A9 99D17602\ + \ \n AA6F0DC8 A17F55D1 DDD335BF 4296E3C7 30974AA6 A260D83C EF127FE8 33ABF964\ + \ \n C45FF04C 9E271FD8 B6F4986F F2AA4ED9 AA940143 45F7B6BD 0973946F 35F66CBF\ + \ \n 5A7916D3 AC478064 7C69FE20 C57F7538 4AD5CF79 671270D0 4F779ABE D62485C4\ + \ \n 8979887C 79AA9B8C C6A6036C E2AA78E2 4D4331FC 9C5F5BF8 78E6D796 31697E35\ + \ \n 54C0AA53 E52EECD8 8ECF24E7 8A01A8D9 C33D8353 D9C34F93 CF41336A 02CD7F15\ + \ \n 22C3BF05 23579F26 EFF63502 3ED320ED 67E61168 9E25D8F0 B0FB882C 81E111FD\ + \ \n FC38A6E7 2DC02DC7 4DE9C66E 617E07DA 883A\n \tquit\ncrypto pki certificate\ + \ chain SLA-TrustPoint\n certificate ca 01\n 30820321 30820209 A0030201 02020101\ \ 300D0609 2A864886 F70D0101 0B050030 \n 32310E30 0C060355 040A1305 43697363\ \ 6F312030 1E060355 04031317 43697363 \n 6F204C69 63656E73 696E6720 526F6F74\ \ 20434130 1E170D31 33303533 30313934 \n 3834375A 170D3338 30353330 31393438\ @@ -161,11 +190,11 @@ localhost:21023:AsynctelnetTransport::0: \ F3A58BE1 1A48A229 C37C1E69 39F08678 \n 80DDCD16 D6BACECA EEBC7CF9 8428787B\ \ 35202CDC 60E4616A B623CDBD 230E3AFB \n 418616A9 4093E049 4D10AB75 27E86F73\ \ 932E35B5 8862FDAE 0275156F 719BB2F0 \n D697DF7F 28\n \tquit\n!\nlicense\ - \ udi pid CSR1000V sn 9MVVU09YZFH\ndiagnostic bootup level minimal\narchive\n\ + \ udi pid CSR1000V sn 9IB2R42M6QG\ndiagnostic bootup level minimal\narchive\n\ \ log config\n logging enable\n path bootflash:\nmemory free low-watermark\ - \ processor 72329\n!\n!\nspanning-tree extend system-id\n!\nusername vrnetlab\ - \ privilege 15 password 0 VR-netlab9\n!\nredundancy\n!\n!\n!\n!\n!\n!\n! \n\ - !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n! \n! \n!\n!\ninterface GigabitEthernet1\n\ + \ processor 72329\n!\n!\nspanning-tree extend system-id\n!\nusername boxen\ + \ privilege 15 password 0 b0x3N-b0x3N\n!\nredundancy\n!\n!\n!\n!\n!\n!\n!\ + \ \n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n! \n! \n!\n!\ninterface GigabitEthernet1\n\ \ ip address 10.0.0.15 255.255.255.0\n negotiation auto\n no mop enabled\n\ \ no mop sysid\n!\ninterface GigabitEthernet2\n no ip address\n shutdown\n\ \ negotiation auto\n no mop enabled\n no mop sysid\n!\ninterface GigabitEthernet3\n\ @@ -182,11 +211,11 @@ localhost:21023:AsynctelnetTransport::0: \ GigabitEthernet10\n no ip address\n shutdown\n negotiation auto\n no mop\ \ enabled\n no mop sysid\n!\n!\nvirtual-service csr_mgmt\n!\nip forward-protocol\ \ nd\nno ip http server\nno ip http secure-server\n!\nip ssh pubkey-chain\n\ - \ username vrnetlab\n key-hash ssh-rsa 5CC74A68B18B026A1709FB09D1F44E2F\ - \ \nip scp server enable\n!\n!\n!\n!\n!\n!\n!\ncontrol-plane\n!\n!\n!\n!\n\ - !\n!\nline con 0\n stopbits 1\nline vty 0 4\n login local\n transport input\ - \ all\nline vty 5 15\n login local\n transport input all\n!\nnetconf ssh\n\ - !\n!\n!\n!\n!\nnetconf-yang\nend\n\ncsr1000v#" + \ username boxen\n key-hash ssh-rsa 5CC74A68B18B026A1709FB09D1F44E2F \n\ + ip scp server enable\n!\n!\n!\n!\n!\n!\n!\ncontrol-plane\n!\n!\n!\n!\n!\n\ + !\nline con 0\n stopbits 1\nline vty 0 4\n login local\n transport input all\n\ + line vty 5 15\n login local\n transport input all\n!\nnetconf ssh\n!\n!\n\ + !\n!\n!\nnetconf-yang\nend\n\ncsr1000v#" expected_channel_input: show run | i file prompt expected_channel_input_redacted: false - channel_output: show run | i file prompt diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxe-paramiko].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxe-paramiko].yaml index 260c007..7c7fa50 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxe-paramiko].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxe-paramiko].yaml @@ -2,7 +2,7 @@ localhost:21022:ParamikoTransport::0: connection_profile: host: localhost port: 21022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -42,7 +42,7 @@ localhost:21022:ParamikoTransport::0: - channel_output: 'dir flash: | i bytes' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n6286540800 bytes total (5484630016 bytes free)\ncsr1000v#" + - channel_output: "\n6286540800 bytes total (5488705536 bytes free)\ncsr1000v#" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\ncsr1000v#" @@ -106,13 +106,13 @@ localhost:21022:ParamikoTransport::0: - channel_output: show running-config expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nBuilding configuration...\n\nCurrent configuration : 7021\ - \ bytes\n!\n! Last configuration change at 19:33:06 UTC Tue Apr 27 2021 by\ - \ vrnetlab\n!\nversion 16.12\nservice timestamps debug datetime msec\nservice\ + - channel_output: "\nBuilding configuration...\n\nCurrent configuration : 7013\ + \ bytes\n!\n! Last configuration change at 12:44:10 UTC Sat May 29 2021 by\ + \ boxen\n!\nversion 16.12\nservice timestamps debug datetime msec\nservice\ \ timestamps log datetime msec\nservice call-home\nplatform qfp utilization\ \ monitor load 80\nplatform punt-keepalive disable-kernel-core\nplatform console\ \ serial\n!\nhostname csr1000v\n!\nboot-start-marker\nboot-end-marker\n!\n\ - !\nenable secret 9 $9$h6Ayg86tb/EImk$2T6Ns.ke08cAlZ2TbMf3YRCYr7ngDGzgAxZB0YMe7lQ\n\ + !\nenable secret 9 $9$xvWnx8Fe35f8xE$E9ijp7GM/V48P5y1Uz3IEPtotXgwkJKYJmN0q3q2E92\n\ !\nno aaa new-model\ncall-home\n ! If contact email address in call-home is\ \ configured as sch-smart-licensing@cisco.com\n ! the email address configured\ \ in Cisco Smart License Portal will be used as contact email address to send\ @@ -121,68 +121,68 @@ localhost:21022:ParamikoTransport::0: \ no destination transport-method email\n!\n!\n!\n!\n!\n!\n!\nip domain name\ \ example.com\n!\n!\n!\nlogin on-success log\n!\n!\n!\n!\n!\n!\n!\nsubscriber\ \ templating\n! \n! \n! \n! \n!\n!\nmultilink bundle-name authenticated\n\ - !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\ncrypto pki trustpoint SLA-TrustPoint\n\ - \ enrollment pkcs12\n revocation-check crl\n!\ncrypto pki trustpoint TP-self-signed-422690288\n\ - \ enrollment selfsigned\n subject-name cn=IOS-Self-Signed-Certificate-422690288\n\ - \ revocation-check none\n rsakeypair TP-self-signed-422690288\n!\n!\ncrypto\ - \ pki certificate chain SLA-TrustPoint\n certificate ca 01\n 30820321 30820209\ - \ A0030201 02020101 300D0609 2A864886 F70D0101 0B050030 \n 32310E30 0C060355\ - \ 040A1305 43697363 6F312030 1E060355 04031317 43697363 \n 6F204C69 63656E73\ - \ 696E6720 526F6F74 20434130 1E170D31 33303533 30313934 \n 3834375A 170D3338\ - \ 30353330 31393438 34375A30 32310E30 0C060355 040A1305 \n 43697363 6F312030\ - \ 1E060355 04031317 43697363 6F204C69 63656E73 696E6720 \n 526F6F74 20434130\ - \ 82012230 0D06092A 864886F7 0D010101 05000382 010F0030 \n 82010A02 82010100\ - \ A6BCBD96 131E05F7 145EA72C 2CD686E6 17222EA1 F1EFF64D \n CBB4C798 212AA147\ - \ C655D8D7 9471380D 8711441E 1AAF071A 9CAE6388 8A38E520 \n 1C394D78 462EF239\ - \ C659F715 B98C0A59 5BBB5CBD 0CFEBEA3 700A8BF7 D8F256EE \n 4AA4E80D DB6FD1C9\ - \ 60B1FD18 FFC69C96 6FA68957 A2617DE7 104FDC5F EA2956AC \n 7390A3EB 2B5436AD\ - \ C847A2C5 DAB553EB 69A9A535 58E9F3E3 C0BD23CF 58BD7188 \n 68E69491 20F320E7\ - \ 948E71D7 AE3BCC84 F10684C7 4BC8E00F 539BA42B 42C68BB7 \n C7479096 B4CB2D62\ - \ EA2F505D C7B062A4 6811D95B E8250FC4 5D5D5FB8 8F27D191 \n C55F0D76 61F9A4CD\ - \ 3D992327 A8BB03BD 4E6D7069 7CBADF8B DF5F4368 95135E44 \n DFC7C6CF 04DD7FD1\ - \ 02030100 01A34230 40300E06 03551D0F 0101FF04 04030201 \n 06300F06 03551D13\ - \ 0101FF04 05300301 01FF301D 0603551D 0E041604 1449DC85 \n 4B3D31E5 1B3E6A17\ - \ 606AF333 3D3B4C73 E8300D06 092A8648 86F70D01 010B0500 \n 03820101 00507F24\ - \ D3932A66 86025D9F E838AE5C 6D4DF6B0 49631C78 240DA905 \n 604EDCDE FF4FED2B\ - \ 77FC460E CD636FDB DD44681E 3A5673AB 9093D3B1 6C9E3D8B \n D98987BF E40CBD9E\ - \ 1AECA0C2 2189BB5C 8FA85686 CD98B646 5575B146 8DFC66A8 \n 467A3DF4 4D565700\ - \ 6ADF0F0D CF835015 3C04FF7C 21E878AC 11BA9CD2 55A9232C \n 7CA7B7E6 C1AF74F6\ - \ 152E99B7 B1FCF9BB E973DE7F 5BDDEB86 C71E3B49 1765308B \n 5FB0DA06 B92AFE7F\ - \ 494E8A9E 07B85737 F3A58BE1 1A48A229 C37C1E69 39F08678 \n 80DDCD16 D6BACECA\ - \ EEBC7CF9 8428787B 35202CDC 60E4616A B623CDBD 230E3AFB \n 418616A9 4093E049\ - \ 4D10AB75 27E86F73 932E35B5 8862FDAE 0275156F 719BB2F0 \n D697DF7F 28\n\ - \ \tquit\ncrypto pki certificate chain TP-self-signed-422690288\n certificate\ - \ self-signed 01\n 3082032E 30820216 A0030201 02020101 300D0609 2A864886\ - \ F70D0101 05050030 \n 30312E30 2C060355 04031325 494F532D 53656C66 2D536967\ - \ 6E65642D 43657274 \n 69666963 6174652D 34323236 39303238 38301E17 0D323130\ - \ 34323431 34343633 \n 325A170D 33303031 30313030 30303030 5A303031 2E302C06\ - \ 03550403 1325494F \n 532D5365 6C662D53 69676E65 642D4365 72746966 69636174\ - \ 652D3432 32363930 \n 32383830 82012230 0D06092A 864886F7 0D010101 05000382\ - \ 010F0030 82010A02 \n 82010100 C27FD6F3 1166295D F49633D3 51450DE6 F9BFCF2F\ - \ 7D3AACC7 3B5ED6B2 \n 3F68308B 39990E36 EBD37E75 A4BEC830 3B2A690B 13830C49\ - \ 2B25D19A E2B96F77 \n BE553C56 EED3B3BB 6584D3BB B1765477 02E693D1 C2316AE4\ - \ 4EE23F38 E346D59F \n D7949E95 C48D9020 FD03136D 57FA5A92 9B8A57CE D455621E\ - \ A72B3D2C AAD3EB8B \n 65CF62D5 C18B005B CA85EAB2 60DAE050 866B4C85 BDBEF084\ - \ 0AA4560F C19B8AA5 \n 287090B9 6B035146 F42C3A94 F2EE4DD5 5A81EEC1 704D5584\ - \ 77ADDBA7 4DF33581 \n CABC4B99 B0FB35E9 25DF1AB1 C898CD50 C859B551 EEEF4A3B\ - \ 703351E7 8094547B \n DB6AC6AC 066D8AAD 96AAF404 336424BB 07876BDD 56B0DEBA\ - \ 4CE59AEF 58F9E6EF \n 3F1B3887 02030100 01A35330 51300F06 03551D13 0101FF04\ - \ 05300301 01FF301F \n 0603551D 23041830 16801452 75C9AA75 B92C6980 AFFF95F7\ - \ 015BA9DB CF56EF30 \n 1D060355 1D0E0416 04145275 C9AA75B9 2C6980AF FF95F701\ - \ 5BA9DBCF 56EF300D \n 06092A86 4886F70D 01010505 00038201 01007990 FB8C5182\ - \ 74A472E9 F8933726 \n 0AAAE421 58EC4C5E DD15BAAE 5E95D5D3 12FE143C 8A80F8FF\ - \ F4512402 DE2D1091 \n F0928C73 ACB88E28 4DADB7CD E5876DE4 FCE7E1C1 EB465801\ - \ 9592F6C0 06501F1F \n 03118D27 7F80C6C0 4C4C3CFC 67FABA0D 65C9E228 B4F43ED9\ - \ FAE62872 FFBCC72F \n 25635208 12E436D4 7F27BA6E 151EE76A 560AC6D4 B9983DF4\ - \ 85D990E7 42A83E9B \n CDB0E802 4D2B1C3B A091CC70 F2878CAF 1222B9D6 9FA625F0\ - \ B4426FAF 75C0B1DE \n 16B3C323 0E1B1D98 9B35DCCD 43A6CA7B C59AF71E FE525B64\ - \ F921D394 5CD3E67B \n 3E808F51 6B93BF9A 28BD9F50 E0C6AB58 4266EA8C 38893595\ - \ BAE03E69 838973C2 \n 928F6137 2DCA8AB4 530DB0E8 57A12266 A50C\n \tquit\n\ - !\nlicense udi pid CSR1000V sn 9MVVU09YZFH\ndiagnostic bootup level minimal\n\ - archive\n log config\n logging enable\n path bootflash:\nmemory free low-watermark\ - \ processor 72329\n!\n!\nspanning-tree extend system-id\n!\nusername vrnetlab\ - \ privilege 15 password 0 VR-netlab9\n!\nredundancy\n!\n!\n!\n!\n!\n!\n! \n\ - !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n! \n! \n!\n!\ninterface GigabitEthernet1\n\ + !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\ncrypto pki trustpoint TP-self-signed-971124804\n\ + \ enrollment selfsigned\n subject-name cn=IOS-Self-Signed-Certificate-971124804\n\ + \ revocation-check none\n rsakeypair TP-self-signed-971124804\n!\ncrypto pki\ + \ trustpoint SLA-TrustPoint\n enrollment pkcs12\n revocation-check crl\n!\n\ + !\ncrypto pki certificate chain TP-self-signed-971124804\n certificate self-signed\ + \ 01\n 3082032E 30820216 A0030201 02020101 300D0609 2A864886 F70D0101 05050030\ + \ \n 30312E30 2C060355 04031325 494F532D 53656C66 2D536967 6E65642D 43657274\ + \ \n 69666963 6174652D 39373131 32343830 34301E17 0D323130 35323831 39323031\ + \ \n 315A170D 33303031 30313030 30303030 5A303031 2E302C06 03550403 1325494F\ + \ \n 532D5365 6C662D53 69676E65 642D4365 72746966 69636174 652D3937 31313234\ + \ \n 38303430 82012230 0D06092A 864886F7 0D010101 05000382 010F0030 82010A02\ + \ \n 82010100 9A5AFB47 FBB29463 C3B0E15E 881CAD52 5C652FC8 498B8FE2 BD025CA6\ + \ \n 9E98FB34 036B5B87 DC88A835 3B3A40DE 84ED8365 7CDA56F0 80630520 CCCE14A6\ + \ \n 9512C259 8D1E30E9 446A45EF 72464059 C0AB9279 F11AC3F6 71DFC173 95B99AE4\ + \ \n 3E4E32C6 00584C6C 7CE8A0FB 2DAEAC90 14516A4B C8B28D8C 444E9DDA 831DA497\ + \ \n 735818E4 5D7253C5 0FEE261A 0B9E9014 49AAAD3E E44AF3B1 351A19DC 7B78BE07\ + \ \n D452B6CC 4032AC79 33D3EC32 178FA55D B4F30EF6 B4AFF847 FB1677B6 A8969B6A\ + \ \n AB7D7019 4436A67B 98CC2808 62136E03 CE3CBE98 D32EF392 85406D04 7CAF3BE7\ + \ \n C2E34EAC 5F69E38A 6CC4E8B9 A00B76EC 79577B9B E5BBAA35 37D6B900 79D5EC0F\ + \ \n 5837E09B 02030100 01A35330 51300F06 03551D13 0101FF04 05300301 01FF301F\ + \ \n 0603551D 23041830 1680143A A780D0ED 95DFA1D7 42E88EBC DFCAA823 CFB03D30\ + \ \n 1D060355 1D0E0416 04143AA7 80D0ED95 DFA1D742 E88EBCDF CAA823CF B03D300D\ + \ \n 06092A86 4886F70D 01010505 00038201 010026D4 17358B20 82C17EC6 33F7ED1D\ + \ \n 8F6A52D0 67A557A0 46461293 D77EE377 1DB715B4 97C4C112 3FE955A9 99D17602\ + \ \n AA6F0DC8 A17F55D1 DDD335BF 4296E3C7 30974AA6 A260D83C EF127FE8 33ABF964\ + \ \n C45FF04C 9E271FD8 B6F4986F F2AA4ED9 AA940143 45F7B6BD 0973946F 35F66CBF\ + \ \n 5A7916D3 AC478064 7C69FE20 C57F7538 4AD5CF79 671270D0 4F779ABE D62485C4\ + \ \n 8979887C 79AA9B8C C6A6036C E2AA78E2 4D4331FC 9C5F5BF8 78E6D796 31697E35\ + \ \n 54C0AA53 E52EECD8 8ECF24E7 8A01A8D9 C33D8353 D9C34F93 CF41336A 02CD7F15\ + \ \n 22C3BF05 23579F26 EFF63502 3ED320ED 67E61168 9E25D8F0 B0FB882C 81E111FD\ + \ \n FC38A6E7 2DC02DC7 4DE9C66E 617E07DA 883A\n \tquit\ncrypto pki certificate\ + \ chain SLA-TrustPoint\n certificate ca 01\n 30820321 30820209 A0030201 02020101\ + \ 300D0609 2A864886 F70D0101 0B050030 \n 32310E30 0C060355 040A1305 43697363\ + \ 6F312030 1E060355 04031317 43697363 \n 6F204C69 63656E73 696E6720 526F6F74\ + \ 20434130 1E170D31 33303533 30313934 \n 3834375A 170D3338 30353330 31393438\ + \ 34375A30 32310E30 0C060355 040A1305 \n 43697363 6F312030 1E060355 04031317\ + \ 43697363 6F204C69 63656E73 696E6720 \n 526F6F74 20434130 82012230 0D06092A\ + \ 864886F7 0D010101 05000382 010F0030 \n 82010A02 82010100 A6BCBD96 131E05F7\ + \ 145EA72C 2CD686E6 17222EA1 F1EFF64D \n CBB4C798 212AA147 C655D8D7 9471380D\ + \ 8711441E 1AAF071A 9CAE6388 8A38E520 \n 1C394D78 462EF239 C659F715 B98C0A59\ + \ 5BBB5CBD 0CFEBEA3 700A8BF7 D8F256EE \n 4AA4E80D DB6FD1C9 60B1FD18 FFC69C96\ + \ 6FA68957 A2617DE7 104FDC5F EA2956AC \n 7390A3EB 2B5436AD C847A2C5 DAB553EB\ + \ 69A9A535 58E9F3E3 C0BD23CF 58BD7188 \n 68E69491 20F320E7 948E71D7 AE3BCC84\ + \ F10684C7 4BC8E00F 539BA42B 42C68BB7 \n C7479096 B4CB2D62 EA2F505D C7B062A4\ + \ 6811D95B E8250FC4 5D5D5FB8 8F27D191 \n C55F0D76 61F9A4CD 3D992327 A8BB03BD\ + \ 4E6D7069 7CBADF8B DF5F4368 95135E44 \n DFC7C6CF 04DD7FD1 02030100 01A34230\ + \ 40300E06 03551D0F 0101FF04 04030201 \n 06300F06 03551D13 0101FF04 05300301\ + \ 01FF301D 0603551D 0E041604 1449DC85 \n 4B3D31E5 1B3E6A17 606AF333 3D3B4C73\ + \ E8300D06 092A8648 86F70D01 010B0500 \n 03820101 00507F24 D3932A66 86025D9F\ + \ E838AE5C 6D4DF6B0 49631C78 240DA905 \n 604EDCDE FF4FED2B 77FC460E CD636FDB\ + \ DD44681E 3A5673AB 9093D3B1 6C9E3D8B \n D98987BF E40CBD9E 1AECA0C2 2189BB5C\ + \ 8FA85686 CD98B646 5575B146 8DFC66A8 \n 467A3DF4 4D565700 6ADF0F0D CF835015\ + \ 3C04FF7C 21E878AC 11BA9CD2 55A9232C \n 7CA7B7E6 C1AF74F6 152E99B7 B1FCF9BB\ + \ E973DE7F 5BDDEB86 C71E3B49 1765308B \n 5FB0DA06 B92AFE7F 494E8A9E 07B85737\ + \ F3A58BE1 1A48A229 C37C1E69 39F08678 \n 80DDCD16 D6BACECA EEBC7CF9 8428787B\ + \ 35202CDC 60E4616A B623CDBD 230E3AFB \n 418616A9 4093E049 4D10AB75 27E86F73\ + \ 932E35B5 8862FDAE 0275156F 719BB2F0 \n D697DF7F 28\n \tquit\n!\nlicense\ + \ udi pid CSR1000V sn 9IB2R42M6QG\ndiagnostic bootup level minimal\narchive\n\ + \ log config\n logging enable\n path bootflash:\nmemory free low-watermark\ + \ processor 72329\n!\n!\nspanning-tree extend system-id\n!\nusername boxen\ + \ privilege 15 password 0 b0x3N-b0x3N\n!\nredundancy\n!\n!\n!\n!\n!\n!\n!\ + \ \n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n! \n! \n!\n!\ninterface GigabitEthernet1\n\ \ ip address 10.0.0.15 255.255.255.0\n negotiation auto\n no mop enabled\n\ \ no mop sysid\n!\ninterface GigabitEthernet2\n no ip address\n shutdown\n\ \ negotiation auto\n no mop enabled\n no mop sysid\n!\ninterface GigabitEthernet3\n\ @@ -199,11 +199,11 @@ localhost:21022:ParamikoTransport::0: \ GigabitEthernet10\n no ip address\n shutdown\n negotiation auto\n no mop\ \ enabled\n no mop sysid\n!\n!\nvirtual-service csr_mgmt\n!\nip forward-protocol\ \ nd\nno ip http server\nno ip http secure-server\n!\nip ssh pubkey-chain\n\ - \ username vrnetlab\n key-hash ssh-rsa 5CC74A68B18B026A1709FB09D1F44E2F\ - \ \nip scp server enable\n!\n!\n!\n!\n!\n!\n!\ncontrol-plane\n!\n!\n!\n!\n\ - !\n!\nline con 0\n stopbits 1\nline vty 0 4\n login local\n transport input\ - \ all\nline vty 5 15\n login local\n transport input all\n!\nnetconf ssh\n\ - !\n!\n!\n!\n!\nnetconf-yang\nend\n\ncsr1000v#" + \ username boxen\n key-hash ssh-rsa 5CC74A68B18B026A1709FB09D1F44E2F \n\ + ip scp server enable\n!\n!\n!\n!\n!\n!\n!\ncontrol-plane\n!\n!\n!\n!\n!\n\ + !\nline con 0\n stopbits 1\nline vty 0 4\n login local\n transport input all\n\ + line vty 5 15\n login local\n transport input all\n!\nnetconf ssh\n!\n!\n\ + !\n!\n!\nnetconf-yang\nend\n\ncsr1000v#" expected_channel_input: show run | i file prompt expected_channel_input_redacted: false - channel_output: show run | i file prompt diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxe-ssh2].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxe-ssh2].yaml index 5774685..2340eba 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxe-ssh2].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxe-ssh2].yaml @@ -2,7 +2,7 @@ localhost:21022:Ssh2Transport::0: connection_profile: host: localhost port: 21022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -42,7 +42,7 @@ localhost:21022:Ssh2Transport::0: - channel_output: 'dir flash: | i bytes' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n6286540800 bytes total (5484630016 bytes free)\ncsr1000v#" + - channel_output: "\n6286540800 bytes total (5488705536 bytes free)\ncsr1000v#" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\ncsr1000v#" @@ -106,13 +106,13 @@ localhost:21022:Ssh2Transport::0: - channel_output: show running-config expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nBuilding configuration...\n\nCurrent configuration : 7021\ - \ bytes\n!\n! Last configuration change at 19:33:06 UTC Tue Apr 27 2021 by\ - \ vrnetlab\n!\nversion 16.12\nservice timestamps debug datetime msec\nservice\ + - channel_output: "\nBuilding configuration...\n\nCurrent configuration : 7013\ + \ bytes\n!\n! Last configuration change at 12:44:10 UTC Sat May 29 2021 by\ + \ boxen\n!\nversion 16.12\nservice timestamps debug datetime msec\nservice\ \ timestamps log datetime msec\nservice call-home\nplatform qfp utilization\ \ monitor load 80\nplatform punt-keepalive disable-kernel-core\nplatform console\ \ serial\n!\nhostname csr1000v\n!\nboot-start-marker\nboot-end-marker\n!\n\ - !\nenable secret 9 $9$h6Ayg86tb/EImk$2T6Ns.ke08cAlZ2TbMf3YRCYr7ngDGzgAxZB0YMe7lQ\n\ + !\nenable secret 9 $9$xvWnx8Fe35f8xE$E9ijp7GM/V48P5y1Uz3IEPtotXgwkJKYJmN0q3q2E92\n\ !\nno aaa new-model\ncall-home\n ! If contact email address in call-home is\ \ configured as sch-smart-licensing@cisco.com\n ! the email address configured\ \ in Cisco Smart License Portal will be used as contact email address to send\ @@ -121,68 +121,68 @@ localhost:21022:Ssh2Transport::0: \ no destination transport-method email\n!\n!\n!\n!\n!\n!\n!\nip domain name\ \ example.com\n!\n!\n!\nlogin on-success log\n!\n!\n!\n!\n!\n!\n!\nsubscriber\ \ templating\n! \n! \n! \n! \n!\n!\nmultilink bundle-name authenticated\n\ - !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\ncrypto pki trustpoint SLA-TrustPoint\n\ - \ enrollment pkcs12\n revocation-check crl\n!\ncrypto pki trustpoint TP-self-signed-422690288\n\ - \ enrollment selfsigned\n subject-name cn=IOS-Self-Signed-Certificate-422690288\n\ - \ revocation-check none\n rsakeypair TP-self-signed-422690288\n!\n!\ncrypto\ - \ pki certificate chain SLA-TrustPoint\n certificate ca 01\n 30820321 30820209\ - \ A0030201 02020101 300D0609 2A864886 F70D0101 0B050030 \n 32310E30 0C060355\ - \ 040A1305 43697363 6F312030 1E060355 04031317 43697363 \n 6F204C69 63656E73\ - \ 696E6720 526F6F74 20434130 1E170D31 33303533 30313934 \n 3834375A 170D3338\ - \ 30353330 31393438 34375A30 32310E30 0C060355 040A1305 \n 43697363 6F312030\ - \ 1E060355 04031317 43697363 6F204C69 63656E73 696E6720 \n 526F6F74 20434130\ - \ 82012230 0D06092A 864886F7 0D010101 05000382 010F0030 \n 82010A02 82010100\ - \ A6BCBD96 131E05F7 145EA72C 2CD686E6 17222EA1 F1EFF64D \n CBB4C798 212AA147\ - \ C655D8D7 9471380D 8711441E 1AAF071A 9CAE6388 8A38E520 \n 1C394D78 462EF239\ - \ C659F715 B98C0A59 5BBB5CBD 0CFEBEA3 700A8BF7 D8F256EE \n 4AA4E80D DB6FD1C9\ - \ 60B1FD18 FFC69C96 6FA68957 A2617DE7 104FDC5F EA2956AC \n 7390A3EB 2B5436AD\ - \ C847A2C5 DAB553EB 69A9A535 58E9F3E3 C0BD23CF 58BD7188 \n 68E69491 20F320E7\ - \ 948E71D7 AE3BCC84 F10684C7 4BC8E00F 539BA42B 42C68BB7 \n C7479096 B4CB2D62\ - \ EA2F505D C7B062A4 6811D95B E8250FC4 5D5D5FB8 8F27D191 \n C55F0D76 61F9A4CD\ - \ 3D992327 A8BB03BD 4E6D7069 7CBADF8B DF5F4368 95135E44 \n DFC7C6CF 04DD7FD1\ - \ 02030100 01A34230 40300E06 03551D0F 0101FF04 04030201 \n 06300F06 03551D13\ - \ 0101FF04 05300301 01FF301D 0603551D 0E041604 1449DC85 \n 4B3D31E5 1B3E6A17\ - \ 606AF333 3D3B4C73 E8300D06 092A8648 86F70D01 010B0500 \n 03820101 00507F24\ - \ D3932A66 86025D9F E838AE5C 6D4DF6B0 49631C78 240DA905 \n 604EDCDE FF4FED2B\ - \ 77FC460E CD636FDB DD44681E 3A5673AB 9093D3B1 6C9E3D8B \n D98987BF E40CBD9E\ - \ 1AECA0C2 2189BB5C 8FA85686 CD98B646 5575B146 8DFC66A8 \n 467A3DF4 4D565700\ - \ 6ADF0F0D CF835015 3C04FF7C 21E878AC 11BA9CD2 55A9232C \n 7CA7B7E6 C1AF74F6\ - \ 152E99B7 B1FCF9BB E973DE7F 5BDDEB86 C71E3B49 1765308B \n 5FB0DA06 B92AFE7F\ - \ 494E8A9E 07B85737 F3A58BE1 1A48A229 C37C1E69 39F08678 \n 80DDCD16 D6BACECA\ - \ EEBC7CF9 8428787B 35202CDC 60E4616A B623CDBD 230E3AFB \n 418616A9 4093E049\ - \ 4D10AB75 27E86F73 932E35B5 8862FDAE 0275156F 719BB2F0 \n D697DF7F 28\n\ - \ \tquit\ncrypto pki certificate chain TP-self-signed-422690288\n certificate\ - \ self-signed 01\n 3082032E 30820216 A0030201 02020101 300D0609 2A864886\ - \ F70D0101 05050030 \n 30312E30 2C060355 04031325 494F532D 53656C66 2D536967\ - \ 6E65642D 43657274 \n 69666963 6174652D 34323236 39303238 38301E17 0D323130\ - \ 34323431 34343633 \n 325A170D 33303031 30313030 30303030 5A303031 2E302C06\ - \ 03550403 1325494F \n 532D5365 6C662D53 69676E65 642D4365 72746966 69636174\ - \ 652D3432 32363930 \n 32383830 82012230 0D06092A 864886F7 0D010101 05000382\ - \ 010F0030 82010A02 \n 82010100 C27FD6F3 1166295D F49633D3 51450DE6 F9BFCF2F\ - \ 7D3AACC7 3B5ED6B2 \n 3F68308B 39990E36 EBD37E75 A4BEC830 3B2A690B 13830C49\ - \ 2B25D19A E2B96F77 \n BE553C56 EED3B3BB 6584D3BB B1765477 02E693D1 C2316AE4\ - \ 4EE23F38 E346D59F \n D7949E95 C48D9020 FD03136D 57FA5A92 9B8A57CE D455621E\ - \ A72B3D2C AAD3EB8B \n 65CF62D5 C18B005B CA85EAB2 60DAE050 866B4C85 BDBEF084\ - \ 0AA4560F C19B8AA5 \n 287090B9 6B035146 F42C3A94 F2EE4DD5 5A81EEC1 704D5584\ - \ 77ADDBA7 4DF33581 \n CABC4B99 B0FB35E9 25DF1AB1 C898CD50 C859B551 EEEF4A3B\ - \ 703351E7 8094547B \n DB6AC6AC 066D8AAD 96AAF404 336424BB 07876BDD 56B0DEBA\ - \ 4CE59AEF 58F9E6EF \n 3F1B3887 02030100 01A35330 51300F06 03551D13 0101FF04\ - \ 05300301 01FF301F \n 0603551D 23041830 16801452 75C9AA75 B92C6980 AFFF95F7\ - \ 015BA9DB CF56EF30 \n 1D060355 1D0E0416 04145275 C9AA75B9 2C6980AF FF95F701\ - \ 5BA9DBCF 56EF300D \n 06092A86 4886F70D 01010505 00038201 01007990 FB8C5182\ - \ 74A472E9 F8933726 \n 0AAAE421 58EC4C5E DD15BAAE 5E95D5D3 12FE143C 8A80F8FF\ - \ F4512402 DE2D1091 \n F0928C73 ACB88E28 4DADB7CD E5876DE4 FCE7E1C1 EB465801\ - \ 9592F6C0 06501F1F \n 03118D27 7F80C6C0 4C4C3CFC 67FABA0D 65C9E228 B4F43ED9\ - \ FAE62872 FFBCC72F \n 25635208 12E436D4 7F27BA6E 151EE76A 560AC6D4 B9983DF4\ - \ 85D990E7 42A83E9B \n CDB0E802 4D2B1C3B A091CC70 F2878CAF 1222B9D6 9FA625F0\ - \ B4426FAF 75C0B1DE \n 16B3C323 0E1B1D98 9B35DCCD 43A6CA7B C59AF71E FE525B64\ - \ F921D394 5CD3E67B \n 3E808F51 6B93BF9A 28BD9F50 E0C6AB58 4266EA8C 38893595\ - \ BAE03E69 838973C2 \n 928F6137 2DCA8AB4 530DB0E8 57A12266 A50C\n \tquit\n\ - !\nlicense udi pid CSR1000V sn 9MVVU09YZFH\ndiagnostic bootup level minimal\n\ - archive\n log config\n logging enable\n path bootflash:\nmemory free low-watermark\ - \ processor 72329\n!\n!\nspanning-tree extend system-id\n!\nusername vrnetlab\ - \ privilege 15 password 0 VR-netlab9\n!\nredundancy\n!\n!\n!\n!\n!\n!\n! \n\ - !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n! \n! \n!\n!\ninterface GigabitEthernet1\n\ + !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\ncrypto pki trustpoint TP-self-signed-971124804\n\ + \ enrollment selfsigned\n subject-name cn=IOS-Self-Signed-Certificate-971124804\n\ + \ revocation-check none\n rsakeypair TP-self-signed-971124804\n!\ncrypto pki\ + \ trustpoint SLA-TrustPoint\n enrollment pkcs12\n revocation-check crl\n!\n\ + !\ncrypto pki certificate chain TP-self-signed-971124804\n certificate self-signed\ + \ 01\n 3082032E 30820216 A0030201 02020101 300D0609 2A864886 F70D0101 05050030\ + \ \n 30312E30 2C060355 04031325 494F532D 53656C66 2D536967 6E65642D 43657274\ + \ \n 69666963 6174652D 39373131 32343830 34301E17 0D323130 35323831 39323031\ + \ \n 315A170D 33303031 30313030 30303030 5A303031 2E302C06 03550403 1325494F\ + \ \n 532D5365 6C662D53 69676E65 642D4365 72746966 69636174 652D3937 31313234\ + \ \n 38303430 82012230 0D06092A 864886F7 0D010101 05000382 010F0030 82010A02\ + \ \n 82010100 9A5AFB47 FBB29463 C3B0E15E 881CAD52 5C652FC8 498B8FE2 BD025CA6\ + \ \n 9E98FB34 036B5B87 DC88A835 3B3A40DE 84ED8365 7CDA56F0 80630520 CCCE14A6\ + \ \n 9512C259 8D1E30E9 446A45EF 72464059 C0AB9279 F11AC3F6 71DFC173 95B99AE4\ + \ \n 3E4E32C6 00584C6C 7CE8A0FB 2DAEAC90 14516A4B C8B28D8C 444E9DDA 831DA497\ + \ \n 735818E4 5D7253C5 0FEE261A 0B9E9014 49AAAD3E E44AF3B1 351A19DC 7B78BE07\ + \ \n D452B6CC 4032AC79 33D3EC32 178FA55D B4F30EF6 B4AFF847 FB1677B6 A8969B6A\ + \ \n AB7D7019 4436A67B 98CC2808 62136E03 CE3CBE98 D32EF392 85406D04 7CAF3BE7\ + \ \n C2E34EAC 5F69E38A 6CC4E8B9 A00B76EC 79577B9B E5BBAA35 37D6B900 79D5EC0F\ + \ \n 5837E09B 02030100 01A35330 51300F06 03551D13 0101FF04 05300301 01FF301F\ + \ \n 0603551D 23041830 1680143A A780D0ED 95DFA1D7 42E88EBC DFCAA823 CFB03D30\ + \ \n 1D060355 1D0E0416 04143AA7 80D0ED95 DFA1D742 E88EBCDF CAA823CF B03D300D\ + \ \n 06092A86 4886F70D 01010505 00038201 010026D4 17358B20 82C17EC6 33F7ED1D\ + \ \n 8F6A52D0 67A557A0 46461293 D77EE377 1DB715B4 97C4C112 3FE955A9 99D17602\ + \ \n AA6F0DC8 A17F55D1 DDD335BF 4296E3C7 30974AA6 A260D83C EF127FE8 33ABF964\ + \ \n C45FF04C 9E271FD8 B6F4986F F2AA4ED9 AA940143 45F7B6BD 0973946F 35F66CBF\ + \ \n 5A7916D3 AC478064 7C69FE20 C57F7538 4AD5CF79 671270D0 4F779ABE D62485C4\ + \ \n 8979887C 79AA9B8C C6A6036C E2AA78E2 4D4331FC 9C5F5BF8 78E6D796 31697E35\ + \ \n 54C0AA53 E52EECD8 8ECF24E7 8A01A8D9 C33D8353 D9C34F93 CF41336A 02CD7F15\ + \ \n 22C3BF05 23579F26 EFF63502 3ED320ED 67E61168 9E25D8F0 B0FB882C 81E111FD\ + \ \n FC38A6E7 2DC02DC7 4DE9C66E 617E07DA 883A\n \tquit\ncrypto pki certificate\ + \ chain SLA-TrustPoint\n certificate ca 01\n 30820321 30820209 A0030201 02020101\ + \ 300D0609 2A864886 F70D0101 0B050030 \n 32310E30 0C060355 040A1305 43697363\ + \ 6F312030 1E060355 04031317 43697363 \n 6F204C69 63656E73 696E6720 526F6F74\ + \ 20434130 1E170D31 33303533 30313934 \n 3834375A 170D3338 30353330 31393438\ + \ 34375A30 32310E30 0C060355 040A1305 \n 43697363 6F312030 1E060355 04031317\ + \ 43697363 6F204C69 63656E73 696E6720 \n 526F6F74 20434130 82012230 0D06092A\ + \ 864886F7 0D010101 05000382 010F0030 \n 82010A02 82010100 A6BCBD96 131E05F7\ + \ 145EA72C 2CD686E6 17222EA1 F1EFF64D \n CBB4C798 212AA147 C655D8D7 9471380D\ + \ 8711441E 1AAF071A 9CAE6388 8A38E520 \n 1C394D78 462EF239 C659F715 B98C0A59\ + \ 5BBB5CBD 0CFEBEA3 700A8BF7 D8F256EE \n 4AA4E80D DB6FD1C9 60B1FD18 FFC69C96\ + \ 6FA68957 A2617DE7 104FDC5F EA2956AC \n 7390A3EB 2B5436AD C847A2C5 DAB553EB\ + \ 69A9A535 58E9F3E3 C0BD23CF 58BD7188 \n 68E69491 20F320E7 948E71D7 AE3BCC84\ + \ F10684C7 4BC8E00F 539BA42B 42C68BB7 \n C7479096 B4CB2D62 EA2F505D C7B062A4\ + \ 6811D95B E8250FC4 5D5D5FB8 8F27D191 \n C55F0D76 61F9A4CD 3D992327 A8BB03BD\ + \ 4E6D7069 7CBADF8B DF5F4368 95135E44 \n DFC7C6CF 04DD7FD1 02030100 01A34230\ + \ 40300E06 03551D0F 0101FF04 04030201 \n 06300F06 03551D13 0101FF04 05300301\ + \ 01FF301D 0603551D 0E041604 1449DC85 \n 4B3D31E5 1B3E6A17 606AF333 3D3B4C73\ + \ E8300D06 092A8648 86F70D01 010B0500 \n 03820101 00507F24 D3932A66 86025D9F\ + \ E838AE5C 6D4DF6B0 49631C78 240DA905 \n 604EDCDE FF4FED2B 77FC460E CD636FDB\ + \ DD44681E 3A5673AB 9093D3B1 6C9E3D8B \n D98987BF E40CBD9E 1AECA0C2 2189BB5C\ + \ 8FA85686 CD98B646 5575B146 8DFC66A8 \n 467A3DF4 4D565700 6ADF0F0D CF835015\ + \ 3C04FF7C 21E878AC 11BA9CD2 55A9232C \n 7CA7B7E6 C1AF74F6 152E99B7 B1FCF9BB\ + \ E973DE7F 5BDDEB86 C71E3B49 1765308B \n 5FB0DA06 B92AFE7F 494E8A9E 07B85737\ + \ F3A58BE1 1A48A229 C37C1E69 39F08678 \n 80DDCD16 D6BACECA EEBC7CF9 8428787B\ + \ 35202CDC 60E4616A B623CDBD 230E3AFB \n 418616A9 4093E049 4D10AB75 27E86F73\ + \ 932E35B5 8862FDAE 0275156F 719BB2F0 \n D697DF7F 28\n \tquit\n!\nlicense\ + \ udi pid CSR1000V sn 9IB2R42M6QG\ndiagnostic bootup level minimal\narchive\n\ + \ log config\n logging enable\n path bootflash:\nmemory free low-watermark\ + \ processor 72329\n!\n!\nspanning-tree extend system-id\n!\nusername boxen\ + \ privilege 15 password 0 b0x3N-b0x3N\n!\nredundancy\n!\n!\n!\n!\n!\n!\n!\ + \ \n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n! \n! \n!\n!\ninterface GigabitEthernet1\n\ \ ip address 10.0.0.15 255.255.255.0\n negotiation auto\n no mop enabled\n\ \ no mop sysid\n!\ninterface GigabitEthernet2\n no ip address\n shutdown\n\ \ negotiation auto\n no mop enabled\n no mop sysid\n!\ninterface GigabitEthernet3\n\ @@ -199,11 +199,11 @@ localhost:21022:Ssh2Transport::0: \ GigabitEthernet10\n no ip address\n shutdown\n negotiation auto\n no mop\ \ enabled\n no mop sysid\n!\n!\nvirtual-service csr_mgmt\n!\nip forward-protocol\ \ nd\nno ip http server\nno ip http secure-server\n!\nip ssh pubkey-chain\n\ - \ username vrnetlab\n key-hash ssh-rsa 5CC74A68B18B026A1709FB09D1F44E2F\ - \ \nip scp server enable\n!\n!\n!\n!\n!\n!\n!\ncontrol-plane\n!\n!\n!\n!\n\ - !\n!\nline con 0\n stopbits 1\nline vty 0 4\n login local\n transport input\ - \ all\nline vty 5 15\n login local\n transport input all\n!\nnetconf ssh\n\ - !\n!\n!\n!\n!\nnetconf-yang\nend\n\ncsr1000v#" + \ username boxen\n key-hash ssh-rsa 5CC74A68B18B026A1709FB09D1F44E2F \n\ + ip scp server enable\n!\n!\n!\n!\n!\n!\n!\ncontrol-plane\n!\n!\n!\n!\n!\n\ + !\nline con 0\n stopbits 1\nline vty 0 4\n login local\n transport input all\n\ + line vty 5 15\n login local\n transport input all\n!\nnetconf ssh\n!\n!\n\ + !\n!\n!\nnetconf-yang\nend\n\ncsr1000v#" expected_channel_input: show run | i file prompt expected_channel_input_redacted: false - channel_output: show run | i file prompt diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxe-system].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxe-system].yaml index d9b8f80..96fe9a1 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxe-system].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxe-system].yaml @@ -2,7 +2,7 @@ localhost:21022:SystemTransport::0: connection_profile: host: localhost port: 21022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -49,7 +49,7 @@ localhost:21022:SystemTransport::0: - channel_output: 'dir flash: | i bytes' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n6286540800 bytes total (5484630016 bytes free)\ncsr1000v#" + - channel_output: "\n6286540800 bytes total (5488705536 bytes free)\ncsr1000v#" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\ncsr1000v#" @@ -113,13 +113,13 @@ localhost:21022:SystemTransport::0: - channel_output: show running-config expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nBuilding configuration...\n\nCurrent configuration : 7021\ - \ bytes\n!\n! Last configuration change at 19:33:06 UTC Tue Apr 27 2021 by\ - \ vrnetlab\n!\nversion 16.12\nservice timestamps debug datetime msec\nservice\ + - channel_output: "\nBuilding configuration...\n\nCurrent configuration : 7013\ + \ bytes\n!\n! Last configuration change at 12:44:10 UTC Sat May 29 2021 by\ + \ boxen\n!\nversion 16.12\nservice timestamps debug datetime msec\nservice\ \ timestamps log datetime msec\nservice call-home\nplatform qfp utilization\ \ monitor load 80\nplatform punt-keepalive disable-kernel-core\nplatform console\ \ serial\n!\nhostname csr1000v\n!\nboot-start-marker\nboot-end-marker\n!\n\ - !\nenable secret 9 $9$h6Ayg86tb/EImk$2T6Ns.ke08cAlZ2TbMf3YRCYr7ngDGzgAxZB0YMe7lQ\n\ + !\nenable secret 9 $9$xvWnx8Fe35f8xE$E9ijp7GM/V48P5y1Uz3IEPtotXgwkJKYJmN0q3q2E92\n\ !\nno aaa new-model\ncall-home\n ! If contact email address in call-home is\ \ configured as sch-smart-licensing@cisco.com\n ! the email address configured\ \ in Cisco Smart License Portal will be used as contact email address to send\ @@ -128,68 +128,68 @@ localhost:21022:SystemTransport::0: \ no destination transport-method email\n!\n!\n!\n!\n!\n!\n!\nip domain name\ \ example.com\n!\n!\n!\nlogin on-success log\n!\n!\n!\n!\n!\n!\n!\nsubscriber\ \ templating\n! \n! \n! \n! \n!\n!\nmultilink bundle-name authenticated\n\ - !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\ncrypto pki trustpoint SLA-TrustPoint\n\ - \ enrollment pkcs12\n revocation-check crl\n!\ncrypto pki trustpoint TP-self-signed-422690288\n\ - \ enrollment selfsigned\n subject-name cn=IOS-Self-Signed-Certificate-422690288\n\ - \ revocation-check none\n rsakeypair TP-self-signed-422690288\n!\n!\ncrypto\ - \ pki certificate chain SLA-TrustPoint\n certificate ca 01\n 30820321 30820209\ - \ A0030201 02020101 300D0609 2A864886 F70D0101 0B050030 \n 32310E30 0C060355\ - \ 040A1305 43697363 6F312030 1E060355 04031317 43697363 \n 6F204C69 63656E73\ - \ 696E6720 526F6F74 20434130 1E170D31 33303533 30313934 \n 3834375A 170D3338\ - \ 30353330 31393438 34375A30 32310E30 0C060355 040A1305 \n 43697363 6F312030\ - \ 1E060355 04031317 43697363 6F204C69 63656E73 696E6720 \n 526F6F74 20434130\ - \ 82012230 0D06092A 864886F7 0D010101 05000382 010F0030 \n 82010A02 82010100\ - \ A6BCBD96 131E05F7 145EA72C 2CD686E6 17222EA1 F1EFF64D \n CBB4C798 212AA147\ - \ C655D8D7 9471380D 8711441E 1AAF071A 9CAE6388 8A38E520 \n 1C394D78 462EF239\ - \ C659F715 B98C0A59 5BBB5CBD 0CFEBEA3 700A8BF7 D8F256EE \n 4AA4E80D DB6FD1C9\ - \ 60B1FD18 FFC69C96 6FA68957 A2617DE7 104FDC5F EA2956AC \n 7390A3EB 2B5436AD\ - \ C847A2C5 DAB553EB 69A9A535 58E9F3E3 C0BD23CF 58BD7188 \n 68E69491 20F320E7\ - \ 948E71D7 AE3BCC84 F10684C7 4BC8E00F 539BA42B 42C68BB7 \n C7479096 B4CB2D62\ - \ EA2F505D C7B062A4 6811D95B E8250FC4 5D5D5FB8 8F27D191 \n C55F0D76 61F9A4CD\ - \ 3D992327 A8BB03BD 4E6D7069 7CBADF8B DF5F4368 95135E44 \n DFC7C6CF 04DD7FD1\ - \ 02030100 01A34230 40300E06 03551D0F 0101FF04 04030201 \n 06300F06 03551D13\ - \ 0101FF04 05300301 01FF301D 0603551D 0E041604 1449DC85 \n 4B3D31E5 1B3E6A17\ - \ 606AF333 3D3B4C73 E8300D06 092A8648 86F70D01 010B0500 \n 03820101 00507F24\ - \ D3932A66 86025D9F E838AE5C 6D4DF6B0 49631C78 240DA905 \n 604EDCDE FF4FED2B\ - \ 77FC460E CD636FDB DD44681E 3A5673AB 9093D3B1 6C9E3D8B \n D98987BF E40CBD9E\ - \ 1AECA0C2 2189BB5C 8FA85686 CD98B646 5575B146 8DFC66A8 \n 467A3DF4 4D565700\ - \ 6ADF0F0D CF835015 3C04FF7C 21E878AC 11BA9CD2 55A9232C \n 7CA7B7E6 C1AF74F6\ - \ 152E99B7 B1FCF9BB E973DE7F 5BDDEB86 C71E3B49 1765308B \n 5FB0DA06 B92AFE7F\ - \ 494E8A9E 07B85737 F3A58BE1 1A48A229 C37C1E69 39F08678 \n 80DDCD16 D6BACECA\ - \ EEBC7CF9 8428787B 35202CDC 60E4616A B623CDBD 230E3AFB \n 418616A9 4093E049\ - \ 4D10AB75 27E86F73 932E35B5 8862FDAE 0275156F 719BB2F0 \n D697DF7F 28\n\ - \ \tquit\ncrypto pki certificate chain TP-self-signed-422690288\n certificate\ - \ self-signed 01\n 3082032E 30820216 A0030201 02020101 300D0609 2A864886\ - \ F70D0101 05050030 \n 30312E30 2C060355 04031325 494F532D 53656C66 2D536967\ - \ 6E65642D 43657274 \n 69666963 6174652D 34323236 39303238 38301E17 0D323130\ - \ 34323431 34343633 \n 325A170D 33303031 30313030 30303030 5A303031 2E302C06\ - \ 03550403 1325494F \n 532D5365 6C662D53 69676E65 642D4365 72746966 69636174\ - \ 652D3432 32363930 \n 32383830 82012230 0D06092A 864886F7 0D010101 05000382\ - \ 010F0030 82010A02 \n 82010100 C27FD6F3 1166295D F49633D3 51450DE6 F9BFCF2F\ - \ 7D3AACC7 3B5ED6B2 \n 3F68308B 39990E36 EBD37E75 A4BEC830 3B2A690B 13830C49\ - \ 2B25D19A E2B96F77 \n BE553C56 EED3B3BB 6584D3BB B1765477 02E693D1 C2316AE4\ - \ 4EE23F38 E346D59F \n D7949E95 C48D9020 FD03136D 57FA5A92 9B8A57CE D455621E\ - \ A72B3D2C AAD3EB8B \n 65CF62D5 C18B005B CA85EAB2 60DAE050 866B4C85 BDBEF084\ - \ 0AA4560F C19B8AA5 \n 287090B9 6B035146 F42C3A94 F2EE4DD5 5A81EEC1 704D5584\ - \ 77ADDBA7 4DF33581 \n CABC4B99 B0FB35E9 25DF1AB1 C898CD50 C859B551 EEEF4A3B\ - \ 703351E7 8094547B \n DB6AC6AC 066D8AAD 96AAF404 336424BB 07876BDD 56B0DEBA\ - \ 4CE59AEF 58F9E6EF \n 3F1B3887 02030100 01A35330 51300F06 03551D13 0101FF04\ - \ 05300301 01FF301F \n 0603551D 23041830 16801452 75C9AA75 B92C6980 AFFF95F7\ - \ 015BA9DB CF56EF30 \n 1D060355 1D0E0416 04145275 C9AA75B9 2C6980AF FF95F701\ - \ 5BA9DBCF 56EF300D \n 06092A86 4886F70D 01010505 00038201 01007990 FB8C5182\ - \ 74A472E9 F8933726 \n 0AAAE421 58EC4C5E DD15BAAE 5E95D5D3 12FE143C 8A80F8FF\ - \ F4512402 DE2D1091 \n F0928C73 ACB88E28 4DADB7CD E5876DE4 FCE7E1C1 EB465801\ - \ 9592F6C0 06501F1F \n 03118D27 7F80C6C0 4C4C3CFC 67FABA0D 65C9E228 B4F43ED9\ - \ FAE62872 FFBCC72F \n 25635208 12E436D4 7F27BA6E 151EE76A 560AC6D4 B9983DF4\ - \ 85D990E7 42A83E9B \n CDB0E802 4D2B1C3B A091CC70 F2878CAF 1222B9D6 9FA625F0\ - \ B4426FAF 75C0B1DE \n 16B3C323 0E1B1D98 9B35DCCD 43A6CA7B C59AF71E FE525B64\ - \ F921D394 5CD3E67B \n 3E808F51 6B93BF9A 28BD9F50 E0C6AB58 4266EA8C 38893595\ - \ BAE03E69 838973C2 \n 928F6137 2DCA8AB4 530DB0E8 57A12266 A50C\n \tquit\n\ - !\nlicense udi pid CSR1000V sn 9MVVU09YZFH\ndiagnostic bootup level minimal\n\ - archive\n log config\n logging enable\n path bootflash:\nmemory free low-watermark\ - \ processor 72329\n!\n!\nspanning-tree extend system-id\n!\nusername vrnetlab\ - \ privilege 15 password 0 VR-netlab9\n!\nredundancy\n!\n!\n!\n!\n!\n!\n! \n\ - !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n! \n! \n!\n!\ninterface GigabitEthernet1\n\ + !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\ncrypto pki trustpoint TP-self-signed-971124804\n\ + \ enrollment selfsigned\n subject-name cn=IOS-Self-Signed-Certificate-971124804\n\ + \ revocation-check none\n rsakeypair TP-self-signed-971124804\n!\ncrypto pki\ + \ trustpoint SLA-TrustPoint\n enrollment pkcs12\n revocation-check crl\n!\n\ + !\ncrypto pki certificate chain TP-self-signed-971124804\n certificate self-signed\ + \ 01\n 3082032E 30820216 A0030201 02020101 300D0609 2A864886 F70D0101 05050030\ + \ \n 30312E30 2C060355 04031325 494F532D 53656C66 2D536967 6E65642D 43657274\ + \ \n 69666963 6174652D 39373131 32343830 34301E17 0D323130 35323831 39323031\ + \ \n 315A170D 33303031 30313030 30303030 5A303031 2E302C06 03550403 1325494F\ + \ \n 532D5365 6C662D53 69676E65 642D4365 72746966 69636174 652D3937 31313234\ + \ \n 38303430 82012230 0D06092A 864886F7 0D010101 05000382 010F0030 82010A02\ + \ \n 82010100 9A5AFB47 FBB29463 C3B0E15E 881CAD52 5C652FC8 498B8FE2 BD025CA6\ + \ \n 9E98FB34 036B5B87 DC88A835 3B3A40DE 84ED8365 7CDA56F0 80630520 CCCE14A6\ + \ \n 9512C259 8D1E30E9 446A45EF 72464059 C0AB9279 F11AC3F6 71DFC173 95B99AE4\ + \ \n 3E4E32C6 00584C6C 7CE8A0FB 2DAEAC90 14516A4B C8B28D8C 444E9DDA 831DA497\ + \ \n 735818E4 5D7253C5 0FEE261A 0B9E9014 49AAAD3E E44AF3B1 351A19DC 7B78BE07\ + \ \n D452B6CC 4032AC79 33D3EC32 178FA55D B4F30EF6 B4AFF847 FB1677B6 A8969B6A\ + \ \n AB7D7019 4436A67B 98CC2808 62136E03 CE3CBE98 D32EF392 85406D04 7CAF3BE7\ + \ \n C2E34EAC 5F69E38A 6CC4E8B9 A00B76EC 79577B9B E5BBAA35 37D6B900 79D5EC0F\ + \ \n 5837E09B 02030100 01A35330 51300F06 03551D13 0101FF04 05300301 01FF301F\ + \ \n 0603551D 23041830 1680143A A780D0ED 95DFA1D7 42E88EBC DFCAA823 CFB03D30\ + \ \n 1D060355 1D0E0416 04143AA7 80D0ED95 DFA1D742 E88EBCDF CAA823CF B03D300D\ + \ \n 06092A86 4886F70D 01010505 00038201 010026D4 17358B20 82C17EC6 33F7ED1D\ + \ \n 8F6A52D0 67A557A0 46461293 D77EE377 1DB715B4 97C4C112 3FE955A9 99D17602\ + \ \n AA6F0DC8 A17F55D1 DDD335BF 4296E3C7 30974AA6 A260D83C EF127FE8 33ABF964\ + \ \n C45FF04C 9E271FD8 B6F4986F F2AA4ED9 AA940143 45F7B6BD 0973946F 35F66CBF\ + \ \n 5A7916D3 AC478064 7C69FE20 C57F7538 4AD5CF79 671270D0 4F779ABE D62485C4\ + \ \n 8979887C 79AA9B8C C6A6036C E2AA78E2 4D4331FC 9C5F5BF8 78E6D796 31697E35\ + \ \n 54C0AA53 E52EECD8 8ECF24E7 8A01A8D9 C33D8353 D9C34F93 CF41336A 02CD7F15\ + \ \n 22C3BF05 23579F26 EFF63502 3ED320ED 67E61168 9E25D8F0 B0FB882C 81E111FD\ + \ \n FC38A6E7 2DC02DC7 4DE9C66E 617E07DA 883A\n \tquit\ncrypto pki certificate\ + \ chain SLA-TrustPoint\n certificate ca 01\n 30820321 30820209 A0030201 02020101\ + \ 300D0609 2A864886 F70D0101 0B050030 \n 32310E30 0C060355 040A1305 43697363\ + \ 6F312030 1E060355 04031317 43697363 \n 6F204C69 63656E73 696E6720 526F6F74\ + \ 20434130 1E170D31 33303533 30313934 \n 3834375A 170D3338 30353330 31393438\ + \ 34375A30 32310E30 0C060355 040A1305 \n 43697363 6F312030 1E060355 04031317\ + \ 43697363 6F204C69 63656E73 696E6720 \n 526F6F74 20434130 82012230 0D06092A\ + \ 864886F7 0D010101 05000382 010F0030 \n 82010A02 82010100 A6BCBD96 131E05F7\ + \ 145EA72C 2CD686E6 17222EA1 F1EFF64D \n CBB4C798 212AA147 C655D8D7 9471380D\ + \ 8711441E 1AAF071A 9CAE6388 8A38E520 \n 1C394D78 462EF239 C659F715 B98C0A59\ + \ 5BBB5CBD 0CFEBEA3 700A8BF7 D8F256EE \n 4AA4E80D DB6FD1C9 60B1FD18 FFC69C96\ + \ 6FA68957 A2617DE7 104FDC5F EA2956AC \n 7390A3EB 2B5436AD C847A2C5 DAB553EB\ + \ 69A9A535 58E9F3E3 C0BD23CF 58BD7188 \n 68E69491 20F320E7 948E71D7 AE3BCC84\ + \ F10684C7 4BC8E00F 539BA42B 42C68BB7 \n C7479096 B4CB2D62 EA2F505D C7B062A4\ + \ 6811D95B E8250FC4 5D5D5FB8 8F27D191 \n C55F0D76 61F9A4CD 3D992327 A8BB03BD\ + \ 4E6D7069 7CBADF8B DF5F4368 95135E44 \n DFC7C6CF 04DD7FD1 02030100 01A34230\ + \ 40300E06 03551D0F 0101FF04 04030201 \n 06300F06 03551D13 0101FF04 05300301\ + \ 01FF301D 0603551D 0E041604 1449DC85 \n 4B3D31E5 1B3E6A17 606AF333 3D3B4C73\ + \ E8300D06 092A8648 86F70D01 010B0500 \n 03820101 00507F24 D3932A66 86025D9F\ + \ E838AE5C 6D4DF6B0 49631C78 240DA905 \n 604EDCDE FF4FED2B 77FC460E CD636FDB\ + \ DD44681E 3A5673AB 9093D3B1 6C9E3D8B \n D98987BF E40CBD9E 1AECA0C2 2189BB5C\ + \ 8FA85686 CD98B646 5575B146 8DFC66A8 \n 467A3DF4 4D565700 6ADF0F0D CF835015\ + \ 3C04FF7C 21E878AC 11BA9CD2 55A9232C \n 7CA7B7E6 C1AF74F6 152E99B7 B1FCF9BB\ + \ E973DE7F 5BDDEB86 C71E3B49 1765308B \n 5FB0DA06 B92AFE7F 494E8A9E 07B85737\ + \ F3A58BE1 1A48A229 C37C1E69 39F08678 \n 80DDCD16 D6BACECA EEBC7CF9 8428787B\ + \ 35202CDC 60E4616A B623CDBD 230E3AFB \n 418616A9 4093E049 4D10AB75 27E86F73\ + \ 932E35B5 8862FDAE 0275156F 719BB2F0 \n D697DF7F 28\n \tquit\n!\nlicense\ + \ udi pid CSR1000V sn 9IB2R42M6QG\ndiagnostic bootup level minimal\narchive\n\ + \ log config\n logging enable\n path bootflash:\nmemory free low-watermark\ + \ processor 72329\n!\n!\nspanning-tree extend system-id\n!\nusername boxen\ + \ privilege 15 password 0 b0x3N-b0x3N\n!\nredundancy\n!\n!\n!\n!\n!\n!\n!\ + \ \n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n! \n! \n!\n!\ninterface GigabitEthernet1\n\ \ ip address 10.0.0.15 255.255.255.0\n negotiation auto\n no mop enabled\n\ \ no mop sysid\n!\ninterface GigabitEthernet2\n no ip address\n shutdown\n\ \ negotiation auto\n no mop enabled\n no mop sysid\n!\ninterface GigabitEthernet3\n\ @@ -206,11 +206,11 @@ localhost:21022:SystemTransport::0: \ GigabitEthernet10\n no ip address\n shutdown\n negotiation auto\n no mop\ \ enabled\n no mop sysid\n!\n!\nvirtual-service csr_mgmt\n!\nip forward-protocol\ \ nd\nno ip http server\nno ip http secure-server\n!\nip ssh pubkey-chain\n\ - \ username vrnetlab\n key-hash ssh-rsa 5CC74A68B18B026A1709FB09D1F44E2F\ - \ \nip scp server enable\n!\n!\n!\n!\n!\n!\n!\ncontrol-plane\n!\n!\n!\n!\n\ - !\n!\nline con 0\n stopbits 1\nline vty 0 4\n login local\n transport input\ - \ all\nline vty 5 15\n login local\n transport input all\n!\nnetconf ssh\n\ - !\n!\n!\n!\n!\nnetconf-yang\nend\n\ncsr1000v#" + \ username boxen\n key-hash ssh-rsa 5CC74A68B18B026A1709FB09D1F44E2F \n\ + ip scp server enable\n!\n!\n!\n!\n!\n!\n!\ncontrol-plane\n!\n!\n!\n!\n!\n\ + !\nline con 0\n stopbits 1\nline vty 0 4\n login local\n transport input all\n\ + line vty 5 15\n login local\n transport input all\n!\nnetconf ssh\n!\n!\n\ + !\n!\n!\nnetconf-yang\nend\n\ncsr1000v#" expected_channel_input: show run | i file prompt expected_channel_input_redacted: false - channel_output: show run | i file prompt diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxe-telnet].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxe-telnet].yaml index e3a2a74..8667364 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxe-telnet].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxe-telnet].yaml @@ -2,7 +2,7 @@ localhost:21023:TelnetTransport::0: connection_profile: host: localhost port: 21023 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -11,12 +11,12 @@ localhost:21023:TelnetTransport::0: auth_secondary: true interactions: - channel_output: "\n\nUser Access Verification\n\nUsername: " - expected_channel_input: vrnetlab + expected_channel_input: boxen expected_channel_input_redacted: false - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "vrnetlab\nPassword: " + - channel_output: "boxen\nPassword: " expected_channel_input: REDACTED expected_channel_input_redacted: true - channel_output: '' @@ -54,7 +54,7 @@ localhost:21023:TelnetTransport::0: - channel_output: 'dir flash: | i bytes' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n6286540800 bytes total (5484630016 bytes free)\ncsr1000v#" + - channel_output: "\n6286540800 bytes total (5488705536 bytes free)\ncsr1000v#" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\ncsr1000v#" @@ -118,13 +118,13 @@ localhost:21023:TelnetTransport::0: - channel_output: show running-config expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nBuilding configuration...\n\nCurrent configuration : 7021\ - \ bytes\n!\n! Last configuration change at 19:33:06 UTC Tue Apr 27 2021 by\ - \ vrnetlab\n!\nversion 16.12\nservice timestamps debug datetime msec\nservice\ + - channel_output: "\nBuilding configuration...\n\nCurrent configuration : 7013\ + \ bytes\n!\n! Last configuration change at 12:44:10 UTC Sat May 29 2021 by\ + \ boxen\n!\nversion 16.12\nservice timestamps debug datetime msec\nservice\ \ timestamps log datetime msec\nservice call-home\nplatform qfp utilization\ \ monitor load 80\nplatform punt-keepalive disable-kernel-core\nplatform console\ \ serial\n!\nhostname csr1000v\n!\nboot-start-marker\nboot-end-marker\n!\n\ - !\nenable secret 9 $9$h6Ayg86tb/EImk$2T6Ns.ke08cAlZ2TbMf3YRCYr7ngDGzgAxZB0YMe7lQ\n\ + !\nenable secret 9 $9$xvWnx8Fe35f8xE$E9ijp7GM/V48P5y1Uz3IEPtotXgwkJKYJmN0q3q2E92\n\ !\nno aaa new-model\ncall-home\n ! If contact email address in call-home is\ \ configured as sch-smart-licensing@cisco.com\n ! the email address configured\ \ in Cisco Smart License Portal will be used as contact email address to send\ @@ -133,68 +133,68 @@ localhost:21023:TelnetTransport::0: \ no destination transport-method email\n!\n!\n!\n!\n!\n!\n!\nip domain name\ \ example.com\n!\n!\n!\nlogin on-success log\n!\n!\n!\n!\n!\n!\n!\nsubscriber\ \ templating\n! \n! \n! \n! \n!\n!\nmultilink bundle-name authenticated\n\ - !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\ncrypto pki trustpoint SLA-TrustPoint\n\ - \ enrollment pkcs12\n revocation-check crl\n!\ncrypto pki trustpoint TP-self-signed-422690288\n\ - \ enrollment selfsigned\n subject-name cn=IOS-Self-Signed-Certificate-422690288\n\ - \ revocation-check none\n rsakeypair TP-self-signed-422690288\n!\n!\ncrypto\ - \ pki certificate chain SLA-TrustPoint\n certificate ca 01\n 30820321 30820209\ - \ A0030201 02020101 300D0609 2A864886 F70D0101 0B050030 \n 32310E30 0C060355\ - \ 040A1305 43697363 6F312030 1E060355 04031317 43697363 \n 6F204C69 63656E73\ - \ 696E6720 526F6F74 20434130 1E170D31 33303533 30313934 \n 3834375A 170D3338\ - \ 30353330 31393438 34375A30 32310E30 0C060355 040A1305 \n 43697363 6F312030\ - \ 1E060355 04031317 43697363 6F204C69 63656E73 696E6720 \n 526F6F74 20434130\ - \ 82012230 0D06092A 864886F7 0D010101 05000382 010F0030 \n 82010A02 82010100\ - \ A6BCBD96 131E05F7 145EA72C 2CD686E6 17222EA1 F1EFF64D \n CBB4C798 212AA147\ - \ C655D8D7 9471380D 8711441E 1AAF071A 9CAE6388 8A38E520 \n 1C394D78 462EF239\ - \ C659F715 B98C0A59 5BBB5CBD 0CFEBEA3 700A8BF7 D8F256EE \n 4AA4E80D DB6FD1C9\ - \ 60B1FD18 FFC69C96 6FA68957 A2617DE7 104FDC5F EA2956AC \n 7390A3EB 2B5436AD\ - \ C847A2C5 DAB553EB 69A9A535 58E9F3E3 C0BD23CF 58BD7188 \n 68E69491 20F320E7\ - \ 948E71D7 AE3BCC84 F10684C7 4BC8E00F 539BA42B 42C68BB7 \n C7479096 B4CB2D62\ - \ EA2F505D C7B062A4 6811D95B E8250FC4 5D5D5FB8 8F27D191 \n C55F0D76 61F9A4CD\ - \ 3D992327 A8BB03BD 4E6D7069 7CBADF8B DF5F4368 95135E44 \n DFC7C6CF 04DD7FD1\ - \ 02030100 01A34230 40300E06 03551D0F 0101FF04 04030201 \n 06300F06 03551D13\ - \ 0101FF04 05300301 01FF301D 0603551D 0E041604 1449DC85 \n 4B3D31E5 1B3E6A17\ - \ 606AF333 3D3B4C73 E8300D06 092A8648 86F70D01 010B0500 \n 03820101 00507F24\ - \ D3932A66 86025D9F E838AE5C 6D4DF6B0 49631C78 240DA905 \n 604EDCDE FF4FED2B\ - \ 77FC460E CD636FDB DD44681E 3A5673AB 9093D3B1 6C9E3D8B \n D98987BF E40CBD9E\ - \ 1AECA0C2 2189BB5C 8FA85686 CD98B646 5575B146 8DFC66A8 \n 467A3DF4 4D565700\ - \ 6ADF0F0D CF835015 3C04FF7C 21E878AC 11BA9CD2 55A9232C \n 7CA7B7E6 C1AF74F6\ - \ 152E99B7 B1FCF9BB E973DE7F 5BDDEB86 C71E3B49 1765308B \n 5FB0DA06 B92AFE7F\ - \ 494E8A9E 07B85737 F3A58BE1 1A48A229 C37C1E69 39F08678 \n 80DDCD16 D6BACECA\ - \ EEBC7CF9 8428787B 35202CDC 60E4616A B623CDBD 230E3AFB \n 418616A9 4093E049\ - \ 4D10AB75 27E86F73 932E35B5 8862FDAE 0275156F 719BB2F0 \n D697DF7F 28\n\ - \ \tquit\ncrypto pki certificate chain TP-self-signed-422690288\n certificate\ - \ self-signed 01\n 3082032E 30820216 A0030201 02020101 300D0609 2A864886\ - \ F70D0101 05050030 \n 30312E30 2C060355 04031325 494F532D 53656C66 2D536967\ - \ 6E65642D 43657274 \n 69666963 6174652D 34323236 39303238 38301E17 0D323130\ - \ 34323431 34343633 \n 325A170D 33303031 30313030 30303030 5A303031 2E302C06\ - \ 03550403 1325494F \n 532D5365 6C662D53 69676E65 642D4365 72746966 69636174\ - \ 652D3432 32363930 \n 32383830 82012230 0D06092A 864886F7 0D010101 05000382\ - \ 010F0030 82010A02 \n 82010100 C27FD6F3 1166295D F49633D3 51450DE6 F9BFCF2F\ - \ 7D3AACC7 3B5ED6B2 \n 3F68308B 39990E36 EBD37E75 A4BEC830 3B2A690B 13830C49\ - \ 2B25D19A E2B96F77 \n BE553C56 EED3B3BB 6584D3BB B1765477 02E693D1 C2316AE4\ - \ 4EE23F38 E346D59F \n D7949E95 C48D9020 FD03136D 57FA5A92 9B8A57CE D455621E\ - \ A72B3D2C AAD3EB8B \n 65CF62D5 C18B005B CA85EAB2 60DAE050 866B4C85 BDBEF084\ - \ 0AA4560F C19B8AA5 \n 287090B9 6B035146 F42C3A94 F2EE4DD5 5A81EEC1 704D5584\ - \ 77ADDBA7 4DF33581 \n CABC4B99 B0FB35E9 25DF1AB1 C898CD50 C859B551 EEEF4A3B\ - \ 703351E7 8094547B \n DB6AC6AC 066D8AAD 96AAF404 336424BB 07876BDD 56B0DEBA\ - \ 4CE59AEF 58F9E6EF \n 3F1B3887 02030100 01A35330 51300F06 03551D13 0101FF04\ - \ 05300301 01FF301F \n 0603551D 23041830 16801452 75C9AA75 B92C6980 AFFF95F7\ - \ 015BA9DB CF56EF30 \n 1D060355 1D0E0416 04145275 C9AA75B9 2C6980AF FF95F701\ - \ 5BA9DBCF 56EF300D \n 06092A86 4886F70D 01010505 00038201 01007990 FB8C5182\ - \ 74A472E9 F8933726 \n 0AAAE421 58EC4C5E DD15BAAE 5E95D5D3 12FE143C 8A80F8FF\ - \ F4512402 DE2D1091 \n F0928C73 ACB88E28 4DADB7CD E5876DE4 FCE7E1C1 EB465801\ - \ 9592F6C0 06501F1F \n 03118D27 7F80C6C0 4C4C3CFC 67FABA0D 65C9E228 B4F43ED9\ - \ FAE62872 FFBCC72F \n 25635208 12E436D4 7F27BA6E 151EE76A 560AC6D4 B9983DF4\ - \ 85D990E7 42A83E9B \n CDB0E802 4D2B1C3B A091CC70 F2878CAF 1222B9D6 9FA625F0\ - \ B4426FAF 75C0B1DE \n 16B3C323 0E1B1D98 9B35DCCD 43A6CA7B C59AF71E FE525B64\ - \ F921D394 5CD3E67B \n 3E808F51 6B93BF9A 28BD9F50 E0C6AB58 4266EA8C 38893595\ - \ BAE03E69 838973C2 \n 928F6137 2DCA8AB4 530DB0E8 57A12266 A50C\n \tquit\n\ - !\nlicense udi pid CSR1000V sn 9MVVU09YZFH\ndiagnostic bootup level minimal\n\ - archive\n log config\n logging enable\n path bootflash:\nmemory free low-watermark\ - \ processor 72329\n!\n!\nspanning-tree extend system-id\n!\nusername vrnetlab\ - \ privilege 15 password 0 VR-netlab9\n!\nredundancy\n!\n!\n!\n!\n!\n!\n! \n\ - !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n! \n! \n!\n!\ninterface GigabitEthernet1\n\ + !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\ncrypto pki trustpoint TP-self-signed-971124804\n\ + \ enrollment selfsigned\n subject-name cn=IOS-Self-Signed-Certificate-971124804\n\ + \ revocation-check none\n rsakeypair TP-self-signed-971124804\n!\ncrypto pki\ + \ trustpoint SLA-TrustPoint\n enrollment pkcs12\n revocation-check crl\n!\n\ + !\ncrypto pki certificate chain TP-self-signed-971124804\n certificate self-signed\ + \ 01\n 3082032E 30820216 A0030201 02020101 300D0609 2A864886 F70D0101 05050030\ + \ \n 30312E30 2C060355 04031325 494F532D 53656C66 2D536967 6E65642D 43657274\ + \ \n 69666963 6174652D 39373131 32343830 34301E17 0D323130 35323831 39323031\ + \ \n 315A170D 33303031 30313030 30303030 5A303031 2E302C06 03550403 1325494F\ + \ \n 532D5365 6C662D53 69676E65 642D4365 72746966 69636174 652D3937 31313234\ + \ \n 38303430 82012230 0D06092A 864886F7 0D010101 05000382 010F0030 82010A02\ + \ \n 82010100 9A5AFB47 FBB29463 C3B0E15E 881CAD52 5C652FC8 498B8FE2 BD025CA6\ + \ \n 9E98FB34 036B5B87 DC88A835 3B3A40DE 84ED8365 7CDA56F0 80630520 CCCE14A6\ + \ \n 9512C259 8D1E30E9 446A45EF 72464059 C0AB9279 F11AC3F6 71DFC173 95B99AE4\ + \ \n 3E4E32C6 00584C6C 7CE8A0FB 2DAEAC90 14516A4B C8B28D8C 444E9DDA 831DA497\ + \ \n 735818E4 5D7253C5 0FEE261A 0B9E9014 49AAAD3E E44AF3B1 351A19DC 7B78BE07\ + \ \n D452B6CC 4032AC79 33D3EC32 178FA55D B4F30EF6 B4AFF847 FB1677B6 A8969B6A\ + \ \n AB7D7019 4436A67B 98CC2808 62136E03 CE3CBE98 D32EF392 85406D04 7CAF3BE7\ + \ \n C2E34EAC 5F69E38A 6CC4E8B9 A00B76EC 79577B9B E5BBAA35 37D6B900 79D5EC0F\ + \ \n 5837E09B 02030100 01A35330 51300F06 03551D13 0101FF04 05300301 01FF301F\ + \ \n 0603551D 23041830 1680143A A780D0ED 95DFA1D7 42E88EBC DFCAA823 CFB03D30\ + \ \n 1D060355 1D0E0416 04143AA7 80D0ED95 DFA1D742 E88EBCDF CAA823CF B03D300D\ + \ \n 06092A86 4886F70D 01010505 00038201 010026D4 17358B20 82C17EC6 33F7ED1D\ + \ \n 8F6A52D0 67A557A0 46461293 D77EE377 1DB715B4 97C4C112 3FE955A9 99D17602\ + \ \n AA6F0DC8 A17F55D1 DDD335BF 4296E3C7 30974AA6 A260D83C EF127FE8 33ABF964\ + \ \n C45FF04C 9E271FD8 B6F4986F F2AA4ED9 AA940143 45F7B6BD 0973946F 35F66CBF\ + \ \n 5A7916D3 AC478064 7C69FE20 C57F7538 4AD5CF79 671270D0 4F779ABE D62485C4\ + \ \n 8979887C 79AA9B8C C6A6036C E2AA78E2 4D4331FC 9C5F5BF8 78E6D796 31697E35\ + \ \n 54C0AA53 E52EECD8 8ECF24E7 8A01A8D9 C33D8353 D9C34F93 CF41336A 02CD7F15\ + \ \n 22C3BF05 23579F26 EFF63502 3ED320ED 67E61168 9E25D8F0 B0FB882C 81E111FD\ + \ \n FC38A6E7 2DC02DC7 4DE9C66E 617E07DA 883A\n \tquit\ncrypto pki certificate\ + \ chain SLA-TrustPoint\n certificate ca 01\n 30820321 30820209 A0030201 02020101\ + \ 300D0609 2A864886 F70D0101 0B050030 \n 32310E30 0C060355 040A1305 43697363\ + \ 6F312030 1E060355 04031317 43697363 \n 6F204C69 63656E73 696E6720 526F6F74\ + \ 20434130 1E170D31 33303533 30313934 \n 3834375A 170D3338 30353330 31393438\ + \ 34375A30 32310E30 0C060355 040A1305 \n 43697363 6F312030 1E060355 04031317\ + \ 43697363 6F204C69 63656E73 696E6720 \n 526F6F74 20434130 82012230 0D06092A\ + \ 864886F7 0D010101 05000382 010F0030 \n 82010A02 82010100 A6BCBD96 131E05F7\ + \ 145EA72C 2CD686E6 17222EA1 F1EFF64D \n CBB4C798 212AA147 C655D8D7 9471380D\ + \ 8711441E 1AAF071A 9CAE6388 8A38E520 \n 1C394D78 462EF239 C659F715 B98C0A59\ + \ 5BBB5CBD 0CFEBEA3 700A8BF7 D8F256EE \n 4AA4E80D DB6FD1C9 60B1FD18 FFC69C96\ + \ 6FA68957 A2617DE7 104FDC5F EA2956AC \n 7390A3EB 2B5436AD C847A2C5 DAB553EB\ + \ 69A9A535 58E9F3E3 C0BD23CF 58BD7188 \n 68E69491 20F320E7 948E71D7 AE3BCC84\ + \ F10684C7 4BC8E00F 539BA42B 42C68BB7 \n C7479096 B4CB2D62 EA2F505D C7B062A4\ + \ 6811D95B E8250FC4 5D5D5FB8 8F27D191 \n C55F0D76 61F9A4CD 3D992327 A8BB03BD\ + \ 4E6D7069 7CBADF8B DF5F4368 95135E44 \n DFC7C6CF 04DD7FD1 02030100 01A34230\ + \ 40300E06 03551D0F 0101FF04 04030201 \n 06300F06 03551D13 0101FF04 05300301\ + \ 01FF301D 0603551D 0E041604 1449DC85 \n 4B3D31E5 1B3E6A17 606AF333 3D3B4C73\ + \ E8300D06 092A8648 86F70D01 010B0500 \n 03820101 00507F24 D3932A66 86025D9F\ + \ E838AE5C 6D4DF6B0 49631C78 240DA905 \n 604EDCDE FF4FED2B 77FC460E CD636FDB\ + \ DD44681E 3A5673AB 9093D3B1 6C9E3D8B \n D98987BF E40CBD9E 1AECA0C2 2189BB5C\ + \ 8FA85686 CD98B646 5575B146 8DFC66A8 \n 467A3DF4 4D565700 6ADF0F0D CF835015\ + \ 3C04FF7C 21E878AC 11BA9CD2 55A9232C \n 7CA7B7E6 C1AF74F6 152E99B7 B1FCF9BB\ + \ E973DE7F 5BDDEB86 C71E3B49 1765308B \n 5FB0DA06 B92AFE7F 494E8A9E 07B85737\ + \ F3A58BE1 1A48A229 C37C1E69 39F08678 \n 80DDCD16 D6BACECA EEBC7CF9 8428787B\ + \ 35202CDC 60E4616A B623CDBD 230E3AFB \n 418616A9 4093E049 4D10AB75 27E86F73\ + \ 932E35B5 8862FDAE 0275156F 719BB2F0 \n D697DF7F 28\n \tquit\n!\nlicense\ + \ udi pid CSR1000V sn 9IB2R42M6QG\ndiagnostic bootup level minimal\narchive\n\ + \ log config\n logging enable\n path bootflash:\nmemory free low-watermark\ + \ processor 72329\n!\n!\nspanning-tree extend system-id\n!\nusername boxen\ + \ privilege 15 password 0 b0x3N-b0x3N\n!\nredundancy\n!\n!\n!\n!\n!\n!\n!\ + \ \n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n! \n! \n!\n!\ninterface GigabitEthernet1\n\ \ ip address 10.0.0.15 255.255.255.0\n negotiation auto\n no mop enabled\n\ \ no mop sysid\n!\ninterface GigabitEthernet2\n no ip address\n shutdown\n\ \ negotiation auto\n no mop enabled\n no mop sysid\n!\ninterface GigabitEthernet3\n\ @@ -211,11 +211,11 @@ localhost:21023:TelnetTransport::0: \ GigabitEthernet10\n no ip address\n shutdown\n negotiation auto\n no mop\ \ enabled\n no mop sysid\n!\n!\nvirtual-service csr_mgmt\n!\nip forward-protocol\ \ nd\nno ip http server\nno ip http secure-server\n!\nip ssh pubkey-chain\n\ - \ username vrnetlab\n key-hash ssh-rsa 5CC74A68B18B026A1709FB09D1F44E2F\ - \ \nip scp server enable\n!\n!\n!\n!\n!\n!\n!\ncontrol-plane\n!\n!\n!\n!\n\ - !\n!\nline con 0\n stopbits 1\nline vty 0 4\n login local\n transport input\ - \ all\nline vty 5 15\n login local\n transport input all\n!\nnetconf ssh\n\ - !\n!\n!\n!\n!\nnetconf-yang\nend\n\ncsr1000v#" + \ username boxen\n key-hash ssh-rsa 5CC74A68B18B026A1709FB09D1F44E2F \n\ + ip scp server enable\n!\n!\n!\n!\n!\n!\n!\ncontrol-plane\n!\n!\n!\n!\n!\n\ + !\nline con 0\n stopbits 1\nline vty 0 4\n login local\n transport input all\n\ + line vty 5 15\n login local\n transport input all\n!\nnetconf ssh\n!\n!\n\ + !\n!\n!\nnetconf-yang\nend\n\ncsr1000v#" expected_channel_input: show run | i file prompt expected_channel_input_redacted: false - channel_output: show run | i file prompt diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxr-asyncssh].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxr-asyncssh].yaml index 090cebe..97fd508 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxr-asyncssh].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxr-asyncssh].yaml @@ -2,7 +2,7 @@ localhost:23022:AsyncsshTransport::0: connection_profile: host: localhost port: 23022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -13,25 +13,25 @@ localhost:23022:AsyncsshTransport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nRP/0/RP0/CPU0:ios#\n" + - channel_output: "\n\n\nRP/0/RP0/CPU0:ios#" expected_channel_input: terminal length 0 expected_channel_input_redacted: false - - channel_output: RP/0/RP0/CPU0:ios#terminal length 0 + - channel_output: terminal length 0 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:58:17.609 UTC\nRP/0/RP0/CPU0:ios#" + - channel_output: "\nSat May 29 13:13:06.370 UTC\nRP/0/RP0/CPU0:ios#" expected_channel_input: terminal width 512 expected_channel_input_redacted: false - channel_output: terminal width 512 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:58:17.696 UTC\nRP/0/RP0/CPU0:ios#" + - channel_output: "\nSat May 29 13:13:06.495 UTC\nRP/0/RP0/CPU0:ios#" expected_channel_input: show version | i Version expected_channel_input_redacted: false - channel_output: show version | i Version expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:58:17.792 UTC\nCisco IOS XR Software, Version\ + - channel_output: "\nSat May 29 13:13:06.583 UTC\nCisco IOS XR Software, Version\ \ 6.5.3\n Version : 6.5.3\nRP/0/RP0/CPU0:ios#" expected_channel_input: "\n" expected_channel_input_redacted: false @@ -41,7 +41,7 @@ localhost:23022:AsyncsshTransport::0: - channel_output: configure terminal expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:58:17.914 UTC\nRP/0/RP0/CPU0:ios(config)#" + - channel_output: "\nSat May 29 13:13:06.704 UTC\nRP/0/RP0/CPU0:ios(config)#" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nRP/0/RP0/CPU0:ios(config)#" @@ -62,7 +62,7 @@ localhost:23022:AsyncsshTransport::0: - channel_output: show commit changes diff expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:58:18.740 UTC\nBuilding configuration...\n\ + - channel_output: "\nSat May 29 13:13:07.443 UTC\nBuilding configuration...\n\ !! IOS XR Configuration version = 6.5.3\n+ interface Loopback1\n+ description\ \ tacocat\n !\nend\n\nRP/0/RP0/CPU0:ios(config-if)#" expected_channel_input: show running-config @@ -70,10 +70,10 @@ localhost:23022:AsyncsshTransport::0: - channel_output: show running-config expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:58:19.289 UTC\nBuilding configuration...\n\ - !! IOS XR Configuration version = 6.5.3\n!! Last configuration change at Tue\ - \ Apr 27 00:13:12 2021 by vrnetlab\n!\ntelnet vrf default ipv4 server max-servers\ - \ 10\nusername vrnetlab\n group root-lr\n group cisco-support\n secret 5 $1$5aFx$Ul43RjEjA7C4LFsghgQCu0\n\ + - channel_output: "\nSat May 29 13:13:07.942 UTC\nBuilding configuration...\n\ + !! IOS XR Configuration version = 6.5.3\n!! Last configuration change at Sat\ + \ May 29 01:20:11 2021 by boxen\n!\ntelnet vrf default ipv4 server max-servers\ + \ 10\nusername boxen\n group root-lr\n group cisco-support\n secret 5 $1$ERrP$IwIygdqbJGkqrXZDtaWVI0\n\ !\ncall-home\n service active\n contact smart-licensing\n profile CiscoTAC-1\n\ \ active\n destination transport-method http\n !\n!\ninterface MgmtEth0/RP0/CPU0/0\n\ \ ipv4 address 10.0.0.15 255.255.255.0\n!\ninterface GigabitEthernet0/0/0/0\n\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxr-asynctelnet].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxr-asynctelnet].yaml index 800e9ae..e86a81a 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxr-asynctelnet].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxr-asynctelnet].yaml @@ -2,7 +2,7 @@ localhost:23023:AsynctelnetTransport::0: connection_profile: host: localhost port: 23023 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -11,12 +11,12 @@ localhost:23023:AsynctelnetTransport::0: auth_secondary: false interactions: - channel_output: "\nUser Access Verification\n\nUsername: " - expected_channel_input: vrnetlab + expected_channel_input: boxen expected_channel_input_redacted: false - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "vrnetlab\nPassword: " + - channel_output: "boxen\nPassword: " expected_channel_input: REDACTED expected_channel_input_redacted: true - channel_output: '' @@ -31,19 +31,19 @@ localhost:23023:AsynctelnetTransport::0: - channel_output: terminal length 0 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:58:28.336 UTC\nRP/0/RP0/CPU0:ios#" + - channel_output: "\nSat May 29 13:13:15.745 UTC\nRP/0/RP0/CPU0:ios#" expected_channel_input: terminal width 512 expected_channel_input_redacted: false - channel_output: terminal width 512 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:58:28.426 UTC\nRP/0/RP0/CPU0:ios#" + - channel_output: "\nSat May 29 13:13:15.846 UTC\nRP/0/RP0/CPU0:ios#" expected_channel_input: show version | i Version expected_channel_input_redacted: false - channel_output: show version | i Version expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:58:28.532 UTC\nCisco IOS XR Software, Version\ + - channel_output: "\nSat May 29 13:13:15.943 UTC\nCisco IOS XR Software, Version\ \ 6.5.3\n Version : 6.5.3\nRP/0/RP0/CPU0:ios#" expected_channel_input: "\n" expected_channel_input_redacted: false @@ -53,7 +53,7 @@ localhost:23023:AsynctelnetTransport::0: - channel_output: configure terminal expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:58:28.659 UTC\nRP/0/RP0/CPU0:ios(config)#" + - channel_output: "\nSat May 29 13:13:16.049 UTC\nRP/0/RP0/CPU0:ios(config)#" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nRP/0/RP0/CPU0:ios(config)#" @@ -74,7 +74,7 @@ localhost:23023:AsynctelnetTransport::0: - channel_output: show commit changes diff expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:58:29.572 UTC\nBuilding configuration...\n\ + - channel_output: "\nSat May 29 13:13:16.786 UTC\nBuilding configuration...\n\ !! IOS XR Configuration version = 6.5.3\n+ interface Loopback1\n+ description\ \ tacocat\n !\nend\n\nRP/0/RP0/CPU0:ios(config-if)#" expected_channel_input: show running-config @@ -82,10 +82,10 @@ localhost:23023:AsynctelnetTransport::0: - channel_output: show running-config expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:58:30.199 UTC\nBuilding configuration...\n\ - !! IOS XR Configuration version = 6.5.3\n!! Last configuration change at Tue\ - \ Apr 27 00:13:12 2021 by vrnetlab\n!\ntelnet vrf default ipv4 server max-servers\ - \ 10\nusername vrnetlab\n group root-lr\n group cisco-support\n secret 5 $1$5aFx$Ul43RjEjA7C4LFsghgQCu0\n\ + - channel_output: "\nSat May 29 13:13:17.318 UTC\nBuilding configuration...\n\ + !! IOS XR Configuration version = 6.5.3\n!! Last configuration change at Sat\ + \ May 29 01:20:11 2021 by boxen\n!\ntelnet vrf default ipv4 server max-servers\ + \ 10\nusername boxen\n group root-lr\n group cisco-support\n secret 5 $1$ERrP$IwIygdqbJGkqrXZDtaWVI0\n\ !\ncall-home\n service active\n contact smart-licensing\n profile CiscoTAC-1\n\ \ active\n destination transport-method http\n !\n!\ninterface MgmtEth0/RP0/CPU0/0\n\ \ ipv4 address 10.0.0.15 255.255.255.0\n!\ninterface GigabitEthernet0/0/0/0\n\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxr-paramiko].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxr-paramiko].yaml index 796162c..42eeec5 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxr-paramiko].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxr-paramiko].yaml @@ -2,7 +2,7 @@ localhost:23022:ParamikoTransport::0: connection_profile: host: localhost port: 23022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -13,25 +13,25 @@ localhost:23022:ParamikoTransport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nRP/0/RP0/CPU0:ios#" + - channel_output: "\n\n\nRP/0/RP0/CPU0:ios#" expected_channel_input: terminal length 0 expected_channel_input_redacted: false - - channel_output: "\nRP/0/RP0/CPU0:ios#terminal length 0" + - channel_output: terminal length 0 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:49:07.126 UTC\nRP/0/RP0/CPU0:ios#" + - channel_output: "\nSat May 29 13:11:52.660 UTC\nRP/0/RP0/CPU0:ios#" expected_channel_input: terminal width 512 expected_channel_input_redacted: false - channel_output: terminal width 512 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:49:07.204 UTC\nRP/0/RP0/CPU0:ios#" + - channel_output: "\nSat May 29 13:11:52.803 UTC\nRP/0/RP0/CPU0:ios#" expected_channel_input: show version | i Version expected_channel_input_redacted: false - channel_output: show version | i Version expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:49:07.308 UTC\nCisco IOS XR Software, Version\ + - channel_output: "\nSat May 29 13:11:52.947 UTC\nCisco IOS XR Software, Version\ \ 6.5.3\n Version : 6.5.3\nRP/0/RP0/CPU0:ios#" expected_channel_input: "\n" expected_channel_input_redacted: false @@ -41,7 +41,7 @@ localhost:23022:ParamikoTransport::0: - channel_output: configure terminal expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:49:07.445 UTC\nRP/0/RP0/CPU0:ios(config)#" + - channel_output: "\nSat May 29 13:11:53.077 UTC\nRP/0/RP0/CPU0:ios(config)#" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nRP/0/RP0/CPU0:ios(config)#" @@ -62,7 +62,7 @@ localhost:23022:ParamikoTransport::0: - channel_output: show commit changes diff expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:49:08.282 UTC\nBuilding configuration...\n\ + - channel_output: "\nSat May 29 13:11:53.863 UTC\nBuilding configuration...\n\ !! IOS XR Configuration version = 6.5.3\n+ interface Loopback1\n+ description\ \ tacocat\n !\nend\n\nRP/0/RP0/CPU0:ios(config-if)#" expected_channel_input: show running-config @@ -70,10 +70,10 @@ localhost:23022:ParamikoTransport::0: - channel_output: show running-config expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:49:08.866 UTC\nBuilding configuration...\n\ - !! IOS XR Configuration version = 6.5.3\n!! Last configuration change at Tue\ - \ Apr 27 00:13:12 2021 by vrnetlab\n!\ntelnet vrf default ipv4 server max-servers\ - \ 10\nusername vrnetlab\n group root-lr\n group cisco-support\n secret 5 $1$5aFx$Ul43RjEjA7C4LFsghgQCu0\n\ + - channel_output: "\nSat May 29 13:11:54.413 UTC\nBuilding configuration...\n\ + !! IOS XR Configuration version = 6.5.3\n!! Last configuration change at Sat\ + \ May 29 01:20:11 2021 by boxen\n!\ntelnet vrf default ipv4 server max-servers\ + \ 10\nusername boxen\n group root-lr\n group cisco-support\n secret 5 $1$ERrP$IwIygdqbJGkqrXZDtaWVI0\n\ !\ncall-home\n service active\n contact smart-licensing\n profile CiscoTAC-1\n\ \ active\n destination transport-method http\n !\n!\ninterface MgmtEth0/RP0/CPU0/0\n\ \ ipv4 address 10.0.0.15 255.255.255.0\n!\ninterface GigabitEthernet0/0/0/0\n\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxr-ssh2].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxr-ssh2].yaml index d21349a..8f031c2 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxr-ssh2].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxr-ssh2].yaml @@ -2,7 +2,7 @@ localhost:23022:Ssh2Transport::0: connection_profile: host: localhost port: 23022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -13,26 +13,25 @@ localhost:23022:Ssh2Transport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n\nRP/0/RP0/CPU0:ios#\n" + - channel_output: "\n\n\nRP/0/RP0/CPU0:ios#" expected_channel_input: terminal length 0 expected_channel_input_redacted: false - channel_output: terminal length 0 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nRP/0/RP0/CPU0:ios#terminal length 0\nTue Apr 27 19:49:02.944\ - \ UTC\nRP/0/RP0/CPU0:ios#" + - channel_output: "\nSat May 29 13:11:48.972 UTC\nRP/0/RP0/CPU0:ios#" expected_channel_input: terminal width 512 expected_channel_input_redacted: false - channel_output: terminal width 512 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:49:03.066 UTC\nRP/0/RP0/CPU0:ios#" + - channel_output: "\nSat May 29 13:11:49.119 UTC\nRP/0/RP0/CPU0:ios#" expected_channel_input: show version | i Version expected_channel_input_redacted: false - channel_output: show version | i Version expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:49:03.167 UTC\nCisco IOS XR Software, Version\ + - channel_output: "\nSat May 29 13:11:49.239 UTC\nCisco IOS XR Software, Version\ \ 6.5.3\n Version : 6.5.3\nRP/0/RP0/CPU0:ios#" expected_channel_input: "\n" expected_channel_input_redacted: false @@ -42,7 +41,7 @@ localhost:23022:Ssh2Transport::0: - channel_output: configure terminal expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:49:03.289 UTC\nRP/0/RP0/CPU0:ios(config)#" + - channel_output: "\nSat May 29 13:11:49.342 UTC\nRP/0/RP0/CPU0:ios(config)#" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nRP/0/RP0/CPU0:ios(config)#" @@ -63,7 +62,7 @@ localhost:23022:Ssh2Transport::0: - channel_output: show commit changes diff expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:49:04.119 UTC\nBuilding configuration...\n\ + - channel_output: "\nSat May 29 13:11:50.090 UTC\nBuilding configuration...\n\ !! IOS XR Configuration version = 6.5.3\n+ interface Loopback1\n+ description\ \ tacocat\n !\nend\n\nRP/0/RP0/CPU0:ios(config-if)#" expected_channel_input: show running-config @@ -71,10 +70,10 @@ localhost:23022:Ssh2Transport::0: - channel_output: show running-config expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:49:04.738 UTC\nBuilding configuration...\n\ - !! IOS XR Configuration version = 6.5.3\n!! Last configuration change at Tue\ - \ Apr 27 00:13:12 2021 by vrnetlab\n!\ntelnet vrf default ipv4 server max-servers\ - \ 10\nusername vrnetlab\n group root-lr\n group cisco-support\n secret 5 $1$5aFx$Ul43RjEjA7C4LFsghgQCu0\n\ + - channel_output: "\nSat May 29 13:11:50.670 UTC\nBuilding configuration...\n\ + !! IOS XR Configuration version = 6.5.3\n!! Last configuration change at Sat\ + \ May 29 01:20:11 2021 by boxen\n!\ntelnet vrf default ipv4 server max-servers\ + \ 10\nusername boxen\n group root-lr\n group cisco-support\n secret 5 $1$ERrP$IwIygdqbJGkqrXZDtaWVI0\n\ !\ncall-home\n service active\n contact smart-licensing\n profile CiscoTAC-1\n\ \ active\n destination transport-method http\n !\n!\ninterface MgmtEth0/RP0/CPU0/0\n\ \ ipv4 address 10.0.0.15 255.255.255.0\n!\ninterface GigabitEthernet0/0/0/0\n\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxr-system].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxr-system].yaml index 5a3ec7e..6a8435e 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxr-system].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxr-system].yaml @@ -2,7 +2,7 @@ localhost:23022:SystemTransport::0: connection_profile: host: localhost port: 23022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -26,19 +26,19 @@ localhost:23022:SystemTransport::0: - channel_output: terminal length 0 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:48:58.802 UTC\nRP/0/RP0/CPU0:ios#" + - channel_output: "\nSat May 29 13:11:45.112 UTC\nRP/0/RP0/CPU0:ios#" expected_channel_input: terminal width 512 expected_channel_input_redacted: false - channel_output: terminal width 512 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:48:58.890 UTC\nRP/0/RP0/CPU0:ios#" + - channel_output: "\nSat May 29 13:11:45.241 UTC\nRP/0/RP0/CPU0:ios#" expected_channel_input: show version | i Version expected_channel_input_redacted: false - channel_output: show version | i Version expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:48:58.992 UTC\nCisco IOS XR Software, Version\ + - channel_output: "\nSat May 29 13:11:45.350 UTC\nCisco IOS XR Software, Version\ \ 6.5.3\n Version : 6.5.3\nRP/0/RP0/CPU0:ios#" expected_channel_input: "\n" expected_channel_input_redacted: false @@ -48,7 +48,7 @@ localhost:23022:SystemTransport::0: - channel_output: configure terminal expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:48:59.148 UTC\nRP/0/RP0/CPU0:ios(config)#" + - channel_output: "\nSat May 29 13:11:45.486 UTC\nRP/0/RP0/CPU0:ios(config)#" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nRP/0/RP0/CPU0:ios(config)#" @@ -69,7 +69,7 @@ localhost:23022:SystemTransport::0: - channel_output: show commit changes diff expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:48:59.976 UTC\nBuilding configuration...\n\ + - channel_output: "\nSat May 29 13:11:46.392 UTC\nBuilding configuration...\n\ !! IOS XR Configuration version = 6.5.3\n+ interface Loopback1\n+ description\ \ tacocat\n !\nend\n\nRP/0/RP0/CPU0:ios(config-if)#" expected_channel_input: show running-config @@ -77,10 +77,10 @@ localhost:23022:SystemTransport::0: - channel_output: show running-config expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:49:00.566 UTC\nBuilding configuration...\n\ - !! IOS XR Configuration version = 6.5.3\n!! Last configuration change at Tue\ - \ Apr 27 00:13:12 2021 by vrnetlab\n!\ntelnet vrf default ipv4 server max-servers\ - \ 10\nusername vrnetlab\n group root-lr\n group cisco-support\n secret 5 $1$5aFx$Ul43RjEjA7C4LFsghgQCu0\n\ + - channel_output: "\nSat May 29 13:11:47.011 UTC\nBuilding configuration...\n\ + !! IOS XR Configuration version = 6.5.3\n!! Last configuration change at Sat\ + \ May 29 01:20:11 2021 by boxen\n!\ntelnet vrf default ipv4 server max-servers\ + \ 10\nusername boxen\n group root-lr\n group cisco-support\n secret 5 $1$ERrP$IwIygdqbJGkqrXZDtaWVI0\n\ !\ncall-home\n service active\n contact smart-licensing\n profile CiscoTAC-1\n\ \ active\n destination transport-method http\n !\n!\ninterface MgmtEth0/RP0/CPU0/0\n\ \ ipv4 address 10.0.0.15 255.255.255.0\n!\ninterface GigabitEthernet0/0/0/0\n\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxr-telnet].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxr-telnet].yaml index ce96890..a5e6fb9 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxr-telnet].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_iosxr-telnet].yaml @@ -2,7 +2,7 @@ localhost:23023:TelnetTransport::0: connection_profile: host: localhost port: 23023 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -11,12 +11,12 @@ localhost:23023:TelnetTransport::0: auth_secondary: true interactions: - channel_output: "\nUser Access Verification\n\nUsername: " - expected_channel_input: vrnetlab + expected_channel_input: boxen expected_channel_input_redacted: false - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "vrnetlab\nPassword: " + - channel_output: "boxen\nPassword: " expected_channel_input: REDACTED expected_channel_input_redacted: true - channel_output: '' @@ -31,19 +31,19 @@ localhost:23023:TelnetTransport::0: - channel_output: terminal length 0 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:49:11.698 UTC\nRP/0/RP0/CPU0:ios#" + - channel_output: "\nSat May 29 13:11:56.210 UTC\nRP/0/RP0/CPU0:ios#" expected_channel_input: terminal width 512 expected_channel_input_redacted: false - channel_output: terminal width 512 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:49:11.802 UTC\nRP/0/RP0/CPU0:ios#" + - channel_output: "\nSat May 29 13:11:56.310 UTC\nRP/0/RP0/CPU0:ios#" expected_channel_input: show version | i Version expected_channel_input_redacted: false - channel_output: show version | i Version expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:49:11.918 UTC\nCisco IOS XR Software, Version\ + - channel_output: "\nSat May 29 13:11:56.422 UTC\nCisco IOS XR Software, Version\ \ 6.5.3\n Version : 6.5.3\nRP/0/RP0/CPU0:ios#" expected_channel_input: "\n" expected_channel_input_redacted: false @@ -53,7 +53,7 @@ localhost:23023:TelnetTransport::0: - channel_output: configure terminal expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:49:12.030 UTC\nRP/0/RP0/CPU0:ios(config)#" + - channel_output: "\nSat May 29 13:11:56.540 UTC\nRP/0/RP0/CPU0:ios(config)#" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nRP/0/RP0/CPU0:ios(config)#" @@ -74,7 +74,7 @@ localhost:23023:TelnetTransport::0: - channel_output: show commit changes diff expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:49:12.842 UTC\nBuilding configuration...\n\ + - channel_output: "\nSat May 29 13:11:57.336 UTC\nBuilding configuration...\n\ !! IOS XR Configuration version = 6.5.3\n+ interface Loopback1\n+ description\ \ tacocat\n !\nend\n\nRP/0/RP0/CPU0:ios(config-if)#" expected_channel_input: show running-config @@ -82,10 +82,10 @@ localhost:23023:TelnetTransport::0: - channel_output: show running-config expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:49:13.509 UTC\nBuilding configuration...\n\ - !! IOS XR Configuration version = 6.5.3\n!! Last configuration change at Tue\ - \ Apr 27 00:13:12 2021 by vrnetlab\n!\ntelnet vrf default ipv4 server max-servers\ - \ 10\nusername vrnetlab\n group root-lr\n group cisco-support\n secret 5 $1$5aFx$Ul43RjEjA7C4LFsghgQCu0\n\ + - channel_output: "\nSat May 29 13:11:58.041 UTC\nBuilding configuration...\n\ + !! IOS XR Configuration version = 6.5.3\n!! Last configuration change at Sat\ + \ May 29 01:20:11 2021 by boxen\n!\ntelnet vrf default ipv4 server max-servers\ + \ 10\nusername boxen\n group root-lr\n group cisco-support\n secret 5 $1$ERrP$IwIygdqbJGkqrXZDtaWVI0\n\ !\ncall-home\n service active\n contact smart-licensing\n profile CiscoTAC-1\n\ \ active\n destination transport-method http\n !\n!\ninterface MgmtEth0/RP0/CPU0/0\n\ \ ipv4 address 10.0.0.15 255.255.255.0\n!\ninterface GigabitEthernet0/0/0/0\n\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_nxos-asyncssh].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_nxos-asyncssh].yaml index c6caca9..e275be4 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_nxos-asyncssh].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_nxos-asyncssh].yaml @@ -2,7 +2,7 @@ localhost:22022:AsyncsshTransport::0: connection_profile: host: localhost port: 22022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -35,10 +35,10 @@ localhost:22022:AsyncsshTransport::0: \ any *\n* purposes is expressly prohibited except as otherwise authorized\ \ by *\n* Cisco in writing. \ \ *\n***************************************************************************\n\ - switch# \nswitch# " + switch# \n" expected_channel_input: terminal length 0 expected_channel_input_redacted: false - - channel_output: terminal length 0 + - channel_output: switch# terminal length 0 expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nswitch# " @@ -59,7 +59,7 @@ localhost:22022:AsyncsshTransport::0: - channel_output: "dir bootflash: | i 'bytes free'" expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n 1950605312 bytes free\nswitch# " + - channel_output: "\n 1950945280 bytes free\nswitch# " expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nswitch# " @@ -127,7 +127,7 @@ localhost:22022:AsyncsshTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\n\n!Command: show running-config\n!Running configuration last\ - \ done at: Tue Apr 27 16:04:25 2021\n!Time: Tue Apr 27 19:57:54 2021\n\nversion\ + \ done at: Sat May 29 12:38:33 2021\n!Time: Sat May 29 13:12:40 2021\n\nversion\ \ 9.2(4) Bios:version \nvdc switch id 1\n limit-resource vlan minimum 16\ \ maximum 4094\n limit-resource vrf minimum 2 maximum 4096\n limit-resource\ \ port-channel minimum 0 maximum 511\n limit-resource u4route-mem minimum\ @@ -135,12 +135,12 @@ localhost:22022:AsyncsshTransport::0: \ m4route-mem minimum 58 maximum 58\n limit-resource m6route-mem minimum\ \ 8 maximum 8\nfeature telnet\nfeature nxapi\nfeature scp-server\n\nno password\ \ strength-check\nusername admin password 5 $5$LOIMHI$hIaO64VM40/x.MTQoeWg8/IAn2iBY5jv4WZyzQbb5q9\ - \ role network-admin\nusername vrnetlab password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3\ - \ role network-admin\nusername vrnetlab passphrase lifetime 99999 warntime\ + \ role network-admin\nusername boxen password 5 $5$rFrywOjz$buvWY6uEPf79GVyfGNO6SGOi5gbxV2VAcsbBtyXDZyB\ + \ role network-admin\nusername boxen passphrase lifetime 99999 warntime\ \ 14 gracetime 3\nip domain-lookup\ncopp profile strict\nsnmp-server user\ \ admin network-admin auth md5 0xd42fc9f6e153a348e1ab40f0f5b84589 priv 0xd42fc9f6e153a348e1ab40f0f5b84589\ - \ localizedkey\nsnmp-server user vrnetlab network-admin auth md5 0x1a3abb28531cf988a22cc61af30861a7\ - \ priv 0x1a3abb28531cf988a22cc61af30861a7 localizedkey\nrmon event 1 description\ + \ localizedkey\nsnmp-server user boxen network-admin auth md5 0xc168bfc2b500129bd35ee550b6d5d93d\ + \ priv 0xc168bfc2b500129bd35ee550b6d5d93d localizedkey\nrmon event 1 description\ \ FATAL(1) owner PMON@FATAL\nrmon event 2 description CRITICAL(2) owner PMON@CRITICAL\n\ rmon event 3 description ERROR(3) owner PMON@ERROR\nrmon event 4 description\ \ WARNING(4) owner PMON@WARNING\nrmon event 5 description INFORMATION(5) owner\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_nxos-asynctelnet].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_nxos-asynctelnet].yaml index 939f374..91d4585 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_nxos-asynctelnet].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_nxos-asynctelnet].yaml @@ -2,7 +2,7 @@ localhost:22023:AsynctelnetTransport::0: connection_profile: host: localhost port: 22023 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -11,7 +11,7 @@ localhost:22023:AsynctelnetTransport::0: auth_secondary: false interactions: - channel_output: "User Access Verification\nlogin: " - expected_channel_input: vrnetlab + expected_channel_input: boxen expected_channel_input_redacted: false - channel_output: '' expected_channel_input: "\n" @@ -71,7 +71,7 @@ localhost:22023:AsynctelnetTransport::0: - channel_output: "dir bootflash: | i 'bytes free'" expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n 1950605312 bytes free\nswitch# " + - channel_output: "\n 1950945280 bytes free\nswitch# " expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nswitch# " @@ -139,7 +139,7 @@ localhost:22023:AsynctelnetTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\n\n!Command: show running-config\n!Running configuration last\ - \ done at: Tue Apr 27 16:04:25 2021\n!Time: Tue Apr 27 19:58:17 2021\n\nversion\ + \ done at: Sat May 29 12:38:33 2021\n!Time: Sat May 29 13:13:03 2021\n\nversion\ \ 9.2(4) Bios:version \nvdc switch id 1\n limit-resource vlan minimum 16\ \ maximum 4094\n limit-resource vrf minimum 2 maximum 4096\n limit-resource\ \ port-channel minimum 0 maximum 511\n limit-resource u4route-mem minimum\ @@ -147,12 +147,12 @@ localhost:22023:AsynctelnetTransport::0: \ m4route-mem minimum 58 maximum 58\n limit-resource m6route-mem minimum\ \ 8 maximum 8\nfeature telnet\nfeature nxapi\nfeature scp-server\n\nno password\ \ strength-check\nusername admin password 5 $5$LOIMHI$hIaO64VM40/x.MTQoeWg8/IAn2iBY5jv4WZyzQbb5q9\ - \ role network-admin\nusername vrnetlab password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3\ - \ role network-admin\nusername vrnetlab passphrase lifetime 99999 warntime\ + \ role network-admin\nusername boxen password 5 $5$rFrywOjz$buvWY6uEPf79GVyfGNO6SGOi5gbxV2VAcsbBtyXDZyB\ + \ role network-admin\nusername boxen passphrase lifetime 99999 warntime\ \ 14 gracetime 3\nip domain-lookup\ncopp profile strict\nsnmp-server user\ \ admin network-admin auth md5 0xd42fc9f6e153a348e1ab40f0f5b84589 priv 0xd42fc9f6e153a348e1ab40f0f5b84589\ - \ localizedkey\nsnmp-server user vrnetlab network-admin auth md5 0x1a3abb28531cf988a22cc61af30861a7\ - \ priv 0x1a3abb28531cf988a22cc61af30861a7 localizedkey\nrmon event 1 description\ + \ localizedkey\nsnmp-server user boxen network-admin auth md5 0xc168bfc2b500129bd35ee550b6d5d93d\ + \ priv 0xc168bfc2b500129bd35ee550b6d5d93d localizedkey\nrmon event 1 description\ \ FATAL(1) owner PMON@FATAL\nrmon event 2 description CRITICAL(2) owner PMON@CRITICAL\n\ rmon event 3 description ERROR(3) owner PMON@ERROR\nrmon event 4 description\ \ WARNING(4) owner PMON@WARNING\nrmon event 5 description INFORMATION(5) owner\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_nxos-paramiko].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_nxos-paramiko].yaml index 3caf591..0d4007f 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_nxos-paramiko].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_nxos-paramiko].yaml @@ -2,7 +2,7 @@ localhost:22022:ParamikoTransport::0: connection_profile: host: localhost port: 22022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -59,7 +59,7 @@ localhost:22022:ParamikoTransport::0: - channel_output: "dir bootflash: | i 'bytes free'" expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n 1950605312 bytes free\nswitch# " + - channel_output: "\n 1950945280 bytes free\nswitch# " expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nswitch# " @@ -127,7 +127,7 @@ localhost:22022:ParamikoTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\n\n!Command: show running-config\n!Running configuration last\ - \ done at: Tue Apr 27 16:04:25 2021\n!Time: Tue Apr 27 19:48:39 2021\n\nversion\ + \ done at: Sat May 29 12:38:33 2021\n!Time: Sat May 29 13:11:24 2021\n\nversion\ \ 9.2(4) Bios:version \nvdc switch id 1\n limit-resource vlan minimum 16\ \ maximum 4094\n limit-resource vrf minimum 2 maximum 4096\n limit-resource\ \ port-channel minimum 0 maximum 511\n limit-resource u4route-mem minimum\ @@ -135,12 +135,12 @@ localhost:22022:ParamikoTransport::0: \ m4route-mem minimum 58 maximum 58\n limit-resource m6route-mem minimum\ \ 8 maximum 8\nfeature telnet\nfeature nxapi\nfeature scp-server\n\nno password\ \ strength-check\nusername admin password 5 $5$LOIMHI$hIaO64VM40/x.MTQoeWg8/IAn2iBY5jv4WZyzQbb5q9\ - \ role network-admin\nusername vrnetlab password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3\ - \ role network-admin\nusername vrnetlab passphrase lifetime 99999 warntime\ + \ role network-admin\nusername boxen password 5 $5$rFrywOjz$buvWY6uEPf79GVyfGNO6SGOi5gbxV2VAcsbBtyXDZyB\ + \ role network-admin\nusername boxen passphrase lifetime 99999 warntime\ \ 14 gracetime 3\nip domain-lookup\ncopp profile strict\nsnmp-server user\ \ admin network-admin auth md5 0xd42fc9f6e153a348e1ab40f0f5b84589 priv 0xd42fc9f6e153a348e1ab40f0f5b84589\ - \ localizedkey\nsnmp-server user vrnetlab network-admin auth md5 0x1a3abb28531cf988a22cc61af30861a7\ - \ priv 0x1a3abb28531cf988a22cc61af30861a7 localizedkey\nrmon event 1 description\ + \ localizedkey\nsnmp-server user boxen network-admin auth md5 0xc168bfc2b500129bd35ee550b6d5d93d\ + \ priv 0xc168bfc2b500129bd35ee550b6d5d93d localizedkey\nrmon event 1 description\ \ FATAL(1) owner PMON@FATAL\nrmon event 2 description CRITICAL(2) owner PMON@CRITICAL\n\ rmon event 3 description ERROR(3) owner PMON@ERROR\nrmon event 4 description\ \ WARNING(4) owner PMON@WARNING\nrmon event 5 description INFORMATION(5) owner\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_nxos-ssh2].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_nxos-ssh2].yaml index 85a4bf6..17fd0c0 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_nxos-ssh2].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_nxos-ssh2].yaml @@ -2,7 +2,7 @@ localhost:22022:Ssh2Transport::0: connection_profile: host: localhost port: 22022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -59,7 +59,7 @@ localhost:22022:Ssh2Transport::0: - channel_output: "dir bootflash: | i 'bytes free'" expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n 1950605312 bytes free\nswitch# " + - channel_output: "\n 1950945280 bytes free\nswitch# " expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nswitch# " @@ -127,7 +127,7 @@ localhost:22022:Ssh2Transport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\n\n!Command: show running-config\n!Running configuration last\ - \ done at: Tue Apr 27 16:04:25 2021\n!Time: Tue Apr 27 19:48:21 2021\n\nversion\ + \ done at: Sat May 29 12:38:33 2021\n!Time: Sat May 29 13:11:08 2021\n\nversion\ \ 9.2(4) Bios:version \nvdc switch id 1\n limit-resource vlan minimum 16\ \ maximum 4094\n limit-resource vrf minimum 2 maximum 4096\n limit-resource\ \ port-channel minimum 0 maximum 511\n limit-resource u4route-mem minimum\ @@ -135,12 +135,12 @@ localhost:22022:Ssh2Transport::0: \ m4route-mem minimum 58 maximum 58\n limit-resource m6route-mem minimum\ \ 8 maximum 8\nfeature telnet\nfeature nxapi\nfeature scp-server\n\nno password\ \ strength-check\nusername admin password 5 $5$LOIMHI$hIaO64VM40/x.MTQoeWg8/IAn2iBY5jv4WZyzQbb5q9\ - \ role network-admin\nusername vrnetlab password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3\ - \ role network-admin\nusername vrnetlab passphrase lifetime 99999 warntime\ + \ role network-admin\nusername boxen password 5 $5$rFrywOjz$buvWY6uEPf79GVyfGNO6SGOi5gbxV2VAcsbBtyXDZyB\ + \ role network-admin\nusername boxen passphrase lifetime 99999 warntime\ \ 14 gracetime 3\nip domain-lookup\ncopp profile strict\nsnmp-server user\ \ admin network-admin auth md5 0xd42fc9f6e153a348e1ab40f0f5b84589 priv 0xd42fc9f6e153a348e1ab40f0f5b84589\ - \ localizedkey\nsnmp-server user vrnetlab network-admin auth md5 0x1a3abb28531cf988a22cc61af30861a7\ - \ priv 0x1a3abb28531cf988a22cc61af30861a7 localizedkey\nrmon event 1 description\ + \ localizedkey\nsnmp-server user boxen network-admin auth md5 0xc168bfc2b500129bd35ee550b6d5d93d\ + \ priv 0xc168bfc2b500129bd35ee550b6d5d93d localizedkey\nrmon event 1 description\ \ FATAL(1) owner PMON@FATAL\nrmon event 2 description CRITICAL(2) owner PMON@CRITICAL\n\ rmon event 3 description ERROR(3) owner PMON@ERROR\nrmon event 4 description\ \ WARNING(4) owner PMON@WARNING\nrmon event 5 description INFORMATION(5) owner\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_nxos-system].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_nxos-system].yaml index c6e3706..f1614fe 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_nxos-system].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_nxos-system].yaml @@ -2,7 +2,7 @@ localhost:22022:SystemTransport::0: connection_profile: host: localhost port: 22022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -66,7 +66,7 @@ localhost:22022:SystemTransport::0: - channel_output: "dir bootflash: | i 'bytes free'" expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n 1950605312 bytes free\nswitch# " + - channel_output: "\n 1950945280 bytes free\nswitch# " expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nswitch# " @@ -134,7 +134,7 @@ localhost:22022:SystemTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\n\n!Command: show running-config\n!Running configuration last\ - \ done at: Tue Apr 27 16:04:25 2021\n!Time: Tue Apr 27 19:48:03 2021\n\nversion\ + \ done at: Sat May 29 12:38:33 2021\n!Time: Sat May 29 13:10:53 2021\n\nversion\ \ 9.2(4) Bios:version \nvdc switch id 1\n limit-resource vlan minimum 16\ \ maximum 4094\n limit-resource vrf minimum 2 maximum 4096\n limit-resource\ \ port-channel minimum 0 maximum 511\n limit-resource u4route-mem minimum\ @@ -142,12 +142,12 @@ localhost:22022:SystemTransport::0: \ m4route-mem minimum 58 maximum 58\n limit-resource m6route-mem minimum\ \ 8 maximum 8\nfeature telnet\nfeature nxapi\nfeature scp-server\n\nno password\ \ strength-check\nusername admin password 5 $5$LOIMHI$hIaO64VM40/x.MTQoeWg8/IAn2iBY5jv4WZyzQbb5q9\ - \ role network-admin\nusername vrnetlab password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3\ - \ role network-admin\nusername vrnetlab passphrase lifetime 99999 warntime\ + \ role network-admin\nusername boxen password 5 $5$rFrywOjz$buvWY6uEPf79GVyfGNO6SGOi5gbxV2VAcsbBtyXDZyB\ + \ role network-admin\nusername boxen passphrase lifetime 99999 warntime\ \ 14 gracetime 3\nip domain-lookup\ncopp profile strict\nsnmp-server user\ \ admin network-admin auth md5 0xd42fc9f6e153a348e1ab40f0f5b84589 priv 0xd42fc9f6e153a348e1ab40f0f5b84589\ - \ localizedkey\nsnmp-server user vrnetlab network-admin auth md5 0x1a3abb28531cf988a22cc61af30861a7\ - \ priv 0x1a3abb28531cf988a22cc61af30861a7 localizedkey\nrmon event 1 description\ + \ localizedkey\nsnmp-server user boxen network-admin auth md5 0xc168bfc2b500129bd35ee550b6d5d93d\ + \ priv 0xc168bfc2b500129bd35ee550b6d5d93d localizedkey\nrmon event 1 description\ \ FATAL(1) owner PMON@FATAL\nrmon event 2 description CRITICAL(2) owner PMON@CRITICAL\n\ rmon event 3 description ERROR(3) owner PMON@ERROR\nrmon event 4 description\ \ WARNING(4) owner PMON@WARNING\nrmon event 5 description INFORMATION(5) owner\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_nxos-telnet].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_nxos-telnet].yaml index 1344cdc..51672cb 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_nxos-telnet].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[cisco_nxos-telnet].yaml @@ -2,7 +2,7 @@ localhost:22023:TelnetTransport::0: connection_profile: host: localhost port: 22023 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -11,7 +11,7 @@ localhost:22023:TelnetTransport::0: auth_secondary: true interactions: - channel_output: "User Access Verification\nlogin: " - expected_channel_input: vrnetlab + expected_channel_input: boxen expected_channel_input_redacted: false - channel_output: '' expected_channel_input: "\n" @@ -71,7 +71,7 @@ localhost:22023:TelnetTransport::0: - channel_output: "dir bootflash: | i 'bytes free'" expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n 1950605312 bytes free\nswitch# " + - channel_output: "\n 1950945280 bytes free\nswitch# " expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nswitch# " @@ -139,7 +139,7 @@ localhost:22023:TelnetTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\n\n!Command: show running-config\n!Running configuration last\ - \ done at: Tue Apr 27 16:04:25 2021\n!Time: Tue Apr 27 19:48:57 2021\n\nversion\ + \ done at: Sat May 29 12:38:33 2021\n!Time: Sat May 29 13:11:41 2021\n\nversion\ \ 9.2(4) Bios:version \nvdc switch id 1\n limit-resource vlan minimum 16\ \ maximum 4094\n limit-resource vrf minimum 2 maximum 4096\n limit-resource\ \ port-channel minimum 0 maximum 511\n limit-resource u4route-mem minimum\ @@ -147,12 +147,12 @@ localhost:22023:TelnetTransport::0: \ m4route-mem minimum 58 maximum 58\n limit-resource m6route-mem minimum\ \ 8 maximum 8\nfeature telnet\nfeature nxapi\nfeature scp-server\n\nno password\ \ strength-check\nusername admin password 5 $5$LOIMHI$hIaO64VM40/x.MTQoeWg8/IAn2iBY5jv4WZyzQbb5q9\ - \ role network-admin\nusername vrnetlab password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3\ - \ role network-admin\nusername vrnetlab passphrase lifetime 99999 warntime\ + \ role network-admin\nusername boxen password 5 $5$rFrywOjz$buvWY6uEPf79GVyfGNO6SGOi5gbxV2VAcsbBtyXDZyB\ + \ role network-admin\nusername boxen passphrase lifetime 99999 warntime\ \ 14 gracetime 3\nip domain-lookup\ncopp profile strict\nsnmp-server user\ \ admin network-admin auth md5 0xd42fc9f6e153a348e1ab40f0f5b84589 priv 0xd42fc9f6e153a348e1ab40f0f5b84589\ - \ localizedkey\nsnmp-server user vrnetlab network-admin auth md5 0x1a3abb28531cf988a22cc61af30861a7\ - \ priv 0x1a3abb28531cf988a22cc61af30861a7 localizedkey\nrmon event 1 description\ + \ localizedkey\nsnmp-server user boxen network-admin auth md5 0xc168bfc2b500129bd35ee550b6d5d93d\ + \ priv 0xc168bfc2b500129bd35ee550b6d5d93d localizedkey\nrmon event 1 description\ \ FATAL(1) owner PMON@FATAL\nrmon event 2 description CRITICAL(2) owner PMON@CRITICAL\n\ rmon event 3 description ERROR(3) owner PMON@ERROR\nrmon event 4 description\ \ WARNING(4) owner PMON@WARNING\nrmon event 5 description INFORMATION(5) owner\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[juniper_junos-asyncssh].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[juniper_junos-asyncssh].yaml index e922121..91b71b0 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[juniper_junos-asyncssh].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[juniper_junos-asyncssh].yaml @@ -2,7 +2,7 @@ localhost:25022:AsyncsshTransport::0: connection_profile: host: localhost port: 25022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -13,34 +13,34 @@ localhost:25022:AsyncsshTransport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "--- JUNOS 17.3R2.10 built 2018-02-08 02:19:07 UTC\n\nvrnetlab> " + - channel_output: "\n--- JUNOS 17.3R2.10 built 2018-02-08 02:19:07 UTC\nboxen> " expected_channel_input: set cli screen-length 0 expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> set cli screen-length 0" + - channel_output: "\n\nboxen> set cli screen-length 0" expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nScreen length set to 0\n\nvrnetlab> " + - channel_output: " \nScreen length set to 0\n\nboxen> " expected_channel_input: set cli screen-width 511 expected_channel_input_redacted: false - channel_output: set cli screen-width 511 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nScreen width set to 511\n\nvrnetlab> " + - channel_output: " \nScreen width set to 511\n\nboxen> " expected_channel_input: set cli complete-on-space off expected_channel_input_redacted: false - channel_output: set cli complete-on-space off expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nDisabling complete-on-space\n\nvrnetlab> " + - channel_output: " \nDisabling complete-on-space\n\nboxen> " expected_channel_input: 'show version | grep junos:' expected_channel_input_redacted: false - channel_output: 'show version | grep junos:' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nJunos: 17.3R2.10\n\nvrnetlab> " + - channel_output: " \nJunos: 17.3R2.10\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: start shell user root expected_channel_input_redacted: false - channel_output: start shell user root @@ -112,43 +112,43 @@ localhost:25022:AsyncsshTransport::0: - channel_output: exit expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nexit\n\nvrnetlab> " + - channel_output: "\nexit\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: configure expected_channel_input_redacted: false - channel_output: configure expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nEntering configuration mode\n\n[edit]\nvrnetlab# " + - channel_output: " \nEntering configuration mode\n\n[edit]\nboxen# " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n[edit]\nvrnetlab# " + - channel_output: "\n\n[edit]\nboxen# " expected_channel_input: load merge /config/__SCRAPLI_CFG_SESSION_NAME__ expected_channel_input_redacted: false - channel_output: load merge /config/__SCRAPLI_CFG_SESSION_NAME__ expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \n|\bload complete\n\n[edit]\nvrnetlab# " + - channel_output: " \n|\bload complete\n\n[edit]\nboxen# " expected_channel_input: show | compare expected_channel_input_redacted: false - channel_output: show | compare expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: " \n[edit interfaces fxp0 unit 0]\n+ description RACECAR;\n\ - \n[edit]\nvrnetlab# " + \n[edit]\nboxen# " expected_channel_input: run show configuration expected_channel_input_redacted: false - channel_output: run show configuration expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \n## Last commit: 2021-04-27 19:56:03 UTC by vrnetlab\nversion\ + - channel_output: " \n## Last commit: 2021-05-29 12:46:18 UTC by boxen\nversion\ \ 17.3R2.10;\nsystem {\n root-authentication {\n encrypted-password\ - \ \"$6$dWt4Lg4V$wiqols.Ou//eIg.3kpdu98L9hSzA7VSytcnV4NWI3S2BKM4rfruJf5JKLBdihyCyEgUVHb1Rw3xHIVxQR/O0F.\"\ - ; ## SECRET-DATA\n }\n login {\n user vrnetlab {\n \ - \ uid 2000;\n class super-user;\n authentication {\n\ - \ encrypted-password \"$6$1tKhsTEi$VjaGckqjhgSqaZf5rrWqlhDkI1xAsaTWxFRtVQQnpE4qaeIWFuQUZ3GulwPfBYq2RLSTTl/ZnyyZJrcBl.7lP0\"\ + \ \"$6$RhR81Jm4$DEXKIbZNGjv.agJvM.FlIZWtFqX/966PZk0r4/Ps3LlS.OQZn9fHoVGuYJ7Q.hj2OQLyPJO6Mq7aQ3xLQiNrx/\"\ + ; ## SECRET-DATA\n }\n login {\n user boxen {\n uid\ + \ 2000;\n class super-user;\n authentication {\n \ + \ encrypted-password \"$6$iYt26fU9$gkt6bgxPs.VqHgCoLuSD6Kxv1JUHJLQzXJgzAEUIxobvxWwRErtpaOFvBOjIHr3KMI7sEo.V/7xLXzr0Ok20h0\"\ ; ## SECRET-DATA\n }\n }\n }\n services {\n \ \ ssh {\n protocol-version v2;\n }\n telnet;\n \ \ netconf {\n ssh;\n }\n web-management {\n\ @@ -180,20 +180,20 @@ localhost:25022:AsyncsshTransport::0: \ tcp-rst;\n }\n security-zone untrust {\n \ \ screen untrust-screen;\n }\n }\n}\ninterfaces {\n fxp0 {\n\ \ unit 0 {\n family inet {\n address 10.0.0.15/24;\n\ - \ }\n }\n }\n}\n\n[edit]\nvrnetlab# " + \ }\n }\n }\n}\n\n[edit]\nboxen# " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n[edit]\nvrnetlab# " + - channel_output: "\n\n[edit]\nboxen# " expected_channel_input: exit configuration-mode expected_channel_input_redacted: false - channel_output: exit configuration-mode expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: " \nThe configuration has been changed but not committed\nExiting\ - \ configuration mode\n\nvrnetlab> " + \ configuration mode\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: start shell user root expected_channel_input_redacted: false - channel_output: start shell user root @@ -223,38 +223,38 @@ localhost:25022:AsyncsshTransport::0: - channel_output: exit expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nexit\n\nvrnetlab> " + - channel_output: "\nexit\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: configure expected_channel_input_redacted: false - channel_output: configure expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: " \nEntering configuration mode\nThe configuration has been\ - \ changed but not committed\n\n[edit]\nvrnetlab# " + \ changed but not committed\n\n[edit]\nboxen# " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n[edit]\nvrnetlab# " + - channel_output: "\n\n[edit]\nboxen# " expected_channel_input: rollback 0 expected_channel_input_redacted: false - channel_output: rollback 0 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nload complete\n\n[edit]\nvrnetlab# " + - channel_output: " \nload complete\n\n[edit]\nboxen# " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n[edit]\nvrnetlab# " + - channel_output: "\n\n[edit]\nboxen# " expected_channel_input: exit configuration-mode expected_channel_input_redacted: false - channel_output: exit configuration-mode expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nExiting configuration mode\n\nvrnetlab> " + - channel_output: " \nExiting configuration mode\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: exit expected_channel_input_redacted: false - channel_output: '' diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[juniper_junos-asynctelnet].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[juniper_junos-asynctelnet].yaml index b2d8896..86b8bdd 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[juniper_junos-asynctelnet].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[juniper_junos-asynctelnet].yaml @@ -2,7 +2,7 @@ localhost:25023:AsynctelnetTransport::0: connection_profile: host: localhost port: 25023 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -11,7 +11,7 @@ localhost:25023:AsynctelnetTransport::0: auth_secondary: false interactions: - channel_output: 'login: ' - expected_channel_input: vrnetlab + expected_channel_input: boxen expected_channel_input_redacted: false - channel_output: '' expected_channel_input: "\n" @@ -22,37 +22,37 @@ localhost:25023:AsynctelnetTransport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n--- JUNOS 17.3R2.10 built 2018-02-08 02:19:07 UTC\nvrnetlab> " + - channel_output: "\n\n--- JUNOS 17.3R2.10 built 2018-02-08 02:19:07 UTC\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: set cli screen-length 0 expected_channel_input_redacted: false - channel_output: set cli screen-length 0 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nScreen length set to 0\n\nvrnetlab> " + - channel_output: " \nScreen length set to 0\n\nboxen> " expected_channel_input: set cli screen-width 511 expected_channel_input_redacted: false - channel_output: set cli screen-width 511 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nScreen width set to 511\n\nvrnetlab> " + - channel_output: " \nScreen width set to 511\n\nboxen> " expected_channel_input: set cli complete-on-space off expected_channel_input_redacted: false - channel_output: set cli complete-on-space off expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nDisabling complete-on-space\n\nvrnetlab> " + - channel_output: " \nDisabling complete-on-space\n\nboxen> " expected_channel_input: 'show version | grep junos:' expected_channel_input_redacted: false - channel_output: 'show version | grep junos:' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nJunos: 17.3R2.10\n\nvrnetlab> " + - channel_output: " \nJunos: 17.3R2.10\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: start shell user root expected_channel_input_redacted: false - channel_output: start shell user root @@ -124,43 +124,43 @@ localhost:25023:AsynctelnetTransport::0: - channel_output: exit expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nexit\n\nvrnetlab> " + - channel_output: "\nexit\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: configure expected_channel_input_redacted: false - channel_output: configure expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nEntering configuration mode\n\n[edit]\nvrnetlab# " + - channel_output: " \nEntering configuration mode\n\n[edit]\nboxen# " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n[edit]\nvrnetlab# " + - channel_output: "\n\n[edit]\nboxen# " expected_channel_input: load merge /config/__SCRAPLI_CFG_SESSION_NAME__ expected_channel_input_redacted: false - channel_output: load merge /config/__SCRAPLI_CFG_SESSION_NAME__ expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \n|\bload complete\n\n[edit]\nvrnetlab# " + - channel_output: " \n|\bload complete\n\n[edit]\nboxen# " expected_channel_input: show | compare expected_channel_input_redacted: false - channel_output: show | compare expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: " \n[edit interfaces fxp0 unit 0]\n+ description RACECAR;\n\ - \n[edit]\nvrnetlab# " + \n[edit]\nboxen# " expected_channel_input: run show configuration expected_channel_input_redacted: false - channel_output: run show configuration expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \n## Last commit: 2021-04-27 19:56:03 UTC by vrnetlab\nversion\ + - channel_output: " \n## Last commit: 2021-05-29 12:46:18 UTC by boxen\nversion\ \ 17.3R2.10;\nsystem {\n root-authentication {\n encrypted-password\ - \ \"$6$dWt4Lg4V$wiqols.Ou//eIg.3kpdu98L9hSzA7VSytcnV4NWI3S2BKM4rfruJf5JKLBdihyCyEgUVHb1Rw3xHIVxQR/O0F.\"\ - ; ## SECRET-DATA\n }\n login {\n user vrnetlab {\n \ - \ uid 2000;\n class super-user;\n authentication {\n\ - \ encrypted-password \"$6$1tKhsTEi$VjaGckqjhgSqaZf5rrWqlhDkI1xAsaTWxFRtVQQnpE4qaeIWFuQUZ3GulwPfBYq2RLSTTl/ZnyyZJrcBl.7lP0\"\ + \ \"$6$RhR81Jm4$DEXKIbZNGjv.agJvM.FlIZWtFqX/966PZk0r4/Ps3LlS.OQZn9fHoVGuYJ7Q.hj2OQLyPJO6Mq7aQ3xLQiNrx/\"\ + ; ## SECRET-DATA\n }\n login {\n user boxen {\n uid\ + \ 2000;\n class super-user;\n authentication {\n \ + \ encrypted-password \"$6$iYt26fU9$gkt6bgxPs.VqHgCoLuSD6Kxv1JUHJLQzXJgzAEUIxobvxWwRErtpaOFvBOjIHr3KMI7sEo.V/7xLXzr0Ok20h0\"\ ; ## SECRET-DATA\n }\n }\n }\n services {\n \ \ ssh {\n protocol-version v2;\n }\n telnet;\n \ \ netconf {\n ssh;\n }\n web-management {\n\ @@ -192,20 +192,20 @@ localhost:25023:AsynctelnetTransport::0: \ tcp-rst;\n }\n security-zone untrust {\n \ \ screen untrust-screen;\n }\n }\n}\ninterfaces {\n fxp0 {\n\ \ unit 0 {\n family inet {\n address 10.0.0.15/24;\n\ - \ }\n }\n }\n}\n\n[edit]\nvrnetlab# " + \ }\n }\n }\n}\n\n[edit]\nboxen# " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n[edit]\nvrnetlab# " + - channel_output: "\n\n[edit]\nboxen# " expected_channel_input: exit configuration-mode expected_channel_input_redacted: false - channel_output: exit configuration-mode expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: " \nThe configuration has been changed but not committed\nExiting\ - \ configuration mode\n\nvrnetlab> " + \ configuration mode\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: start shell user root expected_channel_input_redacted: false - channel_output: start shell user root @@ -235,38 +235,38 @@ localhost:25023:AsynctelnetTransport::0: - channel_output: exit expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nexit\n\nvrnetlab> " + - channel_output: "\nexit\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: configure expected_channel_input_redacted: false - channel_output: configure expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: " \nEntering configuration mode\nThe configuration has been\ - \ changed but not committed\n\n[edit]\nvrnetlab# " + \ changed but not committed\n\n[edit]\nboxen# " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n[edit]\nvrnetlab# " + - channel_output: "\n\n[edit]\nboxen# " expected_channel_input: rollback 0 expected_channel_input_redacted: false - channel_output: rollback 0 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nload complete\n\n[edit]\nvrnetlab# " + - channel_output: " \nload complete\n\n[edit]\nboxen# " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n[edit]\nvrnetlab# " + - channel_output: "\n\n[edit]\nboxen# " expected_channel_input: exit configuration-mode expected_channel_input_redacted: false - channel_output: exit configuration-mode expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nExiting configuration mode\n\nvrnetlab> " + - channel_output: " \nExiting configuration mode\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: exit expected_channel_input_redacted: false - channel_output: '' diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[juniper_junos-paramiko].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[juniper_junos-paramiko].yaml index fe228ef..9dffa3c 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[juniper_junos-paramiko].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[juniper_junos-paramiko].yaml @@ -2,7 +2,7 @@ localhost:25022:ParamikoTransport::0: connection_profile: host: localhost port: 25022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -13,34 +13,34 @@ localhost:25022:ParamikoTransport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n--- JUNOS 17.3R2.10 built 2018-02-08 02:19:07 UTC\nvrnetlab> " + - channel_output: "\n--- JUNOS 17.3R2.10 built 2018-02-08 02:19:07 UTC\nboxen> " expected_channel_input: set cli screen-length 0 expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> set cli screen-length 0" + - channel_output: "\n\nboxen> set cli screen-length 0" expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nScreen length set to 0\n\nvrnetlab> " + - channel_output: " \nScreen length set to 0\n\nboxen> " expected_channel_input: set cli screen-width 511 expected_channel_input_redacted: false - channel_output: set cli screen-width 511 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nScreen width set to 511\n\nvrnetlab> " + - channel_output: " \nScreen width set to 511\n\nboxen> " expected_channel_input: set cli complete-on-space off expected_channel_input_redacted: false - channel_output: set cli complete-on-space off expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nDisabling complete-on-space\n\nvrnetlab> " + - channel_output: " \nDisabling complete-on-space\n\nboxen> " expected_channel_input: 'show version | grep junos:' expected_channel_input_redacted: false - channel_output: 'show version | grep junos:' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nJunos: 17.3R2.10\n\nvrnetlab> " + - channel_output: " \nJunos: 17.3R2.10\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: start shell user root expected_channel_input_redacted: false - channel_output: start shell user root @@ -112,43 +112,43 @@ localhost:25022:ParamikoTransport::0: - channel_output: exit expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nexit\n\nvrnetlab> " + - channel_output: "\nexit\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: configure expected_channel_input_redacted: false - channel_output: configure expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nEntering configuration mode\n\n[edit]\nvrnetlab# " + - channel_output: " \nEntering configuration mode\n\n[edit]\nboxen# " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n[edit]\nvrnetlab# " + - channel_output: "\n\n[edit]\nboxen# " expected_channel_input: load merge /config/__SCRAPLI_CFG_SESSION_NAME__ expected_channel_input_redacted: false - channel_output: load merge /config/__SCRAPLI_CFG_SESSION_NAME__ expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \n|\bload complete\n\n[edit]\nvrnetlab# " + - channel_output: " \n|\bload complete\n\n[edit]\nboxen# " expected_channel_input: show | compare expected_channel_input_redacted: false - channel_output: show | compare expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: " \n[edit interfaces fxp0 unit 0]\n+ description RACECAR;\n\ - \n[edit]\nvrnetlab# " + \n[edit]\nboxen# " expected_channel_input: run show configuration expected_channel_input_redacted: false - channel_output: run show configuration expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \n## Last commit: 2021-04-27 19:35:05 UTC by vrnetlab\nversion\ + - channel_output: " \n## Last commit: 2021-05-29 12:46:18 UTC by boxen\nversion\ \ 17.3R2.10;\nsystem {\n root-authentication {\n encrypted-password\ - \ \"$6$dWt4Lg4V$wiqols.Ou//eIg.3kpdu98L9hSzA7VSytcnV4NWI3S2BKM4rfruJf5JKLBdihyCyEgUVHb1Rw3xHIVxQR/O0F.\"\ - ; ## SECRET-DATA\n }\n login {\n user vrnetlab {\n \ - \ uid 2000;\n class super-user;\n authentication {\n\ - \ encrypted-password \"$6$1tKhsTEi$VjaGckqjhgSqaZf5rrWqlhDkI1xAsaTWxFRtVQQnpE4qaeIWFuQUZ3GulwPfBYq2RLSTTl/ZnyyZJrcBl.7lP0\"\ + \ \"$6$RhR81Jm4$DEXKIbZNGjv.agJvM.FlIZWtFqX/966PZk0r4/Ps3LlS.OQZn9fHoVGuYJ7Q.hj2OQLyPJO6Mq7aQ3xLQiNrx/\"\ + ; ## SECRET-DATA\n }\n login {\n user boxen {\n uid\ + \ 2000;\n class super-user;\n authentication {\n \ + \ encrypted-password \"$6$iYt26fU9$gkt6bgxPs.VqHgCoLuSD6Kxv1JUHJLQzXJgzAEUIxobvxWwRErtpaOFvBOjIHr3KMI7sEo.V/7xLXzr0Ok20h0\"\ ; ## SECRET-DATA\n }\n }\n }\n services {\n \ \ ssh {\n protocol-version v2;\n }\n telnet;\n \ \ netconf {\n ssh;\n }\n web-management {\n\ @@ -180,20 +180,20 @@ localhost:25022:ParamikoTransport::0: \ tcp-rst;\n }\n security-zone untrust {\n \ \ screen untrust-screen;\n }\n }\n}\ninterfaces {\n fxp0 {\n\ \ unit 0 {\n family inet {\n address 10.0.0.15/24;\n\ - \ }\n }\n }\n}\n\n[edit]\nvrnetlab# " + \ }\n }\n }\n}\n\n[edit]\nboxen# " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n[edit]\nvrnetlab# " + - channel_output: "\n\n[edit]\nboxen# " expected_channel_input: exit configuration-mode expected_channel_input_redacted: false - channel_output: exit configuration-mode expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: " \nThe configuration has been changed but not committed\nExiting\ - \ configuration mode\n\nvrnetlab> " + \ configuration mode\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: start shell user root expected_channel_input_redacted: false - channel_output: start shell user root @@ -223,38 +223,38 @@ localhost:25022:ParamikoTransport::0: - channel_output: exit expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nexit\n\nvrnetlab> " + - channel_output: "\nexit\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: configure expected_channel_input_redacted: false - channel_output: configure expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: " \nEntering configuration mode\nThe configuration has been\ - \ changed but not committed\n\n[edit]\nvrnetlab# " + \ changed but not committed\n\n[edit]\nboxen# " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n[edit]\nvrnetlab# " + - channel_output: "\n\n[edit]\nboxen# " expected_channel_input: rollback 0 expected_channel_input_redacted: false - channel_output: rollback 0 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nload complete\n\n[edit]\nvrnetlab# " + - channel_output: " \nload complete\n\n[edit]\nboxen# " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n[edit]\nvrnetlab# " + - channel_output: "\n\n[edit]\nboxen# " expected_channel_input: exit configuration-mode expected_channel_input_redacted: false - channel_output: exit configuration-mode expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nExiting configuration mode\n\nvrnetlab> " + - channel_output: " \nExiting configuration mode\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: exit expected_channel_input_redacted: false - channel_output: '' diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[juniper_junos-ssh2].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[juniper_junos-ssh2].yaml index 3c1acfc..e2435eb 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[juniper_junos-ssh2].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[juniper_junos-ssh2].yaml @@ -2,7 +2,7 @@ localhost:25022:Ssh2Transport::0: connection_profile: host: localhost port: 25022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -13,34 +13,34 @@ localhost:25022:Ssh2Transport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n--- JUNOS 17.3R2.10 built 2018-02-08 02:19:07 UTC\nvrnetlab> " + - channel_output: "\n--- JUNOS 17.3R2.10 built 2018-02-08 02:19:07 UTC\nboxen> " expected_channel_input: set cli screen-length 0 expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> set cli screen-length 0" + - channel_output: "\n\nboxen> set cli screen-length 0" expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nScreen length set to 0\n\nvrnetlab> " + - channel_output: " \nScreen length set to 0\n\nboxen> " expected_channel_input: set cli screen-width 511 expected_channel_input_redacted: false - channel_output: set cli screen-width 511 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nScreen width set to 511\n\nvrnetlab> " + - channel_output: " \nScreen width set to 511\n\nboxen> " expected_channel_input: set cli complete-on-space off expected_channel_input_redacted: false - channel_output: set cli complete-on-space off expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nDisabling complete-on-space\n\nvrnetlab> " + - channel_output: " \nDisabling complete-on-space\n\nboxen> " expected_channel_input: 'show version | grep junos:' expected_channel_input_redacted: false - channel_output: 'show version | grep junos:' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nJunos: 17.3R2.10\n\nvrnetlab> " + - channel_output: " \nJunos: 17.3R2.10\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: start shell user root expected_channel_input_redacted: false - channel_output: start shell user root @@ -112,43 +112,43 @@ localhost:25022:Ssh2Transport::0: - channel_output: exit expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nexit\n\nvrnetlab> " + - channel_output: "\nexit\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: configure expected_channel_input_redacted: false - channel_output: configure expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nEntering configuration mode\n\n[edit]\nvrnetlab# " + - channel_output: " \nEntering configuration mode\n\n[edit]\nboxen# " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n[edit]\nvrnetlab# " + - channel_output: "\n\n[edit]\nboxen# " expected_channel_input: load merge /config/__SCRAPLI_CFG_SESSION_NAME__ expected_channel_input_redacted: false - channel_output: load merge /config/__SCRAPLI_CFG_SESSION_NAME__ expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \n|\bload complete\n\n[edit]\nvrnetlab# " + - channel_output: " \n|\bload complete\n\n[edit]\nboxen# " expected_channel_input: show | compare expected_channel_input_redacted: false - channel_output: show | compare expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: " \n[edit interfaces fxp0 unit 0]\n+ description RACECAR;\n\ - \n[edit]\nvrnetlab# " + \n[edit]\nboxen# " expected_channel_input: run show configuration expected_channel_input_redacted: false - channel_output: run show configuration expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \n## Last commit: 2021-04-27 19:35:05 UTC by vrnetlab\nversion\ + - channel_output: " \n## Last commit: 2021-05-29 12:46:18 UTC by boxen\nversion\ \ 17.3R2.10;\nsystem {\n root-authentication {\n encrypted-password\ - \ \"$6$dWt4Lg4V$wiqols.Ou//eIg.3kpdu98L9hSzA7VSytcnV4NWI3S2BKM4rfruJf5JKLBdihyCyEgUVHb1Rw3xHIVxQR/O0F.\"\ - ; ## SECRET-DATA\n }\n login {\n user vrnetlab {\n \ - \ uid 2000;\n class super-user;\n authentication {\n\ - \ encrypted-password \"$6$1tKhsTEi$VjaGckqjhgSqaZf5rrWqlhDkI1xAsaTWxFRtVQQnpE4qaeIWFuQUZ3GulwPfBYq2RLSTTl/ZnyyZJrcBl.7lP0\"\ + \ \"$6$RhR81Jm4$DEXKIbZNGjv.agJvM.FlIZWtFqX/966PZk0r4/Ps3LlS.OQZn9fHoVGuYJ7Q.hj2OQLyPJO6Mq7aQ3xLQiNrx/\"\ + ; ## SECRET-DATA\n }\n login {\n user boxen {\n uid\ + \ 2000;\n class super-user;\n authentication {\n \ + \ encrypted-password \"$6$iYt26fU9$gkt6bgxPs.VqHgCoLuSD6Kxv1JUHJLQzXJgzAEUIxobvxWwRErtpaOFvBOjIHr3KMI7sEo.V/7xLXzr0Ok20h0\"\ ; ## SECRET-DATA\n }\n }\n }\n services {\n \ \ ssh {\n protocol-version v2;\n }\n telnet;\n \ \ netconf {\n ssh;\n }\n web-management {\n\ @@ -180,20 +180,20 @@ localhost:25022:Ssh2Transport::0: \ tcp-rst;\n }\n security-zone untrust {\n \ \ screen untrust-screen;\n }\n }\n}\ninterfaces {\n fxp0 {\n\ \ unit 0 {\n family inet {\n address 10.0.0.15/24;\n\ - \ }\n }\n }\n}\n\n[edit]\nvrnetlab# " + \ }\n }\n }\n}\n\n[edit]\nboxen# " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n[edit]\nvrnetlab# " + - channel_output: "\n\n[edit]\nboxen# " expected_channel_input: exit configuration-mode expected_channel_input_redacted: false - channel_output: exit configuration-mode expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: " \nThe configuration has been changed but not committed\nExiting\ - \ configuration mode\n\nvrnetlab> " + \ configuration mode\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: start shell user root expected_channel_input_redacted: false - channel_output: start shell user root @@ -223,38 +223,38 @@ localhost:25022:Ssh2Transport::0: - channel_output: exit expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nexit\n\nvrnetlab> " + - channel_output: "\nexit\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: configure expected_channel_input_redacted: false - channel_output: configure expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: " \nEntering configuration mode\nThe configuration has been\ - \ changed but not committed\n\n[edit]\nvrnetlab# " + \ changed but not committed\n\n[edit]\nboxen# " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n[edit]\nvrnetlab# " + - channel_output: "\n\n[edit]\nboxen# " expected_channel_input: rollback 0 expected_channel_input_redacted: false - channel_output: rollback 0 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nload complete\n\n[edit]\nvrnetlab# " + - channel_output: " \nload complete\n\n[edit]\nboxen# " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n[edit]\nvrnetlab# " + - channel_output: "\n\n[edit]\nboxen# " expected_channel_input: exit configuration-mode expected_channel_input_redacted: false - channel_output: exit configuration-mode expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nExiting configuration mode\n\nvrnetlab> " + - channel_output: " \nExiting configuration mode\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: exit expected_channel_input_redacted: false - channel_output: '' diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[juniper_junos-system].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[juniper_junos-system].yaml index 7e283a9..131b3eb 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[juniper_junos-system].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[juniper_junos-system].yaml @@ -2,7 +2,7 @@ localhost:25022:SystemTransport::0: connection_profile: host: localhost port: 25022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -17,37 +17,37 @@ localhost:25022:SystemTransport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n--- JUNOS 17.3R2.10 built 2018-02-08 02:19:07 UTC\nvrnetlab> " + - channel_output: "\n--- JUNOS 17.3R2.10 built 2018-02-08 02:19:07 UTC\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: set cli screen-length 0 expected_channel_input_redacted: false - channel_output: set cli screen-length 0 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nScreen length set to 0\n\nvrnetlab> " + - channel_output: " \nScreen length set to 0\n\nboxen> " expected_channel_input: set cli screen-width 511 expected_channel_input_redacted: false - channel_output: set cli screen-width 511 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nScreen width set to 511\n\nvrnetlab> " + - channel_output: " \nScreen width set to 511\n\nboxen> " expected_channel_input: set cli complete-on-space off expected_channel_input_redacted: false - channel_output: set cli complete-on-space off expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nDisabling complete-on-space\n\nvrnetlab> " + - channel_output: " \nDisabling complete-on-space\n\nboxen> " expected_channel_input: 'show version | grep junos:' expected_channel_input_redacted: false - channel_output: 'show version | grep junos:' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nJunos: 17.3R2.10\n\nvrnetlab> " + - channel_output: " \nJunos: 17.3R2.10\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: start shell user root expected_channel_input_redacted: false - channel_output: start shell user root @@ -119,43 +119,43 @@ localhost:25022:SystemTransport::0: - channel_output: exit expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nexit\n\nvrnetlab> " + - channel_output: "\nexit\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: configure expected_channel_input_redacted: false - channel_output: configure expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nEntering configuration mode\n\n[edit]\nvrnetlab# " + - channel_output: " \nEntering configuration mode\n\n[edit]\nboxen# " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n[edit]\nvrnetlab# " + - channel_output: "\n\n[edit]\nboxen# " expected_channel_input: load merge /config/__SCRAPLI_CFG_SESSION_NAME__ expected_channel_input_redacted: false - channel_output: load merge /config/__SCRAPLI_CFG_SESSION_NAME__ expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \n|\bload complete\n\n[edit]\nvrnetlab# " + - channel_output: " \n|\bload complete\n\n[edit]\nboxen# " expected_channel_input: show | compare expected_channel_input_redacted: false - channel_output: show | compare expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: " \n[edit interfaces fxp0 unit 0]\n+ description RACECAR;\n\ - \n[edit]\nvrnetlab# " + \n[edit]\nboxen# " expected_channel_input: run show configuration expected_channel_input_redacted: false - channel_output: run show configuration expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \n## Last commit: 2021-04-27 19:35:05 UTC by vrnetlab\nversion\ + - channel_output: " \n## Last commit: 2021-05-29 12:46:18 UTC by boxen\nversion\ \ 17.3R2.10;\nsystem {\n root-authentication {\n encrypted-password\ - \ \"$6$dWt4Lg4V$wiqols.Ou//eIg.3kpdu98L9hSzA7VSytcnV4NWI3S2BKM4rfruJf5JKLBdihyCyEgUVHb1Rw3xHIVxQR/O0F.\"\ - ; ## SECRET-DATA\n }\n login {\n user vrnetlab {\n \ - \ uid 2000;\n class super-user;\n authentication {\n\ - \ encrypted-password \"$6$1tKhsTEi$VjaGckqjhgSqaZf5rrWqlhDkI1xAsaTWxFRtVQQnpE4qaeIWFuQUZ3GulwPfBYq2RLSTTl/ZnyyZJrcBl.7lP0\"\ + \ \"$6$RhR81Jm4$DEXKIbZNGjv.agJvM.FlIZWtFqX/966PZk0r4/Ps3LlS.OQZn9fHoVGuYJ7Q.hj2OQLyPJO6Mq7aQ3xLQiNrx/\"\ + ; ## SECRET-DATA\n }\n login {\n user boxen {\n uid\ + \ 2000;\n class super-user;\n authentication {\n \ + \ encrypted-password \"$6$iYt26fU9$gkt6bgxPs.VqHgCoLuSD6Kxv1JUHJLQzXJgzAEUIxobvxWwRErtpaOFvBOjIHr3KMI7sEo.V/7xLXzr0Ok20h0\"\ ; ## SECRET-DATA\n }\n }\n }\n services {\n \ \ ssh {\n protocol-version v2;\n }\n telnet;\n \ \ netconf {\n ssh;\n }\n web-management {\n\ @@ -187,20 +187,20 @@ localhost:25022:SystemTransport::0: \ tcp-rst;\n }\n security-zone untrust {\n \ \ screen untrust-screen;\n }\n }\n}\ninterfaces {\n fxp0 {\n\ \ unit 0 {\n family inet {\n address 10.0.0.15/24;\n\ - \ }\n }\n }\n}\n\n[edit]\nvrnetlab# " + \ }\n }\n }\n}\n\n[edit]\nboxen# " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n[edit]\nvrnetlab# " + - channel_output: "\n\n[edit]\nboxen# " expected_channel_input: exit configuration-mode expected_channel_input_redacted: false - channel_output: exit configuration-mode expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: " \nThe configuration has been changed but not committed\nExiting\ - \ configuration mode\n\nvrnetlab> " + \ configuration mode\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: start shell user root expected_channel_input_redacted: false - channel_output: start shell user root @@ -230,38 +230,38 @@ localhost:25022:SystemTransport::0: - channel_output: exit expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nexit\n\nvrnetlab> " + - channel_output: "\nexit\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: configure expected_channel_input_redacted: false - channel_output: configure expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: " \nEntering configuration mode\nThe configuration has been\ - \ changed but not committed\n\n[edit]\nvrnetlab# " + \ changed but not committed\n\n[edit]\nboxen# " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n[edit]\nvrnetlab# " + - channel_output: "\n\n[edit]\nboxen# " expected_channel_input: rollback 0 expected_channel_input_redacted: false - channel_output: rollback 0 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nload complete\n\n[edit]\nvrnetlab# " + - channel_output: " \nload complete\n\n[edit]\nboxen# " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n[edit]\nvrnetlab# " + - channel_output: "\n\n[edit]\nboxen# " expected_channel_input: exit configuration-mode expected_channel_input_redacted: false - channel_output: exit configuration-mode expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nExiting configuration mode\n\nvrnetlab> " + - channel_output: " \nExiting configuration mode\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: exit expected_channel_input_redacted: false - channel_output: '' diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[juniper_junos-telnet].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[juniper_junos-telnet].yaml index e678f9e..854fbd8 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[juniper_junos-telnet].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_abort[juniper_junos-telnet].yaml @@ -2,7 +2,7 @@ localhost:25023:TelnetTransport::0: connection_profile: host: localhost port: 25023 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -11,48 +11,48 @@ localhost:25023:TelnetTransport::0: auth_secondary: true interactions: - channel_output: 'login: ' - expected_channel_input: vrnetlab + expected_channel_input: boxen expected_channel_input_redacted: false - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: 'Password:' + - channel_output: "boxen\nPassword:" expected_channel_input: REDACTED expected_channel_input_redacted: true - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n--- JUNOS 17.3R2.10 built 2018-02-08 02:19:07 UTC\nvrnetlab> " + - channel_output: "\n\n--- JUNOS 17.3R2.10 built 2018-02-08 02:19:07 UTC\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: set cli screen-length 0 expected_channel_input_redacted: false - channel_output: set cli screen-length 0 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nScreen length set to 0\n\nvrnetlab> " + - channel_output: " \nScreen length set to 0\n\nboxen> " expected_channel_input: set cli screen-width 511 expected_channel_input_redacted: false - channel_output: set cli screen-width 511 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nScreen width set to 511\n\nvrnetlab> " + - channel_output: " \nScreen width set to 511\n\nboxen> " expected_channel_input: set cli complete-on-space off expected_channel_input_redacted: false - channel_output: set cli complete-on-space off expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nDisabling complete-on-space\n\nvrnetlab> " + - channel_output: " \nDisabling complete-on-space\n\nboxen> " expected_channel_input: 'show version | grep junos:' expected_channel_input_redacted: false - channel_output: 'show version | grep junos:' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nJunos: 17.3R2.10\n\nvrnetlab> " + - channel_output: " \nJunos: 17.3R2.10\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: start shell user root expected_channel_input_redacted: false - channel_output: start shell user root @@ -124,43 +124,43 @@ localhost:25023:TelnetTransport::0: - channel_output: exit expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nexit\n\nvrnetlab> " + - channel_output: "\nexit\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: configure expected_channel_input_redacted: false - channel_output: configure expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nEntering configuration mode\n\n[edit]\nvrnetlab# " + - channel_output: " \nEntering configuration mode\n\n[edit]\nboxen# " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n[edit]\nvrnetlab# " + - channel_output: "\n\n[edit]\nboxen# " expected_channel_input: load merge /config/__SCRAPLI_CFG_SESSION_NAME__ expected_channel_input_redacted: false - channel_output: load merge /config/__SCRAPLI_CFG_SESSION_NAME__ expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \n|\bload complete\n\n[edit]\nvrnetlab# " + - channel_output: " \n|\bload complete\n\n[edit]\nboxen# " expected_channel_input: show | compare expected_channel_input_redacted: false - channel_output: show | compare expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: " \n[edit interfaces fxp0 unit 0]\n+ description RACECAR;\n\ - \n[edit]\nvrnetlab# " + \n[edit]\nboxen# " expected_channel_input: run show configuration expected_channel_input_redacted: false - channel_output: run show configuration expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \n## Last commit: 2021-04-27 19:35:05 UTC by vrnetlab\nversion\ + - channel_output: " \n## Last commit: 2021-05-29 12:46:18 UTC by boxen\nversion\ \ 17.3R2.10;\nsystem {\n root-authentication {\n encrypted-password\ - \ \"$6$dWt4Lg4V$wiqols.Ou//eIg.3kpdu98L9hSzA7VSytcnV4NWI3S2BKM4rfruJf5JKLBdihyCyEgUVHb1Rw3xHIVxQR/O0F.\"\ - ; ## SECRET-DATA\n }\n login {\n user vrnetlab {\n \ - \ uid 2000;\n class super-user;\n authentication {\n\ - \ encrypted-password \"$6$1tKhsTEi$VjaGckqjhgSqaZf5rrWqlhDkI1xAsaTWxFRtVQQnpE4qaeIWFuQUZ3GulwPfBYq2RLSTTl/ZnyyZJrcBl.7lP0\"\ + \ \"$6$RhR81Jm4$DEXKIbZNGjv.agJvM.FlIZWtFqX/966PZk0r4/Ps3LlS.OQZn9fHoVGuYJ7Q.hj2OQLyPJO6Mq7aQ3xLQiNrx/\"\ + ; ## SECRET-DATA\n }\n login {\n user boxen {\n uid\ + \ 2000;\n class super-user;\n authentication {\n \ + \ encrypted-password \"$6$iYt26fU9$gkt6bgxPs.VqHgCoLuSD6Kxv1JUHJLQzXJgzAEUIxobvxWwRErtpaOFvBOjIHr3KMI7sEo.V/7xLXzr0Ok20h0\"\ ; ## SECRET-DATA\n }\n }\n }\n services {\n \ \ ssh {\n protocol-version v2;\n }\n telnet;\n \ \ netconf {\n ssh;\n }\n web-management {\n\ @@ -192,20 +192,20 @@ localhost:25023:TelnetTransport::0: \ tcp-rst;\n }\n security-zone untrust {\n \ \ screen untrust-screen;\n }\n }\n}\ninterfaces {\n fxp0 {\n\ \ unit 0 {\n family inet {\n address 10.0.0.15/24;\n\ - \ }\n }\n }\n}\n\n[edit]\nvrnetlab# " + \ }\n }\n }\n}\n\n[edit]\nboxen# " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n[edit]\nvrnetlab# " + - channel_output: "\n\n[edit]\nboxen# " expected_channel_input: exit configuration-mode expected_channel_input_redacted: false - channel_output: exit configuration-mode expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: " \nThe configuration has been changed but not committed\nExiting\ - \ configuration mode\n\nvrnetlab> " + \ configuration mode\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: start shell user root expected_channel_input_redacted: false - channel_output: start shell user root @@ -235,38 +235,38 @@ localhost:25023:TelnetTransport::0: - channel_output: exit expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nexit\n\nvrnetlab> " + - channel_output: "\nexit\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: configure expected_channel_input_redacted: false - channel_output: configure expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: " \nEntering configuration mode\nThe configuration has been\ - \ changed but not committed\n\n[edit]\nvrnetlab# " + \ changed but not committed\n\n[edit]\nboxen# " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n[edit]\nvrnetlab# " + - channel_output: "\n\n[edit]\nboxen# " expected_channel_input: rollback 0 expected_channel_input_redacted: false - channel_output: rollback 0 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nload complete\n\n[edit]\nvrnetlab# " + - channel_output: " \nload complete\n\n[edit]\nboxen# " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n[edit]\nvrnetlab# " + - channel_output: "\n\n[edit]\nboxen# " expected_channel_input: exit configuration-mode expected_channel_input_redacted: false - channel_output: exit configuration-mode expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nExiting configuration mode\n\nvrnetlab> " + - channel_output: " \nExiting configuration mode\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: exit expected_channel_input_redacted: false - channel_output: '' diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[arista_eos-asyncssh].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[arista_eos-asyncssh].yaml index f9d2e1b..209ce9f 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[arista_eos-asyncssh].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[arista_eos-asyncssh].yaml @@ -2,7 +2,7 @@ localhost:24022:AsyncsshTransport::0: connection_profile: host: localhost port: 24022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -13,8 +13,7 @@ localhost:24022:AsyncsshTransport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "Last login: Tue Apr 27 19:58:32 2021 from 10.0.0.2\n\n\n\e\ - [5nlocalhost>" + - channel_output: "Last login: Sat May 29 17:04:41 2021 from 10.0.0.2\n\n\nlocalhost>" expected_channel_input: enable expected_channel_input_redacted: false - channel_output: enable @@ -726,9 +725,9 @@ localhost:24022:AsyncsshTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nlocalhost(config-s-scrapl)#" - expected_channel_input: enable secret sha512 $6$P1M9SV2bLTmQJpwW$KVoaaIa7i34uTFp7JRRp.hqL55nr7jSJJiDA.9CHTCW7q4GDIwyceMMSp6TavgYiAokjobyBYCO70L7FxpZon1 + expected_channel_input: enable secret sha512 $6$TVJ6KgdC0qsGkKfb$LjGGPd6W3S1iJQVQ.Vvo3Bca4Yt1R3y4nOjWAaaTCsk1NuIoqB/gOMseoigt/HQVFDTvDAJ3IPmsF9sWfxi1V/ expected_channel_input_redacted: false - - channel_output: enable secret sha512 $6$P1M9SV2bLTmQJpwW$KVoaaIa7i34uTFp7JRRp.hqL55nr7jSJJiDA.9CHTCW7q4GDIwyceMMSp6TavgYiAokjobyBYCO70L7FxpZon1 + - channel_output: enable secret sha512 $6$TVJ6KgdC0qsGkKfb$LjGGPd6W3S1iJQVQ.Vvo3Bca4Yt1R3y4nOjWAaaTCsk1NuIoqB/gOMseoigt/HQVFDTvDAJ3IPmsF9sWfxi1V/ expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nlocalhost(config-s-scrapl)#" @@ -744,9 +743,9 @@ localhost:24022:AsyncsshTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nlocalhost(config-s-scrapl)#" - expected_channel_input: username vrnetlab role network-admin secret sha512 $6$8zrJ4ESW2fqG2QqH$9u768TvLXXDeUJmG2Std71EX1ip6q4MoJrMwDng1cmpuSYc9ECWytRjvXpMH7C3dzSdoEv0MxAUiAZeeTre3h. + expected_channel_input: username boxen role network-admin secret sha512 $6$1ex07TzYfKx23A9z$c02oeDxnr4J7HMgj0PcabYvACZfjdiu3zp4IAgjJQ51IBtkstpvOjm0FYbxSSBhsl.mytIr9Y4PaERp4MDXJM/ expected_channel_input_redacted: false - - channel_output: username vrnetlab role network-admin secret sha512 $6$8zrJ4ESW2fqG2QqH$9u768TvLXXDeUJmG2Std71EX1ip6q4MoJrMwDng1cmpuSYc9ECWytRjvXpMH7C3dzSdoEv0MxAUiAZeeTre3h. + - channel_output: username boxen role network-admin secret sha512 $6$1ex07TzYfKx23A9z$c02oeDxnr4J7HMgj0PcabYvACZfjdiu3zp4IAgjJQ51IBtkstpvOjm0FYbxSSBhsl.mytIr9Y4PaERp4MDXJM/ expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nlocalhost(config-s-scrapl)#" @@ -1823,8 +1822,8 @@ localhost:24022:AsyncsshTransport::0: \ level VMWAREVI errors\nlogging level VMWAREVS errors\nlogging level VRF\ \ errors\nlogging level VRRP errors\nlogging level VXLAN errors\nlogging level\ \ XMPP errors\nlogging level ZTP informational\n!\nspanning-tree mode mstp\n\ - !\nenable secret sha512 $6$P1M9SV2bLTmQJpwW$KVoaaIa7i34uTFp7JRRp.hqL55nr7jSJJiDA.9CHTCW7q4GDIwyceMMSp6TavgYiAokjobyBYCO70L7FxpZon1\n\ - no aaa root\n!\nusername vrnetlab role network-admin secret sha512 $6$8zrJ4ESW2fqG2QqH$9u768TvLXXDeUJmG2Std71EX1ip6q4MoJrMwDng1cmpuSYc9ECWytRjvXpMH7C3dzSdoEv0MxAUiAZeeTre3h.\n\ + !\nenable secret sha512 $6$TVJ6KgdC0qsGkKfb$LjGGPd6W3S1iJQVQ.Vvo3Bca4Yt1R3y4nOjWAaaTCsk1NuIoqB/gOMseoigt/HQVFDTvDAJ3IPmsF9sWfxi1V/\n\ + no aaa root\n!\nusername boxen role network-admin secret sha512 $6$1ex07TzYfKx23A9z$c02oeDxnr4J7HMgj0PcabYvACZfjdiu3zp4IAgjJQ51IBtkstpvOjm0FYbxSSBhsl.mytIr9Y4PaERp4MDXJM/\n\ !\ninterface Ethernet1\n speed forced 10000full\n no switchport\n ipv6\ \ enable\n ipv6 address auto-config\n ipv6 nd ra rx accept default-route\n\ !\ninterface Ethernet2\n speed forced 10000full\n no switchport\n ipv6\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[arista_eos-asynctelnet].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[arista_eos-asynctelnet].yaml index 05f978d..0eebde5 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[arista_eos-asynctelnet].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[arista_eos-asynctelnet].yaml @@ -2,7 +2,7 @@ localhost:24023:AsynctelnetTransport::0: connection_profile: host: localhost port: 24023 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -18,7 +18,7 @@ localhost:24023:AsynctelnetTransport::0: \ at the CLI. Alternatively, to disable Zero Touch\nProvisioning permanently,\ \ type 'zerotouch disable' at the CLI.\nNote: The device will reload when\ \ these commands are issued.\nUsername: " - expected_channel_input: vrnetlab + expected_channel_input: boxen expected_channel_input_redacted: false - channel_output: '' expected_channel_input: "\n" @@ -29,7 +29,7 @@ localhost:24023:AsynctelnetTransport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nLast login: Tue Apr 27 19:58:41 from 10.0.0.2\nlocalhost>" + - channel_output: "\nLast login: Sat May 29 17:17:26 from 10.0.0.2\nlocalhost>" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nlocalhost>" @@ -744,9 +744,9 @@ localhost:24023:AsynctelnetTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nlocalhost(config-s-scrapl)#" - expected_channel_input: enable secret sha512 $6$P1M9SV2bLTmQJpwW$KVoaaIa7i34uTFp7JRRp.hqL55nr7jSJJiDA.9CHTCW7q4GDIwyceMMSp6TavgYiAokjobyBYCO70L7FxpZon1 + expected_channel_input: enable secret sha512 $6$TVJ6KgdC0qsGkKfb$LjGGPd6W3S1iJQVQ.Vvo3Bca4Yt1R3y4nOjWAaaTCsk1NuIoqB/gOMseoigt/HQVFDTvDAJ3IPmsF9sWfxi1V/ expected_channel_input_redacted: false - - channel_output: enable secret sha512 $6$P1M9SV2bLTmQJpwW$KVoaaIa7i34uTFp7JRRp.hqL55nr7jSJJiDA.9CHTCW7q4GDIwyceMMSp6TavgYiAokjobyBYCO70L7FxpZon1 + - channel_output: enable secret sha512 $6$TVJ6KgdC0qsGkKfb$LjGGPd6W3S1iJQVQ.Vvo3Bca4Yt1R3y4nOjWAaaTCsk1NuIoqB/gOMseoigt/HQVFDTvDAJ3IPmsF9sWfxi1V/ expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nlocalhost(config-s-scrapl)#" @@ -762,9 +762,9 @@ localhost:24023:AsynctelnetTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nlocalhost(config-s-scrapl)#" - expected_channel_input: username vrnetlab role network-admin secret sha512 $6$8zrJ4ESW2fqG2QqH$9u768TvLXXDeUJmG2Std71EX1ip6q4MoJrMwDng1cmpuSYc9ECWytRjvXpMH7C3dzSdoEv0MxAUiAZeeTre3h. + expected_channel_input: username boxen role network-admin secret sha512 $6$1ex07TzYfKx23A9z$c02oeDxnr4J7HMgj0PcabYvACZfjdiu3zp4IAgjJQ51IBtkstpvOjm0FYbxSSBhsl.mytIr9Y4PaERp4MDXJM/ expected_channel_input_redacted: false - - channel_output: username vrnetlab role network-admin secret sha512 $6$8zrJ4ESW2fqG2QqH$9u768TvLXXDeUJmG2Std71EX1ip6q4MoJrMwDng1cmpuSYc9ECWytRjvXpMH7C3dzSdoEv0MxAUiAZeeTre3h. + - channel_output: username boxen role network-admin secret sha512 $6$1ex07TzYfKx23A9z$c02oeDxnr4J7HMgj0PcabYvACZfjdiu3zp4IAgjJQ51IBtkstpvOjm0FYbxSSBhsl.mytIr9Y4PaERp4MDXJM/ expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nlocalhost(config-s-scrapl)#" @@ -1841,8 +1841,8 @@ localhost:24023:AsynctelnetTransport::0: \ level VMWAREVI errors\nlogging level VMWAREVS errors\nlogging level VRF\ \ errors\nlogging level VRRP errors\nlogging level VXLAN errors\nlogging level\ \ XMPP errors\nlogging level ZTP informational\n!\nspanning-tree mode mstp\n\ - !\nenable secret sha512 $6$P1M9SV2bLTmQJpwW$KVoaaIa7i34uTFp7JRRp.hqL55nr7jSJJiDA.9CHTCW7q4GDIwyceMMSp6TavgYiAokjobyBYCO70L7FxpZon1\n\ - no aaa root\n!\nusername vrnetlab role network-admin secret sha512 $6$8zrJ4ESW2fqG2QqH$9u768TvLXXDeUJmG2Std71EX1ip6q4MoJrMwDng1cmpuSYc9ECWytRjvXpMH7C3dzSdoEv0MxAUiAZeeTre3h.\n\ + !\nenable secret sha512 $6$TVJ6KgdC0qsGkKfb$LjGGPd6W3S1iJQVQ.Vvo3Bca4Yt1R3y4nOjWAaaTCsk1NuIoqB/gOMseoigt/HQVFDTvDAJ3IPmsF9sWfxi1V/\n\ + no aaa root\n!\nusername boxen role network-admin secret sha512 $6$1ex07TzYfKx23A9z$c02oeDxnr4J7HMgj0PcabYvACZfjdiu3zp4IAgjJQ51IBtkstpvOjm0FYbxSSBhsl.mytIr9Y4PaERp4MDXJM/\n\ !\ninterface Ethernet1\n speed forced 10000full\n no switchport\n ipv6\ \ enable\n ipv6 address auto-config\n ipv6 nd ra rx accept default-route\n\ !\ninterface Ethernet2\n speed forced 10000full\n no switchport\n ipv6\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[cisco_iosxe-asyncssh].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[cisco_iosxe-asyncssh].yaml index caf85ad..ef0b354 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[cisco_iosxe-asyncssh].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[cisco_iosxe-asyncssh].yaml @@ -2,7 +2,7 @@ localhost:21022:AsyncsshTransport::0: connection_profile: host: localhost port: 21022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -42,7 +42,7 @@ localhost:21022:AsyncsshTransport::0: - channel_output: 'dir flash: | i bytes' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n6286540800 bytes total (5484523520 bytes free)\ncsr1000v#" + - channel_output: "\n6286540800 bytes total (5488451584 bytes free)\ncsr1000v#" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\ncsr1000v#" @@ -184,9 +184,9 @@ localhost:21022:AsyncsshTransport::0: expected_channel_input: "\r" expected_channel_input_redacted: false - channel_output: "\n+>" - expected_channel_input: enable secret 9 $9$h6Ayg86tb/EImk$2T6Ns.ke08cAlZ2TbMf3YRCYr7ngDGzgAxZB0YMe7lQ + expected_channel_input: enable secret 9 $9$xvWnx8Fe35f8xE$E9ijp7GM/V48P5y1Uz3IEPtotXgwkJKYJmN0q3q2E92 expected_channel_input_redacted: false - - channel_output: enable secret 9 $9$h6Ayg86tb/EImk$2T6Ns.ke08cAlZ2TbMf3YRCYr7ngDGzgAxZB0YMe7lQ + - channel_output: enable secret 9 $9$xvWnx8Fe35f8xE$E9ijp7GM/V48P5y1Uz3IEPtotXgwkJKYJmN0q3q2E92 expected_channel_input: "\r" expected_channel_input_redacted: false - channel_output: "\n+>" @@ -831,9 +831,9 @@ localhost:21022:AsyncsshTransport::0: expected_channel_input: "\r" expected_channel_input_redacted: false - channel_output: "\n+>" - expected_channel_input: username vrnetlab privilege 15 password 0 VR-netlab9 + expected_channel_input: username boxen privilege 15 password 0 b0x3N-b0x3N expected_channel_input_redacted: false - - channel_output: username vrnetlab privilege 15 password 0 VR-netlab9 + - channel_output: username boxen privilege 15 password 0 b0x3N-b0x3N expected_channel_input: "\r" expected_channel_input_redacted: false - channel_output: "\n+>" @@ -1449,9 +1449,9 @@ localhost:21022:AsyncsshTransport::0: expected_channel_input: "\r" expected_channel_input_redacted: false - channel_output: "\n+>" - expected_channel_input: ' username vrnetlab' + expected_channel_input: ' username boxen' expected_channel_input_redacted: false - - channel_output: ' username vrnetlab' + - channel_output: ' username boxen' expected_channel_input: "\r" expected_channel_input_redacted: false - channel_output: "\n+>" @@ -1678,19 +1678,20 @@ localhost:21022:AsyncsshTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\n!Contextual Config Diffs:\n+Building configuration...\n+Current\ - \ configuration : 4844 bytes\n\ncsr1000v#" + \ configuration : 4844 bytes\n+license udi pid CSR1000V sn 9MVVU09YZFH\n-license\ + \ udi pid CSR1000V sn 9IB2R42M6QG\n\ncsr1000v#" expected_channel_input: show running-config expected_channel_input_redacted: false - channel_output: show running-config expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nBuilding configuration...\n\nCurrent configuration : 4826\ - \ bytes\n!\n! Last configuration change at 19:49:38 UTC Tue Apr 27 2021 by\ - \ vrnetlab\n!\nversion 16.12\nservice timestamps debug datetime msec\nservice\ + - channel_output: "\nBuilding configuration...\n\nCurrent configuration : 4818\ + \ bytes\n!\n! Last configuration change at 13:22:58 UTC Sat May 29 2021 by\ + \ boxen\n!\nversion 16.12\nservice timestamps debug datetime msec\nservice\ \ timestamps log datetime msec\nservice call-home\nplatform qfp utilization\ \ monitor load 80\nplatform punt-keepalive disable-kernel-core\nplatform console\ \ serial\n!\nhostname csr1000v\n!\nboot-start-marker\nboot-end-marker\n!\n\ - !\nenable secret 9 $9$h6Ayg86tb/EImk$2T6Ns.ke08cAlZ2TbMf3YRCYr7ngDGzgAxZB0YMe7lQ\n\ + !\nenable secret 9 $9$xvWnx8Fe35f8xE$E9ijp7GM/V48P5y1Uz3IEPtotXgwkJKYJmN0q3q2E92\n\ !\nno aaa new-model\ncall-home\n ! If contact email address in call-home is\ \ configured as sch-smart-licensing@cisco.com\n ! the email address configured\ \ in Cisco Smart License Portal will be used as contact email address to send\ @@ -1727,11 +1728,11 @@ localhost:21022:AsyncsshTransport::0: \ F3A58BE1 1A48A229 C37C1E69 39F08678 \n 80DDCD16 D6BACECA EEBC7CF9 8428787B\ \ 35202CDC 60E4616A B623CDBD 230E3AFB \n 418616A9 4093E049 4D10AB75 27E86F73\ \ 932E35B5 8862FDAE 0275156F 719BB2F0 \n D697DF7F 28\n \tquit\n!\nlicense\ - \ udi pid CSR1000V sn 9MVVU09YZFH\ndiagnostic bootup level minimal\narchive\n\ + \ udi pid CSR1000V sn 9IB2R42M6QG\ndiagnostic bootup level minimal\narchive\n\ \ log config\n logging enable\n path bootflash:\nmemory free low-watermark\ - \ processor 72329\n!\n!\nspanning-tree extend system-id\n!\nusername vrnetlab\ - \ privilege 15 password 0 VR-netlab9\n!\nredundancy\n!\n!\n!\n!\n!\n!\n! \n\ - !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n! \n! \n!\n!\ninterface GigabitEthernet1\n\ + \ processor 72329\n!\n!\nspanning-tree extend system-id\n!\nusername boxen\ + \ privilege 15 password 0 b0x3N-b0x3N\n!\nredundancy\n!\n!\n!\n!\n!\n!\n!\ + \ \n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n! \n! \n!\n!\ninterface GigabitEthernet1\n\ \ ip address 10.0.0.15 255.255.255.0\n negotiation auto\n no mop enabled\n\ \ no mop sysid\n!\ninterface GigabitEthernet2\n no ip address\n shutdown\n\ \ negotiation auto\n no mop enabled\n no mop sysid\n!\ninterface GigabitEthernet3\n\ @@ -1748,11 +1749,11 @@ localhost:21022:AsyncsshTransport::0: \ GigabitEthernet10\n no ip address\n shutdown\n negotiation auto\n no mop\ \ enabled\n no mop sysid\n!\n!\nvirtual-service csr_mgmt\n!\nip forward-protocol\ \ nd\nno ip http server\nno ip http secure-server\n!\nip ssh pubkey-chain\n\ - \ username vrnetlab\n key-hash ssh-rsa 5CC74A68B18B026A1709FB09D1F44E2F\ - \ \nip scp server enable\n!\n!\n!\n!\n!\n!\n!\ncontrol-plane\n!\n!\n!\n!\n\ - !\n!\nline con 0\n stopbits 1\nline vty 0 4\n login local\n transport input\ - \ all\nline vty 5 15\n login local\n transport input all\n!\nnetconf ssh\n\ - !\n!\n!\n!\n!\nnetconf-yang\nend\n\ncsr1000v#" + \ username boxen\n key-hash ssh-rsa 5CC74A68B18B026A1709FB09D1F44E2F \n\ + ip scp server enable\n!\n!\n!\n!\n!\n!\n!\ncontrol-plane\n!\n!\n!\n!\n!\n\ + !\nline con 0\n stopbits 1\nline vty 0 4\n login local\n transport input all\n\ + line vty 5 15\n login local\n transport input all\n!\nnetconf ssh\n!\n!\n\ + !\n!\n!\nnetconf-yang\nend\n\ncsr1000v#" expected_channel_input: show run | i file prompt expected_channel_input_redacted: false - channel_output: show run | i file prompt @@ -1766,11 +1767,12 @@ localhost:21022:AsyncsshTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nThe rollback configlet from the last pass is listed below:\n\ - ********\n!List of Rollback Commands:\nBuilding configuration...\nCurrent\ - \ configuration : 4844 bytes\nend\n********\n\n\nRollback aborted after 5\ + ********\n!List of Rollback Commands:\nno license udi pid CSR1000V sn 9IB2R42M6QG\n\ + Building configuration...\nCurrent configuration : 4844 bytes\nlicense udi\ + \ pid CSR1000V sn 9MVVU09YZFH\nend\n********\n\n\nRollback aborted after 5\ \ passes\nThe following commands are failed to apply to the IOS image.\n********\n\ - Building configuration...\nCurrent configuration : 4844 bytes\n********\n\n\ - \ncsr1000v#" + Building configuration...\nCurrent configuration : 4844 bytes\nlicense udi\ + \ pid CSR1000V sn 9MVVU09YZFH\n********\n\n\ncsr1000v#" expected_channel_input: show run | i file prompt expected_channel_input_redacted: false - channel_output: show run | i file prompt diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[cisco_iosxe-asynctelnet].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[cisco_iosxe-asynctelnet].yaml index 7d7b1be..052543e 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[cisco_iosxe-asynctelnet].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[cisco_iosxe-asynctelnet].yaml @@ -2,7 +2,7 @@ localhost:21023:AsynctelnetTransport::0: connection_profile: host: localhost port: 21023 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -10,13 +10,13 @@ localhost:21023:AsynctelnetTransport::0: transport: asynctelnet auth_secondary: false interactions: - - channel_output: "\n\nUser Access Verification\n\nUsername: " - expected_channel_input: vrnetlab + - channel_output: "\nUser Access Verification\n\nUsername: " + expected_channel_input: boxen expected_channel_input_redacted: false - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "vrnetlab\nPassword: " + - channel_output: "boxen\nPassword: " expected_channel_input: REDACTED expected_channel_input_redacted: true - channel_output: '' @@ -54,7 +54,7 @@ localhost:21023:AsynctelnetTransport::0: - channel_output: 'dir flash: | i bytes' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n6286540800 bytes total (5484523520 bytes free)\ncsr1000v#" + - channel_output: "\n6286540800 bytes total (5488451584 bytes free)\ncsr1000v#" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\ncsr1000v#" @@ -196,9 +196,9 @@ localhost:21023:AsynctelnetTransport::0: expected_channel_input: "\r" expected_channel_input_redacted: false - channel_output: "\n+>" - expected_channel_input: enable secret 9 $9$h6Ayg86tb/EImk$2T6Ns.ke08cAlZ2TbMf3YRCYr7ngDGzgAxZB0YMe7lQ + expected_channel_input: enable secret 9 $9$xvWnx8Fe35f8xE$E9ijp7GM/V48P5y1Uz3IEPtotXgwkJKYJmN0q3q2E92 expected_channel_input_redacted: false - - channel_output: enable secret 9 $9$h6Ayg86tb/EImk$2T6Ns.ke08cAlZ2TbMf3YRCYr7ngDGzgAxZB0YMe7lQ + - channel_output: enable secret 9 $9$xvWnx8Fe35f8xE$E9ijp7GM/V48P5y1Uz3IEPtotXgwkJKYJmN0q3q2E92 expected_channel_input: "\r" expected_channel_input_redacted: false - channel_output: "\n+>" @@ -843,9 +843,9 @@ localhost:21023:AsynctelnetTransport::0: expected_channel_input: "\r" expected_channel_input_redacted: false - channel_output: "\n+>" - expected_channel_input: username vrnetlab privilege 15 password 0 VR-netlab9 + expected_channel_input: username boxen privilege 15 password 0 b0x3N-b0x3N expected_channel_input_redacted: false - - channel_output: username vrnetlab privilege 15 password 0 VR-netlab9 + - channel_output: username boxen privilege 15 password 0 b0x3N-b0x3N expected_channel_input: "\r" expected_channel_input_redacted: false - channel_output: "\n+>" @@ -1461,9 +1461,9 @@ localhost:21023:AsynctelnetTransport::0: expected_channel_input: "\r" expected_channel_input_redacted: false - channel_output: "\n+>" - expected_channel_input: ' username vrnetlab' + expected_channel_input: ' username boxen' expected_channel_input_redacted: false - - channel_output: ' username vrnetlab' + - channel_output: ' username boxen' expected_channel_input: "\r" expected_channel_input_redacted: false - channel_output: "\n+>" @@ -1690,19 +1690,20 @@ localhost:21023:AsynctelnetTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\n!Contextual Config Diffs:\n+Building configuration...\n+Current\ - \ configuration : 4844 bytes\n\ncsr1000v#" + \ configuration : 4844 bytes\n+license udi pid CSR1000V sn 9MVVU09YZFH\n-license\ + \ udi pid CSR1000V sn 9IB2R42M6QG\n\ncsr1000v#" expected_channel_input: show running-config expected_channel_input_redacted: false - channel_output: show running-config expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nBuilding configuration...\n\nCurrent configuration : 4826\ - \ bytes\n!\n! Last configuration change at 19:59:05 UTC Tue Apr 27 2021 by\ - \ vrnetlab\n!\nversion 16.12\nservice timestamps debug datetime msec\nservice\ + - channel_output: "\nBuilding configuration...\n\nCurrent configuration : 4818\ + \ bytes\n!\n! Last configuration change at 17:14:32 UTC Sat May 29 2021 by\ + \ boxen\n!\nversion 16.12\nservice timestamps debug datetime msec\nservice\ \ timestamps log datetime msec\nservice call-home\nplatform qfp utilization\ \ monitor load 80\nplatform punt-keepalive disable-kernel-core\nplatform console\ \ serial\n!\nhostname csr1000v\n!\nboot-start-marker\nboot-end-marker\n!\n\ - !\nenable secret 9 $9$h6Ayg86tb/EImk$2T6Ns.ke08cAlZ2TbMf3YRCYr7ngDGzgAxZB0YMe7lQ\n\ + !\nenable secret 9 $9$xvWnx8Fe35f8xE$E9ijp7GM/V48P5y1Uz3IEPtotXgwkJKYJmN0q3q2E92\n\ !\nno aaa new-model\ncall-home\n ! If contact email address in call-home is\ \ configured as sch-smart-licensing@cisco.com\n ! the email address configured\ \ in Cisco Smart License Portal will be used as contact email address to send\ @@ -1739,11 +1740,11 @@ localhost:21023:AsynctelnetTransport::0: \ F3A58BE1 1A48A229 C37C1E69 39F08678 \n 80DDCD16 D6BACECA EEBC7CF9 8428787B\ \ 35202CDC 60E4616A B623CDBD 230E3AFB \n 418616A9 4093E049 4D10AB75 27E86F73\ \ 932E35B5 8862FDAE 0275156F 719BB2F0 \n D697DF7F 28\n \tquit\n!\nlicense\ - \ udi pid CSR1000V sn 9MVVU09YZFH\ndiagnostic bootup level minimal\narchive\n\ + \ udi pid CSR1000V sn 9IB2R42M6QG\ndiagnostic bootup level minimal\narchive\n\ \ log config\n logging enable\n path bootflash:\nmemory free low-watermark\ - \ processor 72329\n!\n!\nspanning-tree extend system-id\n!\nusername vrnetlab\ - \ privilege 15 password 0 VR-netlab9\n!\nredundancy\n!\n!\n!\n!\n!\n!\n! \n\ - !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n! \n! \n!\n!\ninterface GigabitEthernet1\n\ + \ processor 72329\n!\n!\nspanning-tree extend system-id\n!\nusername boxen\ + \ privilege 15 password 0 b0x3N-b0x3N\n!\nredundancy\n!\n!\n!\n!\n!\n!\n!\ + \ \n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n! \n! \n!\n!\ninterface GigabitEthernet1\n\ \ ip address 10.0.0.15 255.255.255.0\n negotiation auto\n no mop enabled\n\ \ no mop sysid\n!\ninterface GigabitEthernet2\n no ip address\n shutdown\n\ \ negotiation auto\n no mop enabled\n no mop sysid\n!\ninterface GigabitEthernet3\n\ @@ -1760,11 +1761,11 @@ localhost:21023:AsynctelnetTransport::0: \ GigabitEthernet10\n no ip address\n shutdown\n negotiation auto\n no mop\ \ enabled\n no mop sysid\n!\n!\nvirtual-service csr_mgmt\n!\nip forward-protocol\ \ nd\nno ip http server\nno ip http secure-server\n!\nip ssh pubkey-chain\n\ - \ username vrnetlab\n key-hash ssh-rsa 5CC74A68B18B026A1709FB09D1F44E2F\ - \ \nip scp server enable\n!\n!\n!\n!\n!\n!\n!\ncontrol-plane\n!\n!\n!\n!\n\ - !\n!\nline con 0\n stopbits 1\nline vty 0 4\n login local\n transport input\ - \ all\nline vty 5 15\n login local\n transport input all\n!\nnetconf ssh\n\ - !\n!\n!\n!\n!\nnetconf-yang\nend\n\ncsr1000v#" + \ username boxen\n key-hash ssh-rsa 5CC74A68B18B026A1709FB09D1F44E2F \n\ + ip scp server enable\n!\n!\n!\n!\n!\n!\n!\ncontrol-plane\n!\n!\n!\n!\n!\n\ + !\nline con 0\n stopbits 1\nline vty 0 4\n login local\n transport input all\n\ + line vty 5 15\n login local\n transport input all\n!\nnetconf ssh\n!\n!\n\ + !\n!\n!\nnetconf-yang\nend\n\ncsr1000v#" expected_channel_input: show run | i file prompt expected_channel_input_redacted: false - channel_output: show run | i file prompt @@ -1778,11 +1779,12 @@ localhost:21023:AsynctelnetTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nThe rollback configlet from the last pass is listed below:\n\ - ********\n!List of Rollback Commands:\nBuilding configuration...\nCurrent\ - \ configuration : 4844 bytes\nend\n********\n\n\nRollback aborted after 5\ + ********\n!List of Rollback Commands:\nno license udi pid CSR1000V sn 9IB2R42M6QG\n\ + Building configuration...\nCurrent configuration : 4844 bytes\nlicense udi\ + \ pid CSR1000V sn 9MVVU09YZFH\nend\n********\n\n\nRollback aborted after 5\ \ passes\nThe following commands are failed to apply to the IOS image.\n********\n\ - Building configuration...\nCurrent configuration : 4844 bytes\n********\n\n\ - \ncsr1000v#" + Building configuration...\nCurrent configuration : 4844 bytes\nlicense udi\ + \ pid CSR1000V sn 9MVVU09YZFH\n********\n\n\ncsr1000v#" expected_channel_input: show run | i file prompt expected_channel_input_redacted: false - channel_output: show run | i file prompt diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[cisco_iosxr-asyncssh].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[cisco_iosxr-asyncssh].yaml index e2378b6..35f1982 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[cisco_iosxr-asyncssh].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[cisco_iosxr-asyncssh].yaml @@ -2,7 +2,7 @@ localhost:23022:AsyncsshTransport::0: connection_profile: host: localhost port: 23022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -13,25 +13,25 @@ localhost:23022:AsyncsshTransport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nRP/0/RP0/CPU0:ios#" + - channel_output: "\n\n\nRP/0/RP0/CPU0:ios#" expected_channel_input: terminal length 0 expected_channel_input_redacted: false - - channel_output: "\nRP/0/RP0/CPU0:ios#terminal length 0" + - channel_output: terminal length 0 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 20:01:36.644 UTC\nRP/0/RP0/CPU0:ios#" + - channel_output: "\nSat May 29 17:16:57.145 UTC\nRP/0/RP0/CPU0:ios#" expected_channel_input: terminal width 512 expected_channel_input_redacted: false - channel_output: terminal width 512 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 20:01:36.731 UTC\nRP/0/RP0/CPU0:ios#" + - channel_output: "\nSat May 29 17:16:57.269 UTC\nRP/0/RP0/CPU0:ios#" expected_channel_input: show version | i Version expected_channel_input_redacted: false - channel_output: show version | i Version expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 20:01:36.839 UTC\nCisco IOS XR Software, Version\ + - channel_output: "\nSat May 29 17:16:57.362 UTC\nCisco IOS XR Software, Version\ \ 6.5.3\n Version : 6.5.3\nRP/0/RP0/CPU0:ios#" expected_channel_input: "\n" expected_channel_input_redacted: false @@ -41,7 +41,7 @@ localhost:23022:AsyncsshTransport::0: - channel_output: configure terminal expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 20:01:36.958 UTC\nRP/0/RP0/CPU0:ios(config)#" + - channel_output: "\nSat May 29 17:16:57.480 UTC\nRP/0/RP0/CPU0:ios(config)#" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nRP/0/RP0/CPU0:ios(config)#" @@ -81,9 +81,9 @@ localhost:23022:AsyncsshTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nRP/0/RP0/CPU0:ios(config)#" - expected_channel_input: username vrnetlab + expected_channel_input: username boxen expected_channel_input_redacted: false - - channel_output: username vrnetlab + - channel_output: username boxen expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nRP/0/RP0/CPU0:ios(config-un)#" @@ -99,9 +99,9 @@ localhost:23022:AsyncsshTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nRP/0/RP0/CPU0:ios(config-un)#" - expected_channel_input: ' secret 5 $1$5aFx$Ul43RjEjA7C4LFsghgQCu0' + expected_channel_input: ' secret 5 $1$fW1M$wIX/Q6Qpcg06QmgxVETb9/' expected_channel_input_redacted: false - - channel_output: ' secret 5 $1$5aFx$Ul43RjEjA7C4LFsghgQCu0' + - channel_output: ' secret 5 $1$fW1M$wIX/Q6Qpcg06QmgxVETb9/' expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nRP/0/RP0/CPU0:ios(config-un)#" @@ -2534,7 +2534,7 @@ localhost:23022:AsyncsshTransport::0: - channel_output: show configuration changes diff expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 20:01:45.938 UTC\nBuilding configuration...\n\ + - channel_output: "\nSat May 29 17:17:06.716 UTC\nBuilding configuration...\n\ !! IOS XR Configuration version = 6.5.3\n+ interface MgmtEth0/RP0/CPU0/0\n\ + !\n+ interface GigabitEthernet0/0/0/0\n+ !\n+ interface GigabitEthernet0/0/0/1\n\ + !\n+ interface GigabitEthernet0/0/0/2\n+ !\n+ interface GigabitEthernet0/0/0/3\n\ @@ -2606,10 +2606,10 @@ localhost:23022:AsyncsshTransport::0: - channel_output: show running-config expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 20:01:46.545 UTC\nBuilding configuration...\n\ - !! IOS XR Configuration version = 6.5.3\n!! Last configuration change at Tue\ - \ Apr 27 00:13:12 2021 by vrnetlab\n!\ntelnet vrf default ipv4 server max-servers\ - \ 10\nusername vrnetlab\n group root-lr\n group cisco-support\n secret 5 $1$5aFx$Ul43RjEjA7C4LFsghgQCu0\n\ + - channel_output: "\nSat May 29 17:17:07.430 UTC\nBuilding configuration...\n\ + !! IOS XR Configuration version = 6.5.3\n!! Last configuration change at Sat\ + \ May 29 16:56:12 2021 by boxen\n!\ntelnet vrf default ipv4 server max-servers\ + \ 10\nusername boxen\n group root-lr\n group cisco-support\n secret 5 $1$fW1M$wIX/Q6Qpcg06QmgxVETb9/\n\ !\ncall-home\n service active\n contact smart-licensing\n profile CiscoTAC-1\n\ \ active\n destination transport-method http\n !\n!\ninterface MgmtEth0/RP0/CPU0/0\n\ \ ipv4 address 10.0.0.15 255.255.255.0\n!\ninterface GigabitEthernet0/0/0/0\n\ @@ -2703,7 +2703,7 @@ localhost:23022:AsyncsshTransport::0: - channel_output: commit replace expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 20:01:47.188 UTC\n\nThis commit will replace or\ + - channel_output: "\nSat May 29 17:17:08.128 UTC\n\nThis commit will replace or\ \ remove the entire running configuration. This\noperation can be service\ \ affecting.\nDo you wish to proceed? [no]: " expected_channel_input: yes diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[cisco_iosxr-asynctelnet].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[cisco_iosxr-asynctelnet].yaml index 320a678..000f403 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[cisco_iosxr-asynctelnet].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[cisco_iosxr-asynctelnet].yaml @@ -2,7 +2,7 @@ localhost:23023:AsynctelnetTransport::0: connection_profile: host: localhost port: 23023 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -11,12 +11,12 @@ localhost:23023:AsynctelnetTransport::0: auth_secondary: false interactions: - channel_output: "\nUser Access Verification\n\nUsername: " - expected_channel_input: vrnetlab + expected_channel_input: boxen expected_channel_input_redacted: false - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "vrnetlab\nPassword: " + - channel_output: "boxen\nPassword: " expected_channel_input: REDACTED expected_channel_input_redacted: true - channel_output: '' @@ -31,19 +31,19 @@ localhost:23023:AsynctelnetTransport::0: - channel_output: terminal length 0 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 20:01:56.353 UTC\nRP/0/RP0/CPU0:ios#" + - channel_output: "\nSat May 29 17:17:16.460 UTC\nRP/0/RP0/CPU0:ios#" expected_channel_input: terminal width 512 expected_channel_input_redacted: false - channel_output: terminal width 512 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 20:01:56.439 UTC\nRP/0/RP0/CPU0:ios#" + - channel_output: "\nSat May 29 17:17:16.547 UTC\nRP/0/RP0/CPU0:ios#" expected_channel_input: show version | i Version expected_channel_input_redacted: false - channel_output: show version | i Version expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 20:01:56.556 UTC\nCisco IOS XR Software, Version\ + - channel_output: "\nSat May 29 17:17:16.641 UTC\nCisco IOS XR Software, Version\ \ 6.5.3\n Version : 6.5.3\nRP/0/RP0/CPU0:ios#" expected_channel_input: "\n" expected_channel_input_redacted: false @@ -53,7 +53,7 @@ localhost:23023:AsynctelnetTransport::0: - channel_output: configure terminal expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 20:01:56.671 UTC\nRP/0/RP0/CPU0:ios(config)#" + - channel_output: "\nSat May 29 17:17:16.751 UTC\nRP/0/RP0/CPU0:ios(config)#" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nRP/0/RP0/CPU0:ios(config)#" @@ -93,9 +93,9 @@ localhost:23023:AsynctelnetTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nRP/0/RP0/CPU0:ios(config)#" - expected_channel_input: username vrnetlab + expected_channel_input: username boxen expected_channel_input_redacted: false - - channel_output: username vrnetlab + - channel_output: username boxen expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nRP/0/RP0/CPU0:ios(config-un)#" @@ -111,9 +111,9 @@ localhost:23023:AsynctelnetTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nRP/0/RP0/CPU0:ios(config-un)#" - expected_channel_input: ' secret 5 $1$5aFx$Ul43RjEjA7C4LFsghgQCu0' + expected_channel_input: ' secret 5 $1$fW1M$wIX/Q6Qpcg06QmgxVETb9/' expected_channel_input_redacted: false - - channel_output: ' secret 5 $1$5aFx$Ul43RjEjA7C4LFsghgQCu0' + - channel_output: ' secret 5 $1$fW1M$wIX/Q6Qpcg06QmgxVETb9/' expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nRP/0/RP0/CPU0:ios(config-un)#" @@ -2546,7 +2546,7 @@ localhost:23023:AsynctelnetTransport::0: - channel_output: show configuration changes diff expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 20:02:04.767 UTC\nBuilding configuration...\n\ + - channel_output: "\nSat May 29 17:17:24.248 UTC\nBuilding configuration...\n\ !! IOS XR Configuration version = 6.5.3\n+ interface MgmtEth0/RP0/CPU0/0\n\ + !\n+ interface GigabitEthernet0/0/0/0\n+ !\n+ interface GigabitEthernet0/0/0/1\n\ + !\n+ interface GigabitEthernet0/0/0/2\n+ !\n+ interface GigabitEthernet0/0/0/3\n\ @@ -2618,10 +2618,10 @@ localhost:23023:AsynctelnetTransport::0: - channel_output: show running-config expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 20:02:05.499 UTC\nBuilding configuration...\n\ - !! IOS XR Configuration version = 6.5.3\n!! Last configuration change at Tue\ - \ Apr 27 00:13:12 2021 by vrnetlab\n!\ntelnet vrf default ipv4 server max-servers\ - \ 10\nusername vrnetlab\n group root-lr\n group cisco-support\n secret 5 $1$5aFx$Ul43RjEjA7C4LFsghgQCu0\n\ + - channel_output: "\nSat May 29 17:17:24.994 UTC\nBuilding configuration...\n\ + !! IOS XR Configuration version = 6.5.3\n!! Last configuration change at Sat\ + \ May 29 16:56:12 2021 by boxen\n!\ntelnet vrf default ipv4 server max-servers\ + \ 10\nusername boxen\n group root-lr\n group cisco-support\n secret 5 $1$fW1M$wIX/Q6Qpcg06QmgxVETb9/\n\ !\ncall-home\n service active\n contact smart-licensing\n profile CiscoTAC-1\n\ \ active\n destination transport-method http\n !\n!\ninterface MgmtEth0/RP0/CPU0/0\n\ \ ipv4 address 10.0.0.15 255.255.255.0\n!\ninterface GigabitEthernet0/0/0/0\n\ @@ -2715,7 +2715,7 @@ localhost:23023:AsynctelnetTransport::0: - channel_output: commit replace expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 20:02:06.168 UTC\n\nThis commit will replace or\ + - channel_output: "\nSat May 29 17:17:25.595 UTC\n\nThis commit will replace or\ \ remove the entire running configuration. This\noperation can be service\ \ affecting.\nDo you wish to proceed? [no]: " expected_channel_input: yes diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[cisco_nxos-asyncssh].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[cisco_nxos-asyncssh].yaml index 6e8d516..e48a3c0 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[cisco_nxos-asyncssh].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[cisco_nxos-asyncssh].yaml @@ -2,7 +2,7 @@ localhost:22022:AsyncsshTransport::0: connection_profile: host: localhost port: 22022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -59,7 +59,7 @@ localhost:22022:AsyncsshTransport::0: - channel_output: "dir bootflash: | i 'bytes free'" expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n 1950605312 bytes free\nswitch# " + - channel_output: "\n 1950945280 bytes free\nswitch# " expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nswitch# " @@ -325,10 +325,10 @@ localhost:22022:AsyncsshTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nswitch-tcl# " - expected_channel_input: puts -nonewline $fl {username vrnetlab password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3 role + expected_channel_input: puts -nonewline $fl {username boxen password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3 role network-admin expected_channel_input_redacted: false - - channel_output: puts -nonewline $fl {username vrnetlab password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3 role + - channel_output: puts -nonewline $fl {username boxen password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3 role network-admin expected_channel_input: "\n" expected_channel_input_redacted: false @@ -339,11 +339,11 @@ localhost:22022:AsyncsshTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nswitch-tcl# " - expected_channel_input: puts -nonewline $fl {username vrnetlab passphrase lifetime + expected_channel_input: puts -nonewline $fl {username boxen passphrase lifetime 99999 warntime 14 gracetime 3 expected_channel_input_redacted: false - - channel_output: puts -nonewline $fl {username vrnetlab passphrase lifetime - 99999 warntime 14 gracetime 3 + - channel_output: puts -nonewline $fl {username boxen passphrase lifetime 99999 + warntime 14 gracetime 3 expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\n> " @@ -393,12 +393,12 @@ localhost:22022:AsyncsshTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nswitch-tcl# " - expected_channel_input: puts -nonewline $fl {snmp-server user vrnetlab network-admin + expected_channel_input: puts -nonewline $fl {snmp-server user boxen network-admin auth md5 0x1a3abb28531cf988a22cc61af30861a7 priv 0x1a3abb28531cf988a22cc61af30861a7 localizedkey expected_channel_input_redacted: false - - channel_output: puts -nonewline $fl {snmp-server user vrnetlab network-admin - auth md5 0x1a3abb28531cf988a22cc61af30861a7 priv 0x1a3abb28531cf988a22cc61af30861a7 + - channel_output: puts -nonewline $fl {snmp-server user boxen network-admin auth + md5 0x1a3abb28531cf988a22cc61af30861a7 priv 0x1a3abb28531cf988a22cc61af30861a7 localizedkey expected_channel_input: "\n" expected_channel_input_redacted: false @@ -3714,7 +3714,7 @@ localhost:22022:AsyncsshTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\n\n!Command: show running-config\n!Running configuration last\ - \ done at: Tue Apr 27 16:04:25 2021\n!Time: Tue Apr 27 19:59:57 2021\n\nversion\ + \ done at: Sat May 29 12:38:33 2021\n!Time: Sat May 29 17:15:20 2021\n\nversion\ \ 9.2(4) Bios:version \nvdc switch id 1\n limit-resource vlan minimum 16\ \ maximum 4094\n limit-resource vrf minimum 2 maximum 4096\n limit-resource\ \ port-channel minimum 0 maximum 511\n limit-resource u4route-mem minimum\ @@ -3722,12 +3722,12 @@ localhost:22022:AsyncsshTransport::0: \ m4route-mem minimum 58 maximum 58\n limit-resource m6route-mem minimum\ \ 8 maximum 8\nfeature telnet\nfeature nxapi\nfeature scp-server\n\nno password\ \ strength-check\nusername admin password 5 $5$LOIMHI$hIaO64VM40/x.MTQoeWg8/IAn2iBY5jv4WZyzQbb5q9\ - \ role network-admin\nusername vrnetlab password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3\ - \ role network-admin\nusername vrnetlab passphrase lifetime 99999 warntime\ + \ role network-admin\nusername boxen password 5 $5$rFrywOjz$buvWY6uEPf79GVyfGNO6SGOi5gbxV2VAcsbBtyXDZyB\ + \ role network-admin\nusername boxen passphrase lifetime 99999 warntime\ \ 14 gracetime 3\nip domain-lookup\ncopp profile strict\nsnmp-server user\ \ admin network-admin auth md5 0xd42fc9f6e153a348e1ab40f0f5b84589 priv 0xd42fc9f6e153a348e1ab40f0f5b84589\ - \ localizedkey\nsnmp-server user vrnetlab network-admin auth md5 0x1a3abb28531cf988a22cc61af30861a7\ - \ priv 0x1a3abb28531cf988a22cc61af30861a7 localizedkey\nrmon event 1 description\ + \ localizedkey\nsnmp-server user boxen network-admin auth md5 0xc168bfc2b500129bd35ee550b6d5d93d\ + \ priv 0xc168bfc2b500129bd35ee550b6d5d93d localizedkey\nrmon event 1 description\ \ FATAL(1) owner PMON@FATAL\nrmon event 2 description CRITICAL(2) owner PMON@CRITICAL\n\ rmon event 3 description ERROR(3) owner PMON@ERROR\nrmon event 4 description\ \ WARNING(4) owner PMON@WARNING\nrmon event 5 description INFORMATION(5) owner\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[cisco_nxos-asynctelnet].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[cisco_nxos-asynctelnet].yaml index 995e7c1..022c2b9 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[cisco_nxos-asynctelnet].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[cisco_nxos-asynctelnet].yaml @@ -2,7 +2,7 @@ localhost:22023:AsynctelnetTransport::0: connection_profile: host: localhost port: 22023 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -11,7 +11,7 @@ localhost:22023:AsynctelnetTransport::0: auth_secondary: false interactions: - channel_output: "User Access Verification\nlogin: " - expected_channel_input: vrnetlab + expected_channel_input: boxen expected_channel_input_redacted: false - channel_output: '' expected_channel_input: "\n" @@ -71,7 +71,7 @@ localhost:22023:AsynctelnetTransport::0: - channel_output: "dir bootflash: | i 'bytes free'" expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n 1950605312 bytes free\nswitch# " + - channel_output: "\n 1950945280 bytes free\nswitch# " expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nswitch# " @@ -337,10 +337,10 @@ localhost:22023:AsynctelnetTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nswitch-tcl# " - expected_channel_input: puts -nonewline $fl {username vrnetlab password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3 role + expected_channel_input: puts -nonewline $fl {username boxen password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3 role network-admin expected_channel_input_redacted: false - - channel_output: puts -nonewline $fl {username vrnetlab password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3 role + - channel_output: puts -nonewline $fl {username boxen password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3 role network-admin expected_channel_input: "\n" expected_channel_input_redacted: false @@ -351,11 +351,11 @@ localhost:22023:AsynctelnetTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nswitch-tcl# " - expected_channel_input: puts -nonewline $fl {username vrnetlab passphrase lifetime + expected_channel_input: puts -nonewline $fl {username boxen passphrase lifetime 99999 warntime 14 gracetime 3 expected_channel_input_redacted: false - - channel_output: puts -nonewline $fl {username vrnetlab passphrase lifetime - 99999 warntime 14 gracetime 3 + - channel_output: puts -nonewline $fl {username boxen passphrase lifetime 99999 + warntime 14 gracetime 3 expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\n> " @@ -405,12 +405,12 @@ localhost:22023:AsynctelnetTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nswitch-tcl# " - expected_channel_input: puts -nonewline $fl {snmp-server user vrnetlab network-admin + expected_channel_input: puts -nonewline $fl {snmp-server user boxen network-admin auth md5 0x1a3abb28531cf988a22cc61af30861a7 priv 0x1a3abb28531cf988a22cc61af30861a7 localizedkey expected_channel_input_redacted: false - - channel_output: puts -nonewline $fl {snmp-server user vrnetlab network-admin - auth md5 0x1a3abb28531cf988a22cc61af30861a7 priv 0x1a3abb28531cf988a22cc61af30861a7 + - channel_output: puts -nonewline $fl {snmp-server user boxen network-admin auth + md5 0x1a3abb28531cf988a22cc61af30861a7 priv 0x1a3abb28531cf988a22cc61af30861a7 localizedkey expected_channel_input: "\n" expected_channel_input_redacted: false @@ -3726,7 +3726,7 @@ localhost:22023:AsynctelnetTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\n\n!Command: show running-config\n!Running configuration last\ - \ done at: Tue Apr 27 16:04:25 2021\n!Time: Tue Apr 27 20:01:05 2021\n\nversion\ + \ done at: Sat May 29 12:38:33 2021\n!Time: Sat May 29 17:16:23 2021\n\nversion\ \ 9.2(4) Bios:version \nvdc switch id 1\n limit-resource vlan minimum 16\ \ maximum 4094\n limit-resource vrf minimum 2 maximum 4096\n limit-resource\ \ port-channel minimum 0 maximum 511\n limit-resource u4route-mem minimum\ @@ -3734,12 +3734,12 @@ localhost:22023:AsynctelnetTransport::0: \ m4route-mem minimum 58 maximum 58\n limit-resource m6route-mem minimum\ \ 8 maximum 8\nfeature telnet\nfeature nxapi\nfeature scp-server\n\nno password\ \ strength-check\nusername admin password 5 $5$LOIMHI$hIaO64VM40/x.MTQoeWg8/IAn2iBY5jv4WZyzQbb5q9\ - \ role network-admin\nusername vrnetlab password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3\ - \ role network-admin\nusername vrnetlab passphrase lifetime 99999 warntime\ + \ role network-admin\nusername boxen password 5 $5$rFrywOjz$buvWY6uEPf79GVyfGNO6SGOi5gbxV2VAcsbBtyXDZyB\ + \ role network-admin\nusername boxen passphrase lifetime 99999 warntime\ \ 14 gracetime 3\nip domain-lookup\ncopp profile strict\nsnmp-server user\ \ admin network-admin auth md5 0xd42fc9f6e153a348e1ab40f0f5b84589 priv 0xd42fc9f6e153a348e1ab40f0f5b84589\ - \ localizedkey\nsnmp-server user vrnetlab network-admin auth md5 0x1a3abb28531cf988a22cc61af30861a7\ - \ priv 0x1a3abb28531cf988a22cc61af30861a7 localizedkey\nrmon event 1 description\ + \ localizedkey\nsnmp-server user boxen network-admin auth md5 0xc168bfc2b500129bd35ee550b6d5d93d\ + \ priv 0xc168bfc2b500129bd35ee550b6d5d93d localizedkey\nrmon event 1 description\ \ FATAL(1) owner PMON@FATAL\nrmon event 2 description CRITICAL(2) owner PMON@CRITICAL\n\ rmon event 3 description ERROR(3) owner PMON@ERROR\nrmon event 4 description\ \ WARNING(4) owner PMON@WARNING\nrmon event 5 description INFORMATION(5) owner\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[juniper_junos-asyncssh].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[juniper_junos-asyncssh].yaml index 71d20b1..2d92174 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[juniper_junos-asyncssh].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[juniper_junos-asyncssh].yaml @@ -2,7 +2,7 @@ localhost:25022:AsyncsshTransport::0: connection_profile: host: localhost port: 25022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -13,34 +13,34 @@ localhost:25022:AsyncsshTransport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "--- JUNOS 17.3R2.10 built 2018-02-08 02:19:07 UTC\n\nvrnetlab> " + - channel_output: "--- JUNOS 17.3R2.10 built 2018-02-08 02:19:07 UTC\n\nboxen> " expected_channel_input: set cli screen-length 0 expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> set cli screen-length 0" + - channel_output: "\n\nboxen> set cli screen-length 0" expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nScreen length set to 0\n\nvrnetlab> " + - channel_output: " \nScreen length set to 0\n\nboxen> " expected_channel_input: set cli screen-width 511 expected_channel_input_redacted: false - channel_output: set cli screen-width 511 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nScreen width set to 511\n\nvrnetlab> " + - channel_output: " \nScreen width set to 511\n\nboxen> " expected_channel_input: set cli complete-on-space off expected_channel_input_redacted: false - channel_output: set cli complete-on-space off expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nDisabling complete-on-space\n\nvrnetlab> " + - channel_output: " \nDisabling complete-on-space\n\nboxen> " expected_channel_input: 'show version | grep junos:' expected_channel_input_redacted: false - channel_output: 'show version | grep junos:' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nJunos: 17.3R2.10\n\nvrnetlab> " + - channel_output: " \nJunos: 17.3R2.10\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: start shell user root expected_channel_input_redacted: false - channel_output: start shell user root @@ -57,10 +57,10 @@ localhost:25022:AsyncsshTransport::0: expected_channel_input_redacted: false - channel_output: "\nroot@% " expected_channel_input: "echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ '## Last\ - \ commit: 2021-03-07 19:15:24 UTC by vrnetlab'" + \ commit: 2021-03-07 19:15:24 UTC by boxen'" expected_channel_input_redacted: false - channel_output: "echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ '## Last commit:\ - \ 2021-03-07 19:15:24 UTC by vrnetlab'" + \ 2021-03-07 19:15:24 UTC by boxen'" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nroot@% " @@ -87,11 +87,11 @@ localhost:25022:AsyncsshTransport::0: expected_channel_input_redacted: false - channel_output: "\nroot@% " expected_channel_input: "echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' \ - \ encrypted-password \"$6$dWt4Lg4V$wiqols.Ou//eIg.3kpdu98L9hSzA7VSytcnV4NWI3S2BKM4rfruJf5JKLBdihyCyEgUVHb1Rw3xHIVxQR/O0F.\"\ + \ encrypted-password \"$6$Adf5A57s$5Iu/Tdzi/qQuSA.9tV.przrz51avKm.6TvJMBF42zODEM/d7.cvk2Y/kIeLinV5R.HGEEOOD6wane6Xs6rbfT0\"\ ; ## SECRET-DATA'" expected_channel_input_redacted: false - channel_output: "echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' encrypted-password\ - \ \"$6$dWt4Lg4V$wiqols.Ou//eIg.3kpdu98L9hSzA7VSytcnV4NWI3S2BKM4rfruJf5JKLBdihyCyEgUVHb1Rw3xHIVxQR/O0F.\"\ + \ \"$6$Adf5A57s$5Iu/Tdzi/qQuSA.9tV.przrz51avKm.6TvJMBF42zODEM/d7.cvk2Y/kIeLinV5R.HGEEOOD6wane6Xs6rbfT0\"\ ; ## SECRET-DATA'" expected_channel_input: "\n" expected_channel_input_redacted: false @@ -110,9 +110,9 @@ localhost:25022:AsyncsshTransport::0: expected_channel_input_redacted: false - channel_output: "\nroot@% " expected_channel_input: echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' user - vrnetlab {' + boxen {' expected_channel_input_redacted: false - - channel_output: echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' user vrnetlab + - channel_output: echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' user boxen {' expected_channel_input: "\n" expected_channel_input_redacted: false @@ -142,11 +142,11 @@ localhost:25022:AsyncsshTransport::0: expected_channel_input_redacted: false - channel_output: "\nroot@% " expected_channel_input: "echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' \ - \ encrypted-password \"$6$1tKhsTEi$VjaGckqjhgSqaZf5rrWqlhDkI1xAsaTWxFRtVQQnpE4qaeIWFuQUZ3GulwPfBYq2RLSTTl/ZnyyZJrcBl.7lP0\"\ + \ encrypted-password \"$6$SDiXXE9D$KTq4es.BGkdh5IlSxbDhCFn8yWkaFxsjEhmbi4cd53hc9aNfOVmtL1iJiQKEUkgQOdYRvyJetjzygVsVR3CCf.\"\ ; ## SECRET-DATA'" expected_channel_input_redacted: false - channel_output: "echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' \ - \ encrypted-password \"$6$1tKhsTEi$VjaGckqjhgSqaZf5rrWqlhDkI1xAsaTWxFRtVQQnpE4qaeIWFuQUZ3GulwPfBYq2RLSTTl/ZnyyZJrcBl.7lP0\"\ + \ encrypted-password \"$6$SDiXXE9D$KTq4es.BGkdh5IlSxbDhCFn8yWkaFxsjEhmbi4cd53hc9aNfOVmtL1iJiQKEUkgQOdYRvyJetjzygVsVR3CCf.\"\ ; ## SECRET-DATA'" expected_channel_input: "\n" expected_channel_input_redacted: false @@ -871,42 +871,42 @@ localhost:25022:AsyncsshTransport::0: - channel_output: exit expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nexit\n\nvrnetlab> " + - channel_output: "\nexit\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: configure expected_channel_input_redacted: false - channel_output: configure expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nEntering configuration mode\n\n[edit]\nvrnetlab# " + - channel_output: " \nEntering configuration mode\n\n[edit]\nboxen# " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n[edit]\nvrnetlab# " + - channel_output: "\n\n[edit]\nboxen# " expected_channel_input: load override /config/__SCRAPLI_CFG_SESSION_NAME__ expected_channel_input_redacted: false - channel_output: load override /config/__SCRAPLI_CFG_SESSION_NAME__ expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \n|\bload complete\n\n[edit]\nvrnetlab# " + - channel_output: " \n|\bload complete\n\n[edit]\nboxen# " expected_channel_input: show | compare expected_channel_input_redacted: false - channel_output: show | compare expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \n\n[edit]\nvrnetlab# " + - channel_output: " \n\n[edit]\nboxen# " expected_channel_input: run show configuration expected_channel_input_redacted: false - channel_output: run show configuration expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \n## Last commit: 2021-04-27 19:56:03 UTC by vrnetlab\nversion\ + - channel_output: " \n## Last commit: 2021-05-29 17:12:55 UTC by boxen\nversion\ \ 17.3R2.10;\nsystem {\n root-authentication {\n encrypted-password\ - \ \"$6$dWt4Lg4V$wiqols.Ou//eIg.3kpdu98L9hSzA7VSytcnV4NWI3S2BKM4rfruJf5JKLBdihyCyEgUVHb1Rw3xHIVxQR/O0F.\"\ - ; ## SECRET-DATA\n }\n login {\n user vrnetlab {\n \ - \ uid 2000;\n class super-user;\n authentication {\n\ - \ encrypted-password \"$6$1tKhsTEi$VjaGckqjhgSqaZf5rrWqlhDkI1xAsaTWxFRtVQQnpE4qaeIWFuQUZ3GulwPfBYq2RLSTTl/ZnyyZJrcBl.7lP0\"\ + \ \"$6$Adf5A57s$5Iu/Tdzi/qQuSA.9tV.przrz51avKm.6TvJMBF42zODEM/d7.cvk2Y/kIeLinV5R.HGEEOOD6wane6Xs6rbfT0\"\ + ; ## SECRET-DATA\n }\n login {\n user boxen {\n uid\ + \ 2000;\n class super-user;\n authentication {\n \ + \ encrypted-password \"$6$SDiXXE9D$KTq4es.BGkdh5IlSxbDhCFn8yWkaFxsjEhmbi4cd53hc9aNfOVmtL1iJiQKEUkgQOdYRvyJetjzygVsVR3CCf.\"\ ; ## SECRET-DATA\n }\n }\n }\n services {\n \ \ ssh {\n protocol-version v2;\n }\n telnet;\n \ \ netconf {\n ssh;\n }\n web-management {\n\ @@ -938,25 +938,25 @@ localhost:25022:AsyncsshTransport::0: \ tcp-rst;\n }\n security-zone untrust {\n \ \ screen untrust-screen;\n }\n }\n}\ninterfaces {\n fxp0 {\n\ \ unit 0 {\n family inet {\n address 10.0.0.15/24;\n\ - \ }\n }\n }\n}\n\n[edit]\nvrnetlab# " + \ }\n }\n }\n}\n\n[edit]\nboxen# " expected_channel_input: commit expected_channel_input_redacted: false - channel_output: commit expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \ncommit complete\n\n[edit]\nvrnetlab# " + - channel_output: " \ncommit complete\n\n[edit]\nboxen# " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n[edit]\nvrnetlab# " + - channel_output: "\n\n[edit]\nboxen# " expected_channel_input: exit configuration-mode expected_channel_input_redacted: false - channel_output: exit configuration-mode expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nExiting configuration mode\n\nvrnetlab> " + - channel_output: " \nExiting configuration mode\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: start shell user root expected_channel_input_redacted: false - channel_output: start shell user root @@ -986,10 +986,10 @@ localhost:25022:AsyncsshTransport::0: - channel_output: exit expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nexit\n\nvrnetlab> " + - channel_output: "\nexit\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: exit expected_channel_input_redacted: false - channel_output: '' diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[juniper_junos-asynctelnet].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[juniper_junos-asynctelnet].yaml index 7685234..d6fd59f 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[juniper_junos-asynctelnet].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_merge_diff_and_commit[juniper_junos-asynctelnet].yaml @@ -2,7 +2,7 @@ localhost:25023:AsynctelnetTransport::0: connection_profile: host: localhost port: 25023 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -11,7 +11,7 @@ localhost:25023:AsynctelnetTransport::0: auth_secondary: false interactions: - channel_output: 'login: ' - expected_channel_input: vrnetlab + expected_channel_input: boxen expected_channel_input_redacted: false - channel_output: '' expected_channel_input: "\n" @@ -22,37 +22,37 @@ localhost:25023:AsynctelnetTransport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n--- JUNOS 17.3R2.10 built 2018-02-08 02:19:07 UTC\nvrnetlab> " + - channel_output: "\n\n--- JUNOS 17.3R2.10 built 2018-02-08 02:19:07 UTC\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: set cli screen-length 0 expected_channel_input_redacted: false - channel_output: set cli screen-length 0 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nScreen length set to 0\n\nvrnetlab> " + - channel_output: " \nScreen length set to 0\n\nboxen> " expected_channel_input: set cli screen-width 511 expected_channel_input_redacted: false - channel_output: set cli screen-width 511 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nScreen width set to 511\n\nvrnetlab> " + - channel_output: " \nScreen width set to 511\n\nboxen> " expected_channel_input: set cli complete-on-space off expected_channel_input_redacted: false - channel_output: set cli complete-on-space off expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nDisabling complete-on-space\n\nvrnetlab> " + - channel_output: " \nDisabling complete-on-space\n\nboxen> " expected_channel_input: 'show version | grep junos:' expected_channel_input_redacted: false - channel_output: 'show version | grep junos:' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nJunos: 17.3R2.10\n\nvrnetlab> " + - channel_output: " \nJunos: 17.3R2.10\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: start shell user root expected_channel_input_redacted: false - channel_output: start shell user root @@ -69,10 +69,10 @@ localhost:25023:AsynctelnetTransport::0: expected_channel_input_redacted: false - channel_output: "\nroot@% " expected_channel_input: "echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ '## Last\ - \ commit: 2021-03-07 19:15:24 UTC by vrnetlab'" + \ commit: 2021-03-07 19:15:24 UTC by boxen'" expected_channel_input_redacted: false - channel_output: "echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ '## Last commit:\ - \ 2021-03-07 19:15:24 UTC by vrnetlab'" + \ 2021-03-07 19:15:24 UTC by boxen'" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nroot@% " @@ -99,11 +99,11 @@ localhost:25023:AsynctelnetTransport::0: expected_channel_input_redacted: false - channel_output: "\nroot@% " expected_channel_input: "echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' \ - \ encrypted-password \"$6$dWt4Lg4V$wiqols.Ou//eIg.3kpdu98L9hSzA7VSytcnV4NWI3S2BKM4rfruJf5JKLBdihyCyEgUVHb1Rw3xHIVxQR/O0F.\"\ + \ encrypted-password \"$6$Adf5A57s$5Iu/Tdzi/qQuSA.9tV.przrz51avKm.6TvJMBF42zODEM/d7.cvk2Y/kIeLinV5R.HGEEOOD6wane6Xs6rbfT0\"\ ; ## SECRET-DATA'" expected_channel_input_redacted: false - channel_output: "echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' encrypted-password\ - \ \"$6$dWt4Lg4V$wiqols.Ou//eIg.3kpdu98L9hSzA7VSytcnV4NWI3S2BKM4rfruJf5JKLBdihyCyEgUVHb1Rw3xHIVxQR/O0F.\"\ + \ \"$6$Adf5A57s$5Iu/Tdzi/qQuSA.9tV.przrz51avKm.6TvJMBF42zODEM/d7.cvk2Y/kIeLinV5R.HGEEOOD6wane6Xs6rbfT0\"\ ; ## SECRET-DATA'" expected_channel_input: "\n" expected_channel_input_redacted: false @@ -122,9 +122,9 @@ localhost:25023:AsynctelnetTransport::0: expected_channel_input_redacted: false - channel_output: "\nroot@% " expected_channel_input: echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' user - vrnetlab {' + boxen {' expected_channel_input_redacted: false - - channel_output: echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' user vrnetlab + - channel_output: echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' user boxen {' expected_channel_input: "\n" expected_channel_input_redacted: false @@ -154,11 +154,11 @@ localhost:25023:AsynctelnetTransport::0: expected_channel_input_redacted: false - channel_output: "\nroot@% " expected_channel_input: "echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' \ - \ encrypted-password \"$6$1tKhsTEi$VjaGckqjhgSqaZf5rrWqlhDkI1xAsaTWxFRtVQQnpE4qaeIWFuQUZ3GulwPfBYq2RLSTTl/ZnyyZJrcBl.7lP0\"\ + \ encrypted-password \"$6$SDiXXE9D$KTq4es.BGkdh5IlSxbDhCFn8yWkaFxsjEhmbi4cd53hc9aNfOVmtL1iJiQKEUkgQOdYRvyJetjzygVsVR3CCf.\"\ ; ## SECRET-DATA'" expected_channel_input_redacted: false - channel_output: "echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' \ - \ encrypted-password \"$6$1tKhsTEi$VjaGckqjhgSqaZf5rrWqlhDkI1xAsaTWxFRtVQQnpE4qaeIWFuQUZ3GulwPfBYq2RLSTTl/ZnyyZJrcBl.7lP0\"\ + \ encrypted-password \"$6$SDiXXE9D$KTq4es.BGkdh5IlSxbDhCFn8yWkaFxsjEhmbi4cd53hc9aNfOVmtL1iJiQKEUkgQOdYRvyJetjzygVsVR3CCf.\"\ ; ## SECRET-DATA'" expected_channel_input: "\n" expected_channel_input_redacted: false @@ -883,42 +883,42 @@ localhost:25023:AsynctelnetTransport::0: - channel_output: exit expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nexit\n\nvrnetlab> " + - channel_output: "\nexit\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: configure expected_channel_input_redacted: false - channel_output: configure expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nEntering configuration mode\n\n[edit]\nvrnetlab# " + - channel_output: " \nEntering configuration mode\n\n[edit]\nboxen# " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n[edit]\nvrnetlab# " + - channel_output: "\n\n[edit]\nboxen# " expected_channel_input: load override /config/__SCRAPLI_CFG_SESSION_NAME__ expected_channel_input_redacted: false - channel_output: load override /config/__SCRAPLI_CFG_SESSION_NAME__ expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \n|\bload complete\n\n[edit]\nvrnetlab# " + - channel_output: " \n|\bload complete\n\n[edit]\nboxen# " expected_channel_input: show | compare expected_channel_input_redacted: false - channel_output: show | compare expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \n\n[edit]\nvrnetlab# " + - channel_output: " \n\n[edit]\nboxen# " expected_channel_input: run show configuration expected_channel_input_redacted: false - channel_output: run show configuration expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \n## Last commit: 2021-04-27 20:02:48 UTC by vrnetlab\nversion\ + - channel_output: " \n## Last commit: 2021-05-29 17:16:42 UTC by boxen\nversion\ \ 17.3R2.10;\nsystem {\n root-authentication {\n encrypted-password\ - \ \"$6$dWt4Lg4V$wiqols.Ou//eIg.3kpdu98L9hSzA7VSytcnV4NWI3S2BKM4rfruJf5JKLBdihyCyEgUVHb1Rw3xHIVxQR/O0F.\"\ - ; ## SECRET-DATA\n }\n login {\n user vrnetlab {\n \ - \ uid 2000;\n class super-user;\n authentication {\n\ - \ encrypted-password \"$6$1tKhsTEi$VjaGckqjhgSqaZf5rrWqlhDkI1xAsaTWxFRtVQQnpE4qaeIWFuQUZ3GulwPfBYq2RLSTTl/ZnyyZJrcBl.7lP0\"\ + \ \"$6$Adf5A57s$5Iu/Tdzi/qQuSA.9tV.przrz51avKm.6TvJMBF42zODEM/d7.cvk2Y/kIeLinV5R.HGEEOOD6wane6Xs6rbfT0\"\ + ; ## SECRET-DATA\n }\n login {\n user boxen {\n uid\ + \ 2000;\n class super-user;\n authentication {\n \ + \ encrypted-password \"$6$SDiXXE9D$KTq4es.BGkdh5IlSxbDhCFn8yWkaFxsjEhmbi4cd53hc9aNfOVmtL1iJiQKEUkgQOdYRvyJetjzygVsVR3CCf.\"\ ; ## SECRET-DATA\n }\n }\n }\n services {\n \ \ ssh {\n protocol-version v2;\n }\n telnet;\n \ \ netconf {\n ssh;\n }\n web-management {\n\ @@ -950,25 +950,25 @@ localhost:25023:AsynctelnetTransport::0: \ tcp-rst;\n }\n security-zone untrust {\n \ \ screen untrust-screen;\n }\n }\n}\ninterfaces {\n fxp0 {\n\ \ unit 0 {\n family inet {\n address 10.0.0.15/24;\n\ - \ }\n }\n }\n}\n\n[edit]\nvrnetlab# " + \ }\n }\n }\n}\n\n[edit]\nboxen# " expected_channel_input: commit expected_channel_input_redacted: false - channel_output: commit expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \ncommit complete\n\n[edit]\nvrnetlab# " + - channel_output: " \ncommit complete\n\n[edit]\nboxen# " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n[edit]\nvrnetlab# " + - channel_output: "\n\n[edit]\nboxen# " expected_channel_input: exit configuration-mode expected_channel_input_redacted: false - channel_output: exit configuration-mode expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nExiting configuration mode\n\nvrnetlab> " + - channel_output: " \nExiting configuration mode\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: start shell user root expected_channel_input_redacted: false - channel_output: start shell user root @@ -998,10 +998,10 @@ localhost:25023:AsynctelnetTransport::0: - channel_output: exit expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nexit\n\nvrnetlab> " + - channel_output: "\nexit\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: exit expected_channel_input_redacted: false - channel_output: '' diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[arista_eos-paramiko].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[arista_eos-paramiko].yaml index 01d1361..62a04c8 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[arista_eos-paramiko].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[arista_eos-paramiko].yaml @@ -2,7 +2,7 @@ localhost:24022:ParamikoTransport::0: connection_profile: host: localhost port: 24022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -13,10 +13,10 @@ localhost:24022:ParamikoTransport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "Last login: Tue Apr 27 19:54:39 2021 from 10.0.0.2\n\n\nlocalhost>" + - channel_output: "Last login: Sat May 29 17:04:32 2021 from 10.0.0.2\n\n\nlocalhost>\n" expected_channel_input: enable expected_channel_input_redacted: false - - channel_output: "\nenable" + - channel_output: enable expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nlocalhost>enable\nPassword: " @@ -725,9 +725,9 @@ localhost:24022:ParamikoTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nlocalhost(config-s-scrapl)#" - expected_channel_input: enable secret sha512 $6$P1M9SV2bLTmQJpwW$KVoaaIa7i34uTFp7JRRp.hqL55nr7jSJJiDA.9CHTCW7q4GDIwyceMMSp6TavgYiAokjobyBYCO70L7FxpZon1 + expected_channel_input: enable secret sha512 $6$TVJ6KgdC0qsGkKfb$LjGGPd6W3S1iJQVQ.Vvo3Bca4Yt1R3y4nOjWAaaTCsk1NuIoqB/gOMseoigt/HQVFDTvDAJ3IPmsF9sWfxi1V/ expected_channel_input_redacted: false - - channel_output: enable secret sha512 $6$P1M9SV2bLTmQJpwW$KVoaaIa7i34uTFp7JRRp.hqL55nr7jSJJiDA.9CHTCW7q4GDIwyceMMSp6TavgYiAokjobyBYCO70L7FxpZon1 + - channel_output: enable secret sha512 $6$TVJ6KgdC0qsGkKfb$LjGGPd6W3S1iJQVQ.Vvo3Bca4Yt1R3y4nOjWAaaTCsk1NuIoqB/gOMseoigt/HQVFDTvDAJ3IPmsF9sWfxi1V/ expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nlocalhost(config-s-scrapl)#" @@ -743,9 +743,9 @@ localhost:24022:ParamikoTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nlocalhost(config-s-scrapl)#" - expected_channel_input: username vrnetlab role network-admin secret sha512 $6$8zrJ4ESW2fqG2QqH$9u768TvLXXDeUJmG2Std71EX1ip6q4MoJrMwDng1cmpuSYc9ECWytRjvXpMH7C3dzSdoEv0MxAUiAZeeTre3h. + expected_channel_input: username boxen role network-admin secret sha512 $6$1ex07TzYfKx23A9z$c02oeDxnr4J7HMgj0PcabYvACZfjdiu3zp4IAgjJQ51IBtkstpvOjm0FYbxSSBhsl.mytIr9Y4PaERp4MDXJM/ expected_channel_input_redacted: false - - channel_output: username vrnetlab role network-admin secret sha512 $6$8zrJ4ESW2fqG2QqH$9u768TvLXXDeUJmG2Std71EX1ip6q4MoJrMwDng1cmpuSYc9ECWytRjvXpMH7C3dzSdoEv0MxAUiAZeeTre3h. + - channel_output: username boxen role network-admin secret sha512 $6$1ex07TzYfKx23A9z$c02oeDxnr4J7HMgj0PcabYvACZfjdiu3zp4IAgjJQ51IBtkstpvOjm0FYbxSSBhsl.mytIr9Y4PaERp4MDXJM/ expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nlocalhost(config-s-scrapl)#" @@ -1718,8 +1718,7 @@ localhost:24022:ParamikoTransport::0: - channel_output: '' expected_channel_input: from a remote system or Zero Touch Provisioning is cancelled. expected_channel_input_redacted: false - - channel_output: "be fully functional until either a valid startup-config is\ - \ downloaded\nfrom a remote system or Zero Touch Provisioning is cancelled." + - channel_output: "\nfrom a remote system or Zero Touch Provisioning is cancelled." expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: '' @@ -1741,8 +1740,8 @@ localhost:24022:ParamikoTransport::0: expected_channel_input: Provisioning permanently, type 'zerotouch disable' at the CLI. expected_channel_input_redacted: false - - channel_output: "'zerotouch cancel' at the CLI. Alternatively, to disable Zero\ - \ Touch\nProvisioning permanently, type 'zerotouch disable' at the CLI." + - channel_output: "\nProvisioning permanently, type 'zerotouch disable' at the\ + \ CLI." expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: '' @@ -1823,8 +1822,8 @@ localhost:24022:ParamikoTransport::0: \ level VMWAREVI errors\nlogging level VMWAREVS errors\nlogging level VRF\ \ errors\nlogging level VRRP errors\nlogging level VXLAN errors\nlogging level\ \ XMPP errors\nlogging level ZTP informational\n!\nspanning-tree mode mstp\n\ - !\nenable secret sha512 $6$P1M9SV2bLTmQJpwW$KVoaaIa7i34uTFp7JRRp.hqL55nr7jSJJiDA.9CHTCW7q4GDIwyceMMSp6TavgYiAokjobyBYCO70L7FxpZon1\n\ - no aaa root\n!\nusername vrnetlab role network-admin secret sha512 $6$8zrJ4ESW2fqG2QqH$9u768TvLXXDeUJmG2Std71EX1ip6q4MoJrMwDng1cmpuSYc9ECWytRjvXpMH7C3dzSdoEv0MxAUiAZeeTre3h.\n\ + !\nenable secret sha512 $6$TVJ6KgdC0qsGkKfb$LjGGPd6W3S1iJQVQ.Vvo3Bca4Yt1R3y4nOjWAaaTCsk1NuIoqB/gOMseoigt/HQVFDTvDAJ3IPmsF9sWfxi1V/\n\ + no aaa root\n!\nusername boxen role network-admin secret sha512 $6$1ex07TzYfKx23A9z$c02oeDxnr4J7HMgj0PcabYvACZfjdiu3zp4IAgjJQ51IBtkstpvOjm0FYbxSSBhsl.mytIr9Y4PaERp4MDXJM/\n\ !\ninterface Ethernet1\n speed forced 10000full\n no switchport\n ipv6\ \ enable\n ipv6 address auto-config\n ipv6 nd ra rx accept default-route\n\ !\ninterface Ethernet2\n speed forced 10000full\n no switchport\n ipv6\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[arista_eos-ssh2].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[arista_eos-ssh2].yaml index 73cc653..cb417ac 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[arista_eos-ssh2].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[arista_eos-ssh2].yaml @@ -2,7 +2,7 @@ localhost:24022:Ssh2Transport::0: connection_profile: host: localhost port: 24022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -13,13 +13,13 @@ localhost:24022:Ssh2Transport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nLast login: Tue Apr 27 19:54:35 2021 from 10.0.0.2\n\nlocalhost>" + - channel_output: "\nLast login: Sat May 29 17:04:27 2021 from 10.0.0.2\n\nlocalhost>" expected_channel_input: enable expected_channel_input_redacted: false - - channel_output: "\nenable" + - channel_output: "\nlocalhost>enable" expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nlocalhost>enable\nPassword: " + - channel_output: "\nPassword: " expected_channel_input: REDACTED expected_channel_input_redacted: true - channel_output: '' @@ -725,9 +725,9 @@ localhost:24022:Ssh2Transport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nlocalhost(config-s-scrapl)#" - expected_channel_input: enable secret sha512 $6$P1M9SV2bLTmQJpwW$KVoaaIa7i34uTFp7JRRp.hqL55nr7jSJJiDA.9CHTCW7q4GDIwyceMMSp6TavgYiAokjobyBYCO70L7FxpZon1 + expected_channel_input: enable secret sha512 $6$TVJ6KgdC0qsGkKfb$LjGGPd6W3S1iJQVQ.Vvo3Bca4Yt1R3y4nOjWAaaTCsk1NuIoqB/gOMseoigt/HQVFDTvDAJ3IPmsF9sWfxi1V/ expected_channel_input_redacted: false - - channel_output: enable secret sha512 $6$P1M9SV2bLTmQJpwW$KVoaaIa7i34uTFp7JRRp.hqL55nr7jSJJiDA.9CHTCW7q4GDIwyceMMSp6TavgYiAokjobyBYCO70L7FxpZon1 + - channel_output: enable secret sha512 $6$TVJ6KgdC0qsGkKfb$LjGGPd6W3S1iJQVQ.Vvo3Bca4Yt1R3y4nOjWAaaTCsk1NuIoqB/gOMseoigt/HQVFDTvDAJ3IPmsF9sWfxi1V/ expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nlocalhost(config-s-scrapl)#" @@ -743,9 +743,9 @@ localhost:24022:Ssh2Transport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nlocalhost(config-s-scrapl)#" - expected_channel_input: username vrnetlab role network-admin secret sha512 $6$8zrJ4ESW2fqG2QqH$9u768TvLXXDeUJmG2Std71EX1ip6q4MoJrMwDng1cmpuSYc9ECWytRjvXpMH7C3dzSdoEv0MxAUiAZeeTre3h. + expected_channel_input: username boxen role network-admin secret sha512 $6$1ex07TzYfKx23A9z$c02oeDxnr4J7HMgj0PcabYvACZfjdiu3zp4IAgjJQ51IBtkstpvOjm0FYbxSSBhsl.mytIr9Y4PaERp4MDXJM/ expected_channel_input_redacted: false - - channel_output: username vrnetlab role network-admin secret sha512 $6$8zrJ4ESW2fqG2QqH$9u768TvLXXDeUJmG2Std71EX1ip6q4MoJrMwDng1cmpuSYc9ECWytRjvXpMH7C3dzSdoEv0MxAUiAZeeTre3h. + - channel_output: username boxen role network-admin secret sha512 $6$1ex07TzYfKx23A9z$c02oeDxnr4J7HMgj0PcabYvACZfjdiu3zp4IAgjJQ51IBtkstpvOjm0FYbxSSBhsl.mytIr9Y4PaERp4MDXJM/ expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nlocalhost(config-s-scrapl)#" @@ -1718,8 +1718,7 @@ localhost:24022:Ssh2Transport::0: - channel_output: '' expected_channel_input: from a remote system or Zero Touch Provisioning is cancelled. expected_channel_input_redacted: false - - channel_output: "be fully functional until either a valid startup-config is\ - \ downloaded\nfrom a remote system or Zero Touch Provisioning is cancelled." + - channel_output: "\nfrom a remote system or Zero Touch Provisioning is cancelled." expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: '' @@ -1755,8 +1754,7 @@ localhost:24022:Ssh2Transport::0: - channel_output: '' expected_channel_input: EOF expected_channel_input_redacted: false - - channel_output: "Note: The device will reload when these commands are issued.\n\ - EOF" + - channel_output: "\nEOF" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nlocalhost(config-s-scrapl)#" @@ -1824,8 +1822,8 @@ localhost:24022:Ssh2Transport::0: \ level VMWAREVI errors\nlogging level VMWAREVS errors\nlogging level VRF\ \ errors\nlogging level VRRP errors\nlogging level VXLAN errors\nlogging level\ \ XMPP errors\nlogging level ZTP informational\n!\nspanning-tree mode mstp\n\ - !\nenable secret sha512 $6$P1M9SV2bLTmQJpwW$KVoaaIa7i34uTFp7JRRp.hqL55nr7jSJJiDA.9CHTCW7q4GDIwyceMMSp6TavgYiAokjobyBYCO70L7FxpZon1\n\ - no aaa root\n!\nusername vrnetlab role network-admin secret sha512 $6$8zrJ4ESW2fqG2QqH$9u768TvLXXDeUJmG2Std71EX1ip6q4MoJrMwDng1cmpuSYc9ECWytRjvXpMH7C3dzSdoEv0MxAUiAZeeTre3h.\n\ + !\nenable secret sha512 $6$TVJ6KgdC0qsGkKfb$LjGGPd6W3S1iJQVQ.Vvo3Bca4Yt1R3y4nOjWAaaTCsk1NuIoqB/gOMseoigt/HQVFDTvDAJ3IPmsF9sWfxi1V/\n\ + no aaa root\n!\nusername boxen role network-admin secret sha512 $6$1ex07TzYfKx23A9z$c02oeDxnr4J7HMgj0PcabYvACZfjdiu3zp4IAgjJQ51IBtkstpvOjm0FYbxSSBhsl.mytIr9Y4PaERp4MDXJM/\n\ !\ninterface Ethernet1\n speed forced 10000full\n no switchport\n ipv6\ \ enable\n ipv6 address auto-config\n ipv6 nd ra rx accept default-route\n\ !\ninterface Ethernet2\n speed forced 10000full\n no switchport\n ipv6\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[arista_eos-system].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[arista_eos-system].yaml index 59d2a2f..d4c41af 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[arista_eos-system].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[arista_eos-system].yaml @@ -2,7 +2,7 @@ localhost:24022:SystemTransport::0: connection_profile: host: localhost port: 24022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -24,7 +24,7 @@ localhost:24022:SystemTransport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nLast login: Tue Apr 27 19:49:18 2021 from 10.0.0.2\n\e[5nlocalhost>" + - channel_output: "\nLast login: Sat May 29 17:03:22 2021 from 10.0.0.2\nlocalhost>" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nlocalhost>" @@ -739,9 +739,9 @@ localhost:24022:SystemTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nlocalhost(config-s-scrapl)#" - expected_channel_input: enable secret sha512 $6$P1M9SV2bLTmQJpwW$KVoaaIa7i34uTFp7JRRp.hqL55nr7jSJJiDA.9CHTCW7q4GDIwyceMMSp6TavgYiAokjobyBYCO70L7FxpZon1 + expected_channel_input: enable secret sha512 $6$TVJ6KgdC0qsGkKfb$LjGGPd6W3S1iJQVQ.Vvo3Bca4Yt1R3y4nOjWAaaTCsk1NuIoqB/gOMseoigt/HQVFDTvDAJ3IPmsF9sWfxi1V/ expected_channel_input_redacted: false - - channel_output: enable secret sha512 $6$P1M9SV2bLTmQJpwW$KVoaaIa7i34uTFp7JRRp.hqL55nr7jSJJiDA.9CHTCW7q4GDIwyceMMSp6TavgYiAokjobyBYCO70L7FxpZon1 + - channel_output: enable secret sha512 $6$TVJ6KgdC0qsGkKfb$LjGGPd6W3S1iJQVQ.Vvo3Bca4Yt1R3y4nOjWAaaTCsk1NuIoqB/gOMseoigt/HQVFDTvDAJ3IPmsF9sWfxi1V/ expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nlocalhost(config-s-scrapl)#" @@ -757,9 +757,9 @@ localhost:24022:SystemTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nlocalhost(config-s-scrapl)#" - expected_channel_input: username vrnetlab role network-admin secret sha512 $6$8zrJ4ESW2fqG2QqH$9u768TvLXXDeUJmG2Std71EX1ip6q4MoJrMwDng1cmpuSYc9ECWytRjvXpMH7C3dzSdoEv0MxAUiAZeeTre3h. + expected_channel_input: username boxen role network-admin secret sha512 $6$1ex07TzYfKx23A9z$c02oeDxnr4J7HMgj0PcabYvACZfjdiu3zp4IAgjJQ51IBtkstpvOjm0FYbxSSBhsl.mytIr9Y4PaERp4MDXJM/ expected_channel_input_redacted: false - - channel_output: username vrnetlab role network-admin secret sha512 $6$8zrJ4ESW2fqG2QqH$9u768TvLXXDeUJmG2Std71EX1ip6q4MoJrMwDng1cmpuSYc9ECWytRjvXpMH7C3dzSdoEv0MxAUiAZeeTre3h. + - channel_output: username boxen role network-admin secret sha512 $6$1ex07TzYfKx23A9z$c02oeDxnr4J7HMgj0PcabYvACZfjdiu3zp4IAgjJQ51IBtkstpvOjm0FYbxSSBhsl.mytIr9Y4PaERp4MDXJM/ expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nlocalhost(config-s-scrapl)#" @@ -1717,8 +1717,8 @@ localhost:24022:SystemTransport::0: expected_channel_input: download the startup-config from a remote system. The device will not expected_channel_input_redacted: false - - channel_output: "\ndownload the startup-config from a remote system. The device\ - \ will not" + - channel_output: "The device is in Zero Touch Provisioning mode and is attempting\ + \ to\ndownload the startup-config from a remote system. The device will not" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: '' @@ -1739,44 +1739,44 @@ localhost:24022:SystemTransport::0: expected_channel_input: To cancel Zero Touch Provisioning, login as admin and type expected_channel_input_redacted: false - - channel_output: "\nTo cancel Zero Touch Provisioning, login as admin and type" + - channel_output: "be fully functional until either a valid startup-config is\ + \ downloaded\n\nTo cancel Zero Touch Provisioning, login as admin and type" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: '' expected_channel_input: "'zerotouch cancel' at the CLI. Alternatively, to disable\ \ Zero Touch" expected_channel_input_redacted: false - - channel_output: "The device is in Zero Touch Provisioning mode and is attempting\ - \ to\n\n'zerotouch cancel' at the CLI. Alternatively, to disable Zero Touch" + - channel_output: "\n'zerotouch cancel' at the CLI. Alternatively, to disable\ + \ Zero Touch" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: '' expected_channel_input: Provisioning permanently, type 'zerotouch disable' at the CLI. expected_channel_input_redacted: false - - channel_output: "download the startup-config from a remote system. The device\ - \ will not\n\nProvisioning permanently, type 'zerotouch disable' at the CLI." + - channel_output: "\nProvisioning permanently, type 'zerotouch disable' at the\ + \ CLI." expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: '' expected_channel_input: 'Note: The device will reload when these commands are issued.' expected_channel_input_redacted: false - - channel_output: "be fully functional until either a valid startup-config is\ - \ downloaded\n\nNote: The device will reload when these commands are issued." + - channel_output: "\nNote: The device will reload when these commands are issued." expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: '' expected_channel_input: EOF expected_channel_input_redacted: false - - channel_output: "\nEOF" + - channel_output: "from a remote system or Zero Touch Provisioning is cancelled.\n\ + To cancel Zero Touch Provisioning, login as admin and type\n\nEOF'zerotouch\ + \ cancel' at the CLI. Alternatively, to disable Zero Touch\n" expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nfrom a remote system or Zero Touch Provisioning is cancelled.\n\ - To cancel Zero Touch Provisioning, login as admin and type\n'zerotouch cancel'\ - \ at the CLI. Alternatively, to disable Zero Touch\nProvisioning permanently,\ - \ type 'zerotouch disable' at the CLI.\nNote: The device will reload when\ - \ these commands are issued.\nEOF\nlocalhost(config-s-scrapl)#" + - channel_output: "\nProvisioning permanently, type 'zerotouch disable' at the\ + \ CLI.\nNote: The device will reload when these commands are issued.\nEOF\n\ + localhost(config-s-scrapl)#" expected_channel_input: show session-config diffs expected_channel_input_redacted: false - channel_output: show session-config diffs @@ -1841,8 +1841,8 @@ localhost:24022:SystemTransport::0: \ level VMWAREVI errors\nlogging level VMWAREVS errors\nlogging level VRF\ \ errors\nlogging level VRRP errors\nlogging level VXLAN errors\nlogging level\ \ XMPP errors\nlogging level ZTP informational\n!\nspanning-tree mode mstp\n\ - !\nenable secret sha512 $6$P1M9SV2bLTmQJpwW$KVoaaIa7i34uTFp7JRRp.hqL55nr7jSJJiDA.9CHTCW7q4GDIwyceMMSp6TavgYiAokjobyBYCO70L7FxpZon1\n\ - no aaa root\n!\nusername vrnetlab role network-admin secret sha512 $6$8zrJ4ESW2fqG2QqH$9u768TvLXXDeUJmG2Std71EX1ip6q4MoJrMwDng1cmpuSYc9ECWytRjvXpMH7C3dzSdoEv0MxAUiAZeeTre3h.\n\ + !\nenable secret sha512 $6$TVJ6KgdC0qsGkKfb$LjGGPd6W3S1iJQVQ.Vvo3Bca4Yt1R3y4nOjWAaaTCsk1NuIoqB/gOMseoigt/HQVFDTvDAJ3IPmsF9sWfxi1V/\n\ + no aaa root\n!\nusername boxen role network-admin secret sha512 $6$1ex07TzYfKx23A9z$c02oeDxnr4J7HMgj0PcabYvACZfjdiu3zp4IAgjJQ51IBtkstpvOjm0FYbxSSBhsl.mytIr9Y4PaERp4MDXJM/\n\ !\ninterface Ethernet1\n speed forced 10000full\n no switchport\n ipv6\ \ enable\n ipv6 address auto-config\n ipv6 nd ra rx accept default-route\n\ !\ninterface Ethernet2\n speed forced 10000full\n no switchport\n ipv6\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[arista_eos-telnet].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[arista_eos-telnet].yaml index d75836e..a6b0680 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[arista_eos-telnet].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[arista_eos-telnet].yaml @@ -2,7 +2,7 @@ localhost:24023:TelnetTransport::0: connection_profile: host: localhost port: 24023 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -18,7 +18,7 @@ localhost:24023:TelnetTransport::0: \ at the CLI. Alternatively, to disable Zero Touch\nProvisioning permanently,\ \ type 'zerotouch disable' at the CLI.\nNote: The device will reload when\ \ these commands are issued.\nUsername: " - expected_channel_input: vrnetlab + expected_channel_input: boxen expected_channel_input_redacted: false - channel_output: '' expected_channel_input: "\n" @@ -29,7 +29,7 @@ localhost:24023:TelnetTransport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nLast login: Tue Apr 27 19:49:20 from 10.0.0.2\nlocalhost>" + - channel_output: "\nLast login: Sat May 29 17:04:37 from 10.0.0.2\nlocalhost>" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nlocalhost>" @@ -744,9 +744,9 @@ localhost:24023:TelnetTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nlocalhost(config-s-scrapl)#" - expected_channel_input: enable secret sha512 $6$P1M9SV2bLTmQJpwW$KVoaaIa7i34uTFp7JRRp.hqL55nr7jSJJiDA.9CHTCW7q4GDIwyceMMSp6TavgYiAokjobyBYCO70L7FxpZon1 + expected_channel_input: enable secret sha512 $6$TVJ6KgdC0qsGkKfb$LjGGPd6W3S1iJQVQ.Vvo3Bca4Yt1R3y4nOjWAaaTCsk1NuIoqB/gOMseoigt/HQVFDTvDAJ3IPmsF9sWfxi1V/ expected_channel_input_redacted: false - - channel_output: enable secret sha512 $6$P1M9SV2bLTmQJpwW$KVoaaIa7i34uTFp7JRRp.hqL55nr7jSJJiDA.9CHTCW7q4GDIwyceMMSp6TavgYiAokjobyBYCO70L7FxpZon1 + - channel_output: enable secret sha512 $6$TVJ6KgdC0qsGkKfb$LjGGPd6W3S1iJQVQ.Vvo3Bca4Yt1R3y4nOjWAaaTCsk1NuIoqB/gOMseoigt/HQVFDTvDAJ3IPmsF9sWfxi1V/ expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nlocalhost(config-s-scrapl)#" @@ -762,9 +762,9 @@ localhost:24023:TelnetTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nlocalhost(config-s-scrapl)#" - expected_channel_input: username vrnetlab role network-admin secret sha512 $6$8zrJ4ESW2fqG2QqH$9u768TvLXXDeUJmG2Std71EX1ip6q4MoJrMwDng1cmpuSYc9ECWytRjvXpMH7C3dzSdoEv0MxAUiAZeeTre3h. + expected_channel_input: username boxen role network-admin secret sha512 $6$1ex07TzYfKx23A9z$c02oeDxnr4J7HMgj0PcabYvACZfjdiu3zp4IAgjJQ51IBtkstpvOjm0FYbxSSBhsl.mytIr9Y4PaERp4MDXJM/ expected_channel_input_redacted: false - - channel_output: username vrnetlab role network-admin secret sha512 $6$8zrJ4ESW2fqG2QqH$9u768TvLXXDeUJmG2Std71EX1ip6q4MoJrMwDng1cmpuSYc9ECWytRjvXpMH7C3dzSdoEv0MxAUiAZeeTre3h. + - channel_output: username boxen role network-admin secret sha512 $6$1ex07TzYfKx23A9z$c02oeDxnr4J7HMgj0PcabYvACZfjdiu3zp4IAgjJQ51IBtkstpvOjm0FYbxSSBhsl.mytIr9Y4PaERp4MDXJM/ expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nlocalhost(config-s-scrapl)#" @@ -1715,40 +1715,36 @@ localhost:24023:TelnetTransport::0: attempting to expected_channel_input_redacted: false - channel_output: "\nThe device is in Zero Touch Provisioning mode and is attempting\ - \ to" + \ toThe device is in Zero Touch Provis" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: '' expected_channel_input: download the startup-config from a remote system. The device will not expected_channel_input_redacted: false - - channel_output: "The device is in Zero Touch Provisioning mode and is attempting\ - \ to\ndownload the startup-config from a remote system. The device will notdownload\ - \ the startup-config f" + - channel_output: "ioning mode and is attempting to\ndownload the startup-config\ + \ from a remote system. The device will not" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: '' expected_channel_input: be fully functional until either a valid startup-config is downloaded expected_channel_input_redacted: false - - channel_output: "rom a remote system. The device will not\nbe fully functional\ - \ until either a valid startup-config is downloadedbe fully functional until\ - \ eithe" + - channel_output: "\nbe fully functional until either a valid startup-config is\ + \ downloaded" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: '' expected_channel_input: from a remote system or Zero Touch Provisioning is cancelled. expected_channel_input_redacted: false - - channel_output: "r a valid startup-config is downloaded\nfrom a remote system\ - \ or Zero Touch Provisioning is cancelled." + - channel_output: "\nfrom a remote system or Zero Touch Provisioning is cancelled." expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: '' expected_channel_input: To cancel Zero Touch Provisioning, login as admin and type expected_channel_input_redacted: false - - channel_output: "from a remote system or Zero Touch Provisioning is cancelled.\n\ - To cancel Zero Touch Provisioning, login as admin and type" + - channel_output: "\nTo cancel Zero Touch Provisioning, login as admin and type" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: '' @@ -1763,8 +1759,8 @@ localhost:24023:TelnetTransport::0: expected_channel_input: Provisioning permanently, type 'zerotouch disable' at the CLI. expected_channel_input_redacted: false - - channel_output: "'zerotouch cancel' at the CLI. Alternatively, to disable Zero\ - \ Touch\nProvisioning permanently, type 'zerotouch disable' at the CLI." + - channel_output: "\nProvisioning permanently, type 'zerotouch disable' at the\ + \ CLI." expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: '' @@ -1777,8 +1773,7 @@ localhost:24023:TelnetTransport::0: - channel_output: '' expected_channel_input: EOF expected_channel_input_redacted: false - - channel_output: "Note: The device will reload when these commands are issued.\n\ - EOF" + - channel_output: "\nEOF" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nlocalhost(config-s-scrapl)#" @@ -1846,8 +1841,8 @@ localhost:24023:TelnetTransport::0: \ level VMWAREVI errors\nlogging level VMWAREVS errors\nlogging level VRF\ \ errors\nlogging level VRRP errors\nlogging level VXLAN errors\nlogging level\ \ XMPP errors\nlogging level ZTP informational\n!\nspanning-tree mode mstp\n\ - !\nenable secret sha512 $6$P1M9SV2bLTmQJpwW$KVoaaIa7i34uTFp7JRRp.hqL55nr7jSJJiDA.9CHTCW7q4GDIwyceMMSp6TavgYiAokjobyBYCO70L7FxpZon1\n\ - no aaa root\n!\nusername vrnetlab role network-admin secret sha512 $6$8zrJ4ESW2fqG2QqH$9u768TvLXXDeUJmG2Std71EX1ip6q4MoJrMwDng1cmpuSYc9ECWytRjvXpMH7C3dzSdoEv0MxAUiAZeeTre3h.\n\ + !\nenable secret sha512 $6$TVJ6KgdC0qsGkKfb$LjGGPd6W3S1iJQVQ.Vvo3Bca4Yt1R3y4nOjWAaaTCsk1NuIoqB/gOMseoigt/HQVFDTvDAJ3IPmsF9sWfxi1V/\n\ + no aaa root\n!\nusername boxen role network-admin secret sha512 $6$1ex07TzYfKx23A9z$c02oeDxnr4J7HMgj0PcabYvACZfjdiu3zp4IAgjJQ51IBtkstpvOjm0FYbxSSBhsl.mytIr9Y4PaERp4MDXJM/\n\ !\ninterface Ethernet1\n speed forced 10000full\n no switchport\n ipv6\ \ enable\n ipv6 address auto-config\n ipv6 nd ra rx accept default-route\n\ !\ninterface Ethernet2\n speed forced 10000full\n no switchport\n ipv6\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_iosxe-paramiko].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_iosxe-paramiko].yaml index 20c1258..ce25b3d 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_iosxe-paramiko].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_iosxe-paramiko].yaml @@ -2,7 +2,7 @@ localhost:21022:ParamikoTransport::0: connection_profile: host: localhost port: 21022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -42,7 +42,7 @@ localhost:21022:ParamikoTransport::0: - channel_output: 'dir flash: | i bytes' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n6286540800 bytes total (5484552192 bytes free)\ncsr1000v#" + - channel_output: "\n6286540800 bytes total (5488705536 bytes free)\ncsr1000v#" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\ncsr1000v#" @@ -146,9 +146,9 @@ localhost:21022:ParamikoTransport::0: expected_channel_input: "\r" expected_channel_input_redacted: false - channel_output: "\n+>" - expected_channel_input: enable secret 9 $9$h6Ayg86tb/EImk$2T6Ns.ke08cAlZ2TbMf3YRCYr7ngDGzgAxZB0YMe7lQ + expected_channel_input: enable secret 9 $9$xvWnx8Fe35f8xE$E9ijp7GM/V48P5y1Uz3IEPtotXgwkJKYJmN0q3q2E92 expected_channel_input_redacted: false - - channel_output: enable secret 9 $9$h6Ayg86tb/EImk$2T6Ns.ke08cAlZ2TbMf3YRCYr7ngDGzgAxZB0YMe7lQ + - channel_output: enable secret 9 $9$xvWnx8Fe35f8xE$E9ijp7GM/V48P5y1Uz3IEPtotXgwkJKYJmN0q3q2E92 expected_channel_input: "\r" expected_channel_input_redacted: false - channel_output: "\n+>" @@ -793,9 +793,9 @@ localhost:21022:ParamikoTransport::0: expected_channel_input: "\r" expected_channel_input_redacted: false - channel_output: "\n+>" - expected_channel_input: username vrnetlab privilege 15 password 0 VR-netlab9 + expected_channel_input: username boxen privilege 15 password 0 b0x3N-b0x3N expected_channel_input_redacted: false - - channel_output: username vrnetlab privilege 15 password 0 VR-netlab9 + - channel_output: username boxen privilege 15 password 0 b0x3N-b0x3N expected_channel_input: "\r" expected_channel_input_redacted: false - channel_output: "\n+>" @@ -1411,9 +1411,9 @@ localhost:21022:ParamikoTransport::0: expected_channel_input: "\r" expected_channel_input_redacted: false - channel_output: "\n+>" - expected_channel_input: ' username vrnetlab' + expected_channel_input: ' username boxen' expected_channel_input_redacted: false - - channel_output: ' username vrnetlab' + - channel_output: ' username boxen' expected_channel_input: "\r" expected_channel_input_redacted: false - channel_output: "\n+>" @@ -1639,19 +1639,20 @@ localhost:21022:ParamikoTransport::0: - channel_output: show archive config differences system:running-config flash:__SCRAPLI_CFG_SESSION_NAME__ expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n!Contextual Config Diffs:\n!No changes were found\n\ncsr1000v#" + - channel_output: "\n!Contextual Config Diffs:\n+license udi pid CSR1000V sn 9MVVU09YZFH\n\ + -license udi pid CSR1000V sn 9IB2R42M6QG\n\ncsr1000v#" expected_channel_input: show running-config expected_channel_input_redacted: false - channel_output: show running-config expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nBuilding configuration...\n\nCurrent configuration : 4826\ - \ bytes\n!\n! Last configuration change at 19:49:38 UTC Tue Apr 27 2021 by\ - \ vrnetlab\n!\nversion 16.12\nservice timestamps debug datetime msec\nservice\ + - channel_output: "\nBuilding configuration...\n\nCurrent configuration : 4818\ + \ bytes\n!\n! Last configuration change at 13:22:44 UTC Sat May 29 2021 by\ + \ boxen\n!\nversion 16.12\nservice timestamps debug datetime msec\nservice\ \ timestamps log datetime msec\nservice call-home\nplatform qfp utilization\ \ monitor load 80\nplatform punt-keepalive disable-kernel-core\nplatform console\ \ serial\n!\nhostname csr1000v\n!\nboot-start-marker\nboot-end-marker\n!\n\ - !\nenable secret 9 $9$h6Ayg86tb/EImk$2T6Ns.ke08cAlZ2TbMf3YRCYr7ngDGzgAxZB0YMe7lQ\n\ + !\nenable secret 9 $9$xvWnx8Fe35f8xE$E9ijp7GM/V48P5y1Uz3IEPtotXgwkJKYJmN0q3q2E92\n\ !\nno aaa new-model\ncall-home\n ! If contact email address in call-home is\ \ configured as sch-smart-licensing@cisco.com\n ! the email address configured\ \ in Cisco Smart License Portal will be used as contact email address to send\ @@ -1688,11 +1689,11 @@ localhost:21022:ParamikoTransport::0: \ F3A58BE1 1A48A229 C37C1E69 39F08678 \n 80DDCD16 D6BACECA EEBC7CF9 8428787B\ \ 35202CDC 60E4616A B623CDBD 230E3AFB \n 418616A9 4093E049 4D10AB75 27E86F73\ \ 932E35B5 8862FDAE 0275156F 719BB2F0 \n D697DF7F 28\n \tquit\n!\nlicense\ - \ udi pid CSR1000V sn 9MVVU09YZFH\ndiagnostic bootup level minimal\narchive\n\ + \ udi pid CSR1000V sn 9IB2R42M6QG\ndiagnostic bootup level minimal\narchive\n\ \ log config\n logging enable\n path bootflash:\nmemory free low-watermark\ - \ processor 72329\n!\n!\nspanning-tree extend system-id\n!\nusername vrnetlab\ - \ privilege 15 password 0 VR-netlab9\n!\nredundancy\n!\n!\n!\n!\n!\n!\n! \n\ - !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n! \n! \n!\n!\ninterface GigabitEthernet1\n\ + \ processor 72329\n!\n!\nspanning-tree extend system-id\n!\nusername boxen\ + \ privilege 15 password 0 b0x3N-b0x3N\n!\nredundancy\n!\n!\n!\n!\n!\n!\n!\ + \ \n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n! \n! \n!\n!\ninterface GigabitEthernet1\n\ \ ip address 10.0.0.15 255.255.255.0\n negotiation auto\n no mop enabled\n\ \ no mop sysid\n!\ninterface GigabitEthernet2\n no ip address\n shutdown\n\ \ negotiation auto\n no mop enabled\n no mop sysid\n!\ninterface GigabitEthernet3\n\ @@ -1709,11 +1710,11 @@ localhost:21022:ParamikoTransport::0: \ GigabitEthernet10\n no ip address\n shutdown\n negotiation auto\n no mop\ \ enabled\n no mop sysid\n!\n!\nvirtual-service csr_mgmt\n!\nip forward-protocol\ \ nd\nno ip http server\nno ip http secure-server\n!\nip ssh pubkey-chain\n\ - \ username vrnetlab\n key-hash ssh-rsa 5CC74A68B18B026A1709FB09D1F44E2F\ - \ \nip scp server enable\n!\n!\n!\n!\n!\n!\n!\ncontrol-plane\n!\n!\n!\n!\n\ - !\n!\nline con 0\n stopbits 1\nline vty 0 4\n login local\n transport input\ - \ all\nline vty 5 15\n login local\n transport input all\n!\nnetconf ssh\n\ - !\n!\n!\n!\n!\nnetconf-yang\nend\n\ncsr1000v#" + \ username boxen\n key-hash ssh-rsa 5CC74A68B18B026A1709FB09D1F44E2F \n\ + ip scp server enable\n!\n!\n!\n!\n!\n!\n!\ncontrol-plane\n!\n!\n!\n!\n!\n\ + !\nline con 0\n stopbits 1\nline vty 0 4\n login local\n transport input all\n\ + line vty 5 15\n login local\n transport input all\n!\nnetconf ssh\n!\n!\n\ + !\n!\n!\nnetconf-yang\nend\n\ncsr1000v#" expected_channel_input: show run | i file prompt expected_channel_input_redacted: false - channel_output: show run | i file prompt @@ -1726,7 +1727,11 @@ localhost:21022:ParamikoTransport::0: - channel_output: configure replace flash:__SCRAPLI_CFG_SESSION_NAME__ force expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTotal number of passes: 0\nRollback Done\n\ncsr1000v#" + - channel_output: "\nThe rollback configlet from the last pass is listed below:\n\ + ********\n!List of Rollback Commands:\nno license udi pid CSR1000V sn 9IB2R42M6QG\n\ + license udi pid CSR1000V sn 9MVVU09YZFH\nend\n********\n\n\nRollback aborted\ + \ after 5 passes\nThe following commands are failed to apply to the IOS image.\n\ + ********\nlicense udi pid CSR1000V sn 9MVVU09YZFH\n********\n\n\ncsr1000v#" expected_channel_input: show run | i file prompt expected_channel_input_redacted: false - channel_output: show run | i file prompt diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_iosxe-ssh2].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_iosxe-ssh2].yaml index 0487cf8..72a02eb 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_iosxe-ssh2].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_iosxe-ssh2].yaml @@ -2,7 +2,7 @@ localhost:21022:Ssh2Transport::0: connection_profile: host: localhost port: 21022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -42,7 +42,7 @@ localhost:21022:Ssh2Transport::0: - channel_output: 'dir flash: | i bytes' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n6286540800 bytes total (5484552192 bytes free)\ncsr1000v#" + - channel_output: "\n6286540800 bytes total (5488705536 bytes free)\ncsr1000v#" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\ncsr1000v#" @@ -146,9 +146,9 @@ localhost:21022:Ssh2Transport::0: expected_channel_input: "\r" expected_channel_input_redacted: false - channel_output: "\n+>" - expected_channel_input: enable secret 9 $9$h6Ayg86tb/EImk$2T6Ns.ke08cAlZ2TbMf3YRCYr7ngDGzgAxZB0YMe7lQ + expected_channel_input: enable secret 9 $9$xvWnx8Fe35f8xE$E9ijp7GM/V48P5y1Uz3IEPtotXgwkJKYJmN0q3q2E92 expected_channel_input_redacted: false - - channel_output: enable secret 9 $9$h6Ayg86tb/EImk$2T6Ns.ke08cAlZ2TbMf3YRCYr7ngDGzgAxZB0YMe7lQ + - channel_output: enable secret 9 $9$xvWnx8Fe35f8xE$E9ijp7GM/V48P5y1Uz3IEPtotXgwkJKYJmN0q3q2E92 expected_channel_input: "\r" expected_channel_input_redacted: false - channel_output: "\n+>" @@ -793,9 +793,9 @@ localhost:21022:Ssh2Transport::0: expected_channel_input: "\r" expected_channel_input_redacted: false - channel_output: "\n+>" - expected_channel_input: username vrnetlab privilege 15 password 0 VR-netlab9 + expected_channel_input: username boxen privilege 15 password 0 b0x3N-b0x3N expected_channel_input_redacted: false - - channel_output: username vrnetlab privilege 15 password 0 VR-netlab9 + - channel_output: username boxen privilege 15 password 0 b0x3N-b0x3N expected_channel_input: "\r" expected_channel_input_redacted: false - channel_output: "\n+>" @@ -1411,9 +1411,9 @@ localhost:21022:Ssh2Transport::0: expected_channel_input: "\r" expected_channel_input_redacted: false - channel_output: "\n+>" - expected_channel_input: ' username vrnetlab' + expected_channel_input: ' username boxen' expected_channel_input_redacted: false - - channel_output: ' username vrnetlab' + - channel_output: ' username boxen' expected_channel_input: "\r" expected_channel_input_redacted: false - channel_output: "\n+>" @@ -1639,19 +1639,20 @@ localhost:21022:Ssh2Transport::0: - channel_output: show archive config differences system:running-config flash:__SCRAPLI_CFG_SESSION_NAME__ expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n!Contextual Config Diffs:\n!No changes were found\n\ncsr1000v#" + - channel_output: "\n!Contextual Config Diffs:\n+license udi pid CSR1000V sn 9MVVU09YZFH\n\ + -license udi pid CSR1000V sn 9IB2R42M6QG\n\ncsr1000v#" expected_channel_input: show running-config expected_channel_input_redacted: false - channel_output: show running-config expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nBuilding configuration...\n\nCurrent configuration : 4826\ - \ bytes\n!\n! Last configuration change at 19:49:38 UTC Tue Apr 27 2021 by\ - \ vrnetlab\n!\nversion 16.12\nservice timestamps debug datetime msec\nservice\ + - channel_output: "\nBuilding configuration...\n\nCurrent configuration : 4818\ + \ bytes\n!\n! Last configuration change at 13:22:36 UTC Sat May 29 2021 by\ + \ boxen\n!\nversion 16.12\nservice timestamps debug datetime msec\nservice\ \ timestamps log datetime msec\nservice call-home\nplatform qfp utilization\ \ monitor load 80\nplatform punt-keepalive disable-kernel-core\nplatform console\ \ serial\n!\nhostname csr1000v\n!\nboot-start-marker\nboot-end-marker\n!\n\ - !\nenable secret 9 $9$h6Ayg86tb/EImk$2T6Ns.ke08cAlZ2TbMf3YRCYr7ngDGzgAxZB0YMe7lQ\n\ + !\nenable secret 9 $9$xvWnx8Fe35f8xE$E9ijp7GM/V48P5y1Uz3IEPtotXgwkJKYJmN0q3q2E92\n\ !\nno aaa new-model\ncall-home\n ! If contact email address in call-home is\ \ configured as sch-smart-licensing@cisco.com\n ! the email address configured\ \ in Cisco Smart License Portal will be used as contact email address to send\ @@ -1688,11 +1689,11 @@ localhost:21022:Ssh2Transport::0: \ F3A58BE1 1A48A229 C37C1E69 39F08678 \n 80DDCD16 D6BACECA EEBC7CF9 8428787B\ \ 35202CDC 60E4616A B623CDBD 230E3AFB \n 418616A9 4093E049 4D10AB75 27E86F73\ \ 932E35B5 8862FDAE 0275156F 719BB2F0 \n D697DF7F 28\n \tquit\n!\nlicense\ - \ udi pid CSR1000V sn 9MVVU09YZFH\ndiagnostic bootup level minimal\narchive\n\ + \ udi pid CSR1000V sn 9IB2R42M6QG\ndiagnostic bootup level minimal\narchive\n\ \ log config\n logging enable\n path bootflash:\nmemory free low-watermark\ - \ processor 72329\n!\n!\nspanning-tree extend system-id\n!\nusername vrnetlab\ - \ privilege 15 password 0 VR-netlab9\n!\nredundancy\n!\n!\n!\n!\n!\n!\n! \n\ - !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n! \n! \n!\n!\ninterface GigabitEthernet1\n\ + \ processor 72329\n!\n!\nspanning-tree extend system-id\n!\nusername boxen\ + \ privilege 15 password 0 b0x3N-b0x3N\n!\nredundancy\n!\n!\n!\n!\n!\n!\n!\ + \ \n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n! \n! \n!\n!\ninterface GigabitEthernet1\n\ \ ip address 10.0.0.15 255.255.255.0\n negotiation auto\n no mop enabled\n\ \ no mop sysid\n!\ninterface GigabitEthernet2\n no ip address\n shutdown\n\ \ negotiation auto\n no mop enabled\n no mop sysid\n!\ninterface GigabitEthernet3\n\ @@ -1709,11 +1710,11 @@ localhost:21022:Ssh2Transport::0: \ GigabitEthernet10\n no ip address\n shutdown\n negotiation auto\n no mop\ \ enabled\n no mop sysid\n!\n!\nvirtual-service csr_mgmt\n!\nip forward-protocol\ \ nd\nno ip http server\nno ip http secure-server\n!\nip ssh pubkey-chain\n\ - \ username vrnetlab\n key-hash ssh-rsa 5CC74A68B18B026A1709FB09D1F44E2F\ - \ \nip scp server enable\n!\n!\n!\n!\n!\n!\n!\ncontrol-plane\n!\n!\n!\n!\n\ - !\n!\nline con 0\n stopbits 1\nline vty 0 4\n login local\n transport input\ - \ all\nline vty 5 15\n login local\n transport input all\n!\nnetconf ssh\n\ - !\n!\n!\n!\n!\nnetconf-yang\nend\n\ncsr1000v#" + \ username boxen\n key-hash ssh-rsa 5CC74A68B18B026A1709FB09D1F44E2F \n\ + ip scp server enable\n!\n!\n!\n!\n!\n!\n!\ncontrol-plane\n!\n!\n!\n!\n!\n\ + !\nline con 0\n stopbits 1\nline vty 0 4\n login local\n transport input all\n\ + line vty 5 15\n login local\n transport input all\n!\nnetconf ssh\n!\n!\n\ + !\n!\n!\nnetconf-yang\nend\n\ncsr1000v#" expected_channel_input: show run | i file prompt expected_channel_input_redacted: false - channel_output: show run | i file prompt @@ -1726,7 +1727,11 @@ localhost:21022:Ssh2Transport::0: - channel_output: configure replace flash:__SCRAPLI_CFG_SESSION_NAME__ force expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTotal number of passes: 0\nRollback Done\n\ncsr1000v#" + - channel_output: "\nThe rollback configlet from the last pass is listed below:\n\ + ********\n!List of Rollback Commands:\nno license udi pid CSR1000V sn 9IB2R42M6QG\n\ + license udi pid CSR1000V sn 9MVVU09YZFH\nend\n********\n\n\nRollback aborted\ + \ after 5 passes\nThe following commands are failed to apply to the IOS image.\n\ + ********\nlicense udi pid CSR1000V sn 9MVVU09YZFH\n********\n\n\ncsr1000v#" expected_channel_input: show run | i file prompt expected_channel_input_redacted: false - channel_output: show run | i file prompt diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_iosxe-system].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_iosxe-system].yaml index b8a60e6..b55ca34 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_iosxe-system].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_iosxe-system].yaml @@ -2,7 +2,7 @@ localhost:21022:SystemTransport::0: connection_profile: host: localhost port: 21022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -49,7 +49,7 @@ localhost:21022:SystemTransport::0: - channel_output: 'dir flash: | i bytes' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n6286540800 bytes total (5484630016 bytes free)\ncsr1000v#" + - channel_output: "\n6286540800 bytes total (5488705536 bytes free)\ncsr1000v#" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\ncsr1000v#" @@ -153,9 +153,9 @@ localhost:21022:SystemTransport::0: expected_channel_input: "\r" expected_channel_input_redacted: false - channel_output: "\n+>" - expected_channel_input: enable secret 9 $9$h6Ayg86tb/EImk$2T6Ns.ke08cAlZ2TbMf3YRCYr7ngDGzgAxZB0YMe7lQ + expected_channel_input: enable secret 9 $9$xvWnx8Fe35f8xE$E9ijp7GM/V48P5y1Uz3IEPtotXgwkJKYJmN0q3q2E92 expected_channel_input_redacted: false - - channel_output: enable secret 9 $9$h6Ayg86tb/EImk$2T6Ns.ke08cAlZ2TbMf3YRCYr7ngDGzgAxZB0YMe7lQ + - channel_output: enable secret 9 $9$xvWnx8Fe35f8xE$E9ijp7GM/V48P5y1Uz3IEPtotXgwkJKYJmN0q3q2E92 expected_channel_input: "\r" expected_channel_input_redacted: false - channel_output: "\n+>" @@ -800,9 +800,9 @@ localhost:21022:SystemTransport::0: expected_channel_input: "\r" expected_channel_input_redacted: false - channel_output: "\n+>" - expected_channel_input: username vrnetlab privilege 15 password 0 VR-netlab9 + expected_channel_input: username boxen privilege 15 password 0 b0x3N-b0x3N expected_channel_input_redacted: false - - channel_output: username vrnetlab privilege 15 password 0 VR-netlab9 + - channel_output: username boxen privilege 15 password 0 b0x3N-b0x3N expected_channel_input: "\r" expected_channel_input_redacted: false - channel_output: "\n+>" @@ -1418,9 +1418,9 @@ localhost:21022:SystemTransport::0: expected_channel_input: "\r" expected_channel_input_redacted: false - channel_output: "\n+>" - expected_channel_input: ' username vrnetlab' + expected_channel_input: ' username boxen' expected_channel_input_redacted: false - - channel_output: ' username vrnetlab' + - channel_output: ' username boxen' expected_channel_input: "\r" expected_channel_input_redacted: false - channel_output: "\n+>" @@ -1646,48 +1646,50 @@ localhost:21022:SystemTransport::0: - channel_output: show archive config differences system:running-config flash:__SCRAPLI_CFG_SESSION_NAME__ expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n!Contextual Config Diffs:\n-crypto pki trustpoint TP-self-signed-422690288\n\ - \ -enrollment selfsigned\n -subject-name cn=IOS-Self-Signed-Certificate-422690288\n\ - \ -revocation-check none\n -rsakeypair TP-self-signed-422690288\n-crypto pki\ - \ certificate chain TP-self-signed-422690288\n -certificate self-signed 01\n\ - \ -3082032E 30820216 A0030201 02020101 300D0609 2A864886 F70D0101 05050030\n\ - \ -30312E30 2C060355 04031325 494F532D 53656C66 2D536967 6E65642D 43657274\n\ - \ -69666963 6174652D 34323236 39303238 38301E17 0D323130 34323431 34343633\n\ - \ -325A170D 33303031 30313030 30303030 5A303031 2E302C06 03550403 1325494F\n\ - \ -532D5365 6C662D53 69676E65 642D4365 72746966 69636174 652D3432 32363930\n\ - \ -32383830 82012230 0D06092A 864886F7 0D010101 05000382 010F0030 82010A02\n\ - \ -82010100 C27FD6F3 1166295D F49633D3 51450DE6 F9BFCF2F 7D3AACC7 3B5ED6B2\n\ - \ -3F68308B 39990E36 EBD37E75 A4BEC830 3B2A690B 13830C49 2B25D19A E2B96F77\n\ - \ -BE553C56 EED3B3BB 6584D3BB B1765477 02E693D1 C2316AE4 4EE23F38 E346D59F\n\ - \ -D7949E95 C48D9020 FD03136D 57FA5A92 9B8A57CE D455621E A72B3D2C AAD3EB8B\n\ - \ -65CF62D5 C18B005B CA85EAB2 60DAE050 866B4C85 BDBEF084 0AA4560F C19B8AA5\n\ - \ -287090B9 6B035146 F42C3A94 F2EE4DD5 5A81EEC1 704D5584 77ADDBA7 4DF33581\n\ - \ -CABC4B99 B0FB35E9 25DF1AB1 C898CD50 C859B551 EEEF4A3B 703351E7 8094547B\n\ - \ -DB6AC6AC 066D8AAD 96AAF404 336424BB 07876BDD 56B0DEBA 4CE59AEF 58F9E6EF\n\ - \ -3F1B3887 02030100 01A35330 51300F06 03551D13 0101FF04 05300301 01FF301F\n\ - \ -0603551D 23041830 16801452 75C9AA75 B92C6980 AFFF95F7 015BA9DB CF56EF30\n\ - \ -1D060355 1D0E0416 04145275 C9AA75B9 2C6980AF FF95F701 5BA9DBCF 56EF300D\n\ - \ -06092A86 4886F70D 01010505 00038201 01007990 FB8C5182 74A472E9 F8933726\n\ - \ -0AAAE421 58EC4C5E DD15BAAE 5E95D5D3 12FE143C 8A80F8FF F4512402 DE2D1091\n\ - \ -F0928C73 ACB88E28 4DADB7CD E5876DE4 FCE7E1C1 EB465801 9592F6C0 06501F1F\n\ - \ -03118D27 7F80C6C0 4C4C3CFC 67FABA0D 65C9E228 B4F43ED9 FAE62872 FFBCC72F\n\ - \ -25635208 12E436D4 7F27BA6E 151EE76A 560AC6D4 B9983DF4 85D990E7 42A83E9B\n\ - \ -CDB0E802 4D2B1C3B A091CC70 F2878CAF 1222B9D6 9FA625F0 B4426FAF 75C0B1DE\n\ - \ -16B3C323 0E1B1D98 9B35DCCD 43A6CA7B C59AF71E FE525B64 F921D394 5CD3E67B\n\ - \ -3E808F51 6B93BF9A 28BD9F50 E0C6AB58 4266EA8C 38893595 BAE03E69 838973C2\n\ - \ -928F6137 2DCA8AB4 530DB0E8 57A12266 A50C\n -\tquit\n\ncsr1000v#" + - channel_output: "\n!Contextual Config Diffs:\n+license udi pid CSR1000V sn 9MVVU09YZFH\n\ + -crypto pki trustpoint TP-self-signed-971124804\n -enrollment selfsigned\n\ + \ -subject-name cn=IOS-Self-Signed-Certificate-971124804\n -revocation-check\ + \ none\n -rsakeypair TP-self-signed-971124804\n-crypto pki certificate chain\ + \ TP-self-signed-971124804\n -certificate self-signed 01\n -3082032E 30820216\ + \ A0030201 02020101 300D0609 2A864886 F70D0101 05050030\n -30312E30 2C060355\ + \ 04031325 494F532D 53656C66 2D536967 6E65642D 43657274\n -69666963 6174652D\ + \ 39373131 32343830 34301E17 0D323130 35323831 39323031\n -315A170D 33303031\ + \ 30313030 30303030 5A303031 2E302C06 03550403 1325494F\n -532D5365 6C662D53\ + \ 69676E65 642D4365 72746966 69636174 652D3937 31313234\n -38303430 82012230\ + \ 0D06092A 864886F7 0D010101 05000382 010F0030 82010A02\n -82010100 9A5AFB47\ + \ FBB29463 C3B0E15E 881CAD52 5C652FC8 498B8FE2 BD025CA6\n -9E98FB34 036B5B87\ + \ DC88A835 3B3A40DE 84ED8365 7CDA56F0 80630520 CCCE14A6\n -9512C259 8D1E30E9\ + \ 446A45EF 72464059 C0AB9279 F11AC3F6 71DFC173 95B99AE4\n -3E4E32C6 00584C6C\ + \ 7CE8A0FB 2DAEAC90 14516A4B C8B28D8C 444E9DDA 831DA497\n -735818E4 5D7253C5\ + \ 0FEE261A 0B9E9014 49AAAD3E E44AF3B1 351A19DC 7B78BE07\n -D452B6CC 4032AC79\ + \ 33D3EC32 178FA55D B4F30EF6 B4AFF847 FB1677B6 A8969B6A\n -AB7D7019 4436A67B\ + \ 98CC2808 62136E03 CE3CBE98 D32EF392 85406D04 7CAF3BE7\n -C2E34EAC 5F69E38A\ + \ 6CC4E8B9 A00B76EC 79577B9B E5BBAA35 37D6B900 79D5EC0F\n -5837E09B 02030100\ + \ 01A35330 51300F06 03551D13 0101FF04 05300301 01FF301F\n -0603551D 23041830\ + \ 1680143A A780D0ED 95DFA1D7 42E88EBC DFCAA823 CFB03D30\n -1D060355 1D0E0416\ + \ 04143AA7 80D0ED95 DFA1D742 E88EBCDF CAA823CF B03D300D\n -06092A86 4886F70D\ + \ 01010505 00038201 010026D4 17358B20 82C17EC6 33F7ED1D\n -8F6A52D0 67A557A0\ + \ 46461293 D77EE377 1DB715B4 97C4C112 3FE955A9 99D17602\n -AA6F0DC8 A17F55D1\ + \ DDD335BF 4296E3C7 30974AA6 A260D83C EF127FE8 33ABF964\n -C45FF04C 9E271FD8\ + \ B6F4986F F2AA4ED9 AA940143 45F7B6BD 0973946F 35F66CBF\n -5A7916D3 AC478064\ + \ 7C69FE20 C57F7538 4AD5CF79 671270D0 4F779ABE D62485C4\n -8979887C 79AA9B8C\ + \ C6A6036C E2AA78E2 4D4331FC 9C5F5BF8 78E6D796 31697E35\n -54C0AA53 E52EECD8\ + \ 8ECF24E7 8A01A8D9 C33D8353 D9C34F93 CF41336A 02CD7F15\n -22C3BF05 23579F26\ + \ EFF63502 3ED320ED 67E61168 9E25D8F0 B0FB882C 81E111FD\n -FC38A6E7 2DC02DC7\ + \ 4DE9C66E 617E07DA 883A\n -\tquit\n-license udi pid CSR1000V sn 9IB2R42M6QG\n\ + \ncsr1000v#" expected_channel_input: show running-config expected_channel_input_redacted: false - channel_output: show running-config expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nBuilding configuration...\n\nCurrent configuration : 7021\ - \ bytes\n!\n! Last configuration change at 19:33:06 UTC Tue Apr 27 2021 by\ - \ vrnetlab\n!\nversion 16.12\nservice timestamps debug datetime msec\nservice\ + - channel_output: "\nBuilding configuration...\n\nCurrent configuration : 7013\ + \ bytes\n!\n! Last configuration change at 12:44:10 UTC Sat May 29 2021 by\ + \ boxen\n!\nversion 16.12\nservice timestamps debug datetime msec\nservice\ \ timestamps log datetime msec\nservice call-home\nplatform qfp utilization\ \ monitor load 80\nplatform punt-keepalive disable-kernel-core\nplatform console\ \ serial\n!\nhostname csr1000v\n!\nboot-start-marker\nboot-end-marker\n!\n\ - !\nenable secret 9 $9$h6Ayg86tb/EImk$2T6Ns.ke08cAlZ2TbMf3YRCYr7ngDGzgAxZB0YMe7lQ\n\ + !\nenable secret 9 $9$xvWnx8Fe35f8xE$E9ijp7GM/V48P5y1Uz3IEPtotXgwkJKYJmN0q3q2E92\n\ !\nno aaa new-model\ncall-home\n ! If contact email address in call-home is\ \ configured as sch-smart-licensing@cisco.com\n ! the email address configured\ \ in Cisco Smart License Portal will be used as contact email address to send\ @@ -1696,68 +1698,68 @@ localhost:21022:SystemTransport::0: \ no destination transport-method email\n!\n!\n!\n!\n!\n!\n!\nip domain name\ \ example.com\n!\n!\n!\nlogin on-success log\n!\n!\n!\n!\n!\n!\n!\nsubscriber\ \ templating\n! \n! \n! \n! \n!\n!\nmultilink bundle-name authenticated\n\ - !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\ncrypto pki trustpoint SLA-TrustPoint\n\ - \ enrollment pkcs12\n revocation-check crl\n!\ncrypto pki trustpoint TP-self-signed-422690288\n\ - \ enrollment selfsigned\n subject-name cn=IOS-Self-Signed-Certificate-422690288\n\ - \ revocation-check none\n rsakeypair TP-self-signed-422690288\n!\n!\ncrypto\ - \ pki certificate chain SLA-TrustPoint\n certificate ca 01\n 30820321 30820209\ - \ A0030201 02020101 300D0609 2A864886 F70D0101 0B050030 \n 32310E30 0C060355\ - \ 040A1305 43697363 6F312030 1E060355 04031317 43697363 \n 6F204C69 63656E73\ - \ 696E6720 526F6F74 20434130 1E170D31 33303533 30313934 \n 3834375A 170D3338\ - \ 30353330 31393438 34375A30 32310E30 0C060355 040A1305 \n 43697363 6F312030\ - \ 1E060355 04031317 43697363 6F204C69 63656E73 696E6720 \n 526F6F74 20434130\ - \ 82012230 0D06092A 864886F7 0D010101 05000382 010F0030 \n 82010A02 82010100\ - \ A6BCBD96 131E05F7 145EA72C 2CD686E6 17222EA1 F1EFF64D \n CBB4C798 212AA147\ - \ C655D8D7 9471380D 8711441E 1AAF071A 9CAE6388 8A38E520 \n 1C394D78 462EF239\ - \ C659F715 B98C0A59 5BBB5CBD 0CFEBEA3 700A8BF7 D8F256EE \n 4AA4E80D DB6FD1C9\ - \ 60B1FD18 FFC69C96 6FA68957 A2617DE7 104FDC5F EA2956AC \n 7390A3EB 2B5436AD\ - \ C847A2C5 DAB553EB 69A9A535 58E9F3E3 C0BD23CF 58BD7188 \n 68E69491 20F320E7\ - \ 948E71D7 AE3BCC84 F10684C7 4BC8E00F 539BA42B 42C68BB7 \n C7479096 B4CB2D62\ - \ EA2F505D C7B062A4 6811D95B E8250FC4 5D5D5FB8 8F27D191 \n C55F0D76 61F9A4CD\ - \ 3D992327 A8BB03BD 4E6D7069 7CBADF8B DF5F4368 95135E44 \n DFC7C6CF 04DD7FD1\ - \ 02030100 01A34230 40300E06 03551D0F 0101FF04 04030201 \n 06300F06 03551D13\ - \ 0101FF04 05300301 01FF301D 0603551D 0E041604 1449DC85 \n 4B3D31E5 1B3E6A17\ - \ 606AF333 3D3B4C73 E8300D06 092A8648 86F70D01 010B0500 \n 03820101 00507F24\ - \ D3932A66 86025D9F E838AE5C 6D4DF6B0 49631C78 240DA905 \n 604EDCDE FF4FED2B\ - \ 77FC460E CD636FDB DD44681E 3A5673AB 9093D3B1 6C9E3D8B \n D98987BF E40CBD9E\ - \ 1AECA0C2 2189BB5C 8FA85686 CD98B646 5575B146 8DFC66A8 \n 467A3DF4 4D565700\ - \ 6ADF0F0D CF835015 3C04FF7C 21E878AC 11BA9CD2 55A9232C \n 7CA7B7E6 C1AF74F6\ - \ 152E99B7 B1FCF9BB E973DE7F 5BDDEB86 C71E3B49 1765308B \n 5FB0DA06 B92AFE7F\ - \ 494E8A9E 07B85737 F3A58BE1 1A48A229 C37C1E69 39F08678 \n 80DDCD16 D6BACECA\ - \ EEBC7CF9 8428787B 35202CDC 60E4616A B623CDBD 230E3AFB \n 418616A9 4093E049\ - \ 4D10AB75 27E86F73 932E35B5 8862FDAE 0275156F 719BB2F0 \n D697DF7F 28\n\ - \ \tquit\ncrypto pki certificate chain TP-self-signed-422690288\n certificate\ - \ self-signed 01\n 3082032E 30820216 A0030201 02020101 300D0609 2A864886\ - \ F70D0101 05050030 \n 30312E30 2C060355 04031325 494F532D 53656C66 2D536967\ - \ 6E65642D 43657274 \n 69666963 6174652D 34323236 39303238 38301E17 0D323130\ - \ 34323431 34343633 \n 325A170D 33303031 30313030 30303030 5A303031 2E302C06\ - \ 03550403 1325494F \n 532D5365 6C662D53 69676E65 642D4365 72746966 69636174\ - \ 652D3432 32363930 \n 32383830 82012230 0D06092A 864886F7 0D010101 05000382\ - \ 010F0030 82010A02 \n 82010100 C27FD6F3 1166295D F49633D3 51450DE6 F9BFCF2F\ - \ 7D3AACC7 3B5ED6B2 \n 3F68308B 39990E36 EBD37E75 A4BEC830 3B2A690B 13830C49\ - \ 2B25D19A E2B96F77 \n BE553C56 EED3B3BB 6584D3BB B1765477 02E693D1 C2316AE4\ - \ 4EE23F38 E346D59F \n D7949E95 C48D9020 FD03136D 57FA5A92 9B8A57CE D455621E\ - \ A72B3D2C AAD3EB8B \n 65CF62D5 C18B005B CA85EAB2 60DAE050 866B4C85 BDBEF084\ - \ 0AA4560F C19B8AA5 \n 287090B9 6B035146 F42C3A94 F2EE4DD5 5A81EEC1 704D5584\ - \ 77ADDBA7 4DF33581 \n CABC4B99 B0FB35E9 25DF1AB1 C898CD50 C859B551 EEEF4A3B\ - \ 703351E7 8094547B \n DB6AC6AC 066D8AAD 96AAF404 336424BB 07876BDD 56B0DEBA\ - \ 4CE59AEF 58F9E6EF \n 3F1B3887 02030100 01A35330 51300F06 03551D13 0101FF04\ - \ 05300301 01FF301F \n 0603551D 23041830 16801452 75C9AA75 B92C6980 AFFF95F7\ - \ 015BA9DB CF56EF30 \n 1D060355 1D0E0416 04145275 C9AA75B9 2C6980AF FF95F701\ - \ 5BA9DBCF 56EF300D \n 06092A86 4886F70D 01010505 00038201 01007990 FB8C5182\ - \ 74A472E9 F8933726 \n 0AAAE421 58EC4C5E DD15BAAE 5E95D5D3 12FE143C 8A80F8FF\ - \ F4512402 DE2D1091 \n F0928C73 ACB88E28 4DADB7CD E5876DE4 FCE7E1C1 EB465801\ - \ 9592F6C0 06501F1F \n 03118D27 7F80C6C0 4C4C3CFC 67FABA0D 65C9E228 B4F43ED9\ - \ FAE62872 FFBCC72F \n 25635208 12E436D4 7F27BA6E 151EE76A 560AC6D4 B9983DF4\ - \ 85D990E7 42A83E9B \n CDB0E802 4D2B1C3B A091CC70 F2878CAF 1222B9D6 9FA625F0\ - \ B4426FAF 75C0B1DE \n 16B3C323 0E1B1D98 9B35DCCD 43A6CA7B C59AF71E FE525B64\ - \ F921D394 5CD3E67B \n 3E808F51 6B93BF9A 28BD9F50 E0C6AB58 4266EA8C 38893595\ - \ BAE03E69 838973C2 \n 928F6137 2DCA8AB4 530DB0E8 57A12266 A50C\n \tquit\n\ - !\nlicense udi pid CSR1000V sn 9MVVU09YZFH\ndiagnostic bootup level minimal\n\ - archive\n log config\n logging enable\n path bootflash:\nmemory free low-watermark\ - \ processor 72329\n!\n!\nspanning-tree extend system-id\n!\nusername vrnetlab\ - \ privilege 15 password 0 VR-netlab9\n!\nredundancy\n!\n!\n!\n!\n!\n!\n! \n\ - !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n! \n! \n!\n!\ninterface GigabitEthernet1\n\ + !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\ncrypto pki trustpoint TP-self-signed-971124804\n\ + \ enrollment selfsigned\n subject-name cn=IOS-Self-Signed-Certificate-971124804\n\ + \ revocation-check none\n rsakeypair TP-self-signed-971124804\n!\ncrypto pki\ + \ trustpoint SLA-TrustPoint\n enrollment pkcs12\n revocation-check crl\n!\n\ + !\ncrypto pki certificate chain TP-self-signed-971124804\n certificate self-signed\ + \ 01\n 3082032E 30820216 A0030201 02020101 300D0609 2A864886 F70D0101 05050030\ + \ \n 30312E30 2C060355 04031325 494F532D 53656C66 2D536967 6E65642D 43657274\ + \ \n 69666963 6174652D 39373131 32343830 34301E17 0D323130 35323831 39323031\ + \ \n 315A170D 33303031 30313030 30303030 5A303031 2E302C06 03550403 1325494F\ + \ \n 532D5365 6C662D53 69676E65 642D4365 72746966 69636174 652D3937 31313234\ + \ \n 38303430 82012230 0D06092A 864886F7 0D010101 05000382 010F0030 82010A02\ + \ \n 82010100 9A5AFB47 FBB29463 C3B0E15E 881CAD52 5C652FC8 498B8FE2 BD025CA6\ + \ \n 9E98FB34 036B5B87 DC88A835 3B3A40DE 84ED8365 7CDA56F0 80630520 CCCE14A6\ + \ \n 9512C259 8D1E30E9 446A45EF 72464059 C0AB9279 F11AC3F6 71DFC173 95B99AE4\ + \ \n 3E4E32C6 00584C6C 7CE8A0FB 2DAEAC90 14516A4B C8B28D8C 444E9DDA 831DA497\ + \ \n 735818E4 5D7253C5 0FEE261A 0B9E9014 49AAAD3E E44AF3B1 351A19DC 7B78BE07\ + \ \n D452B6CC 4032AC79 33D3EC32 178FA55D B4F30EF6 B4AFF847 FB1677B6 A8969B6A\ + \ \n AB7D7019 4436A67B 98CC2808 62136E03 CE3CBE98 D32EF392 85406D04 7CAF3BE7\ + \ \n C2E34EAC 5F69E38A 6CC4E8B9 A00B76EC 79577B9B E5BBAA35 37D6B900 79D5EC0F\ + \ \n 5837E09B 02030100 01A35330 51300F06 03551D13 0101FF04 05300301 01FF301F\ + \ \n 0603551D 23041830 1680143A A780D0ED 95DFA1D7 42E88EBC DFCAA823 CFB03D30\ + \ \n 1D060355 1D0E0416 04143AA7 80D0ED95 DFA1D742 E88EBCDF CAA823CF B03D300D\ + \ \n 06092A86 4886F70D 01010505 00038201 010026D4 17358B20 82C17EC6 33F7ED1D\ + \ \n 8F6A52D0 67A557A0 46461293 D77EE377 1DB715B4 97C4C112 3FE955A9 99D17602\ + \ \n AA6F0DC8 A17F55D1 DDD335BF 4296E3C7 30974AA6 A260D83C EF127FE8 33ABF964\ + \ \n C45FF04C 9E271FD8 B6F4986F F2AA4ED9 AA940143 45F7B6BD 0973946F 35F66CBF\ + \ \n 5A7916D3 AC478064 7C69FE20 C57F7538 4AD5CF79 671270D0 4F779ABE D62485C4\ + \ \n 8979887C 79AA9B8C C6A6036C E2AA78E2 4D4331FC 9C5F5BF8 78E6D796 31697E35\ + \ \n 54C0AA53 E52EECD8 8ECF24E7 8A01A8D9 C33D8353 D9C34F93 CF41336A 02CD7F15\ + \ \n 22C3BF05 23579F26 EFF63502 3ED320ED 67E61168 9E25D8F0 B0FB882C 81E111FD\ + \ \n FC38A6E7 2DC02DC7 4DE9C66E 617E07DA 883A\n \tquit\ncrypto pki certificate\ + \ chain SLA-TrustPoint\n certificate ca 01\n 30820321 30820209 A0030201 02020101\ + \ 300D0609 2A864886 F70D0101 0B050030 \n 32310E30 0C060355 040A1305 43697363\ + \ 6F312030 1E060355 04031317 43697363 \n 6F204C69 63656E73 696E6720 526F6F74\ + \ 20434130 1E170D31 33303533 30313934 \n 3834375A 170D3338 30353330 31393438\ + \ 34375A30 32310E30 0C060355 040A1305 \n 43697363 6F312030 1E060355 04031317\ + \ 43697363 6F204C69 63656E73 696E6720 \n 526F6F74 20434130 82012230 0D06092A\ + \ 864886F7 0D010101 05000382 010F0030 \n 82010A02 82010100 A6BCBD96 131E05F7\ + \ 145EA72C 2CD686E6 17222EA1 F1EFF64D \n CBB4C798 212AA147 C655D8D7 9471380D\ + \ 8711441E 1AAF071A 9CAE6388 8A38E520 \n 1C394D78 462EF239 C659F715 B98C0A59\ + \ 5BBB5CBD 0CFEBEA3 700A8BF7 D8F256EE \n 4AA4E80D DB6FD1C9 60B1FD18 FFC69C96\ + \ 6FA68957 A2617DE7 104FDC5F EA2956AC \n 7390A3EB 2B5436AD C847A2C5 DAB553EB\ + \ 69A9A535 58E9F3E3 C0BD23CF 58BD7188 \n 68E69491 20F320E7 948E71D7 AE3BCC84\ + \ F10684C7 4BC8E00F 539BA42B 42C68BB7 \n C7479096 B4CB2D62 EA2F505D C7B062A4\ + \ 6811D95B E8250FC4 5D5D5FB8 8F27D191 \n C55F0D76 61F9A4CD 3D992327 A8BB03BD\ + \ 4E6D7069 7CBADF8B DF5F4368 95135E44 \n DFC7C6CF 04DD7FD1 02030100 01A34230\ + \ 40300E06 03551D0F 0101FF04 04030201 \n 06300F06 03551D13 0101FF04 05300301\ + \ 01FF301D 0603551D 0E041604 1449DC85 \n 4B3D31E5 1B3E6A17 606AF333 3D3B4C73\ + \ E8300D06 092A8648 86F70D01 010B0500 \n 03820101 00507F24 D3932A66 86025D9F\ + \ E838AE5C 6D4DF6B0 49631C78 240DA905 \n 604EDCDE FF4FED2B 77FC460E CD636FDB\ + \ DD44681E 3A5673AB 9093D3B1 6C9E3D8B \n D98987BF E40CBD9E 1AECA0C2 2189BB5C\ + \ 8FA85686 CD98B646 5575B146 8DFC66A8 \n 467A3DF4 4D565700 6ADF0F0D CF835015\ + \ 3C04FF7C 21E878AC 11BA9CD2 55A9232C \n 7CA7B7E6 C1AF74F6 152E99B7 B1FCF9BB\ + \ E973DE7F 5BDDEB86 C71E3B49 1765308B \n 5FB0DA06 B92AFE7F 494E8A9E 07B85737\ + \ F3A58BE1 1A48A229 C37C1E69 39F08678 \n 80DDCD16 D6BACECA EEBC7CF9 8428787B\ + \ 35202CDC 60E4616A B623CDBD 230E3AFB \n 418616A9 4093E049 4D10AB75 27E86F73\ + \ 932E35B5 8862FDAE 0275156F 719BB2F0 \n D697DF7F 28\n \tquit\n!\nlicense\ + \ udi pid CSR1000V sn 9IB2R42M6QG\ndiagnostic bootup level minimal\narchive\n\ + \ log config\n logging enable\n path bootflash:\nmemory free low-watermark\ + \ processor 72329\n!\n!\nspanning-tree extend system-id\n!\nusername boxen\ + \ privilege 15 password 0 b0x3N-b0x3N\n!\nredundancy\n!\n!\n!\n!\n!\n!\n!\ + \ \n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n! \n! \n!\n!\ninterface GigabitEthernet1\n\ \ ip address 10.0.0.15 255.255.255.0\n negotiation auto\n no mop enabled\n\ \ no mop sysid\n!\ninterface GigabitEthernet2\n no ip address\n shutdown\n\ \ negotiation auto\n no mop enabled\n no mop sysid\n!\ninterface GigabitEthernet3\n\ @@ -1774,11 +1776,11 @@ localhost:21022:SystemTransport::0: \ GigabitEthernet10\n no ip address\n shutdown\n negotiation auto\n no mop\ \ enabled\n no mop sysid\n!\n!\nvirtual-service csr_mgmt\n!\nip forward-protocol\ \ nd\nno ip http server\nno ip http secure-server\n!\nip ssh pubkey-chain\n\ - \ username vrnetlab\n key-hash ssh-rsa 5CC74A68B18B026A1709FB09D1F44E2F\ - \ \nip scp server enable\n!\n!\n!\n!\n!\n!\n!\ncontrol-plane\n!\n!\n!\n!\n\ - !\n!\nline con 0\n stopbits 1\nline vty 0 4\n login local\n transport input\ - \ all\nline vty 5 15\n login local\n transport input all\n!\nnetconf ssh\n\ - !\n!\n!\n!\n!\nnetconf-yang\nend\n\ncsr1000v#" + \ username boxen\n key-hash ssh-rsa 5CC74A68B18B026A1709FB09D1F44E2F \n\ + ip scp server enable\n!\n!\n!\n!\n!\n!\n!\ncontrol-plane\n!\n!\n!\n!\n!\n\ + !\nline con 0\n stopbits 1\nline vty 0 4\n login local\n transport input all\n\ + line vty 5 15\n login local\n transport input all\n!\nnetconf ssh\n!\n!\n\ + !\n!\n!\nnetconf-yang\nend\n\ncsr1000v#" expected_channel_input: show run | i file prompt expected_channel_input_redacted: false - channel_output: show run | i file prompt @@ -1791,7 +1793,11 @@ localhost:21022:SystemTransport::0: - channel_output: configure replace flash:__SCRAPLI_CFG_SESSION_NAME__ force expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTotal number of passes: 1\nRollback Done\n\ncsr1000v#" + - channel_output: "\nThe rollback configlet from the last pass is listed below:\n\ + ********\n!List of Rollback Commands:\nno license udi pid CSR1000V sn 9IB2R42M6QG\n\ + license udi pid CSR1000V sn 9MVVU09YZFH\nend\n********\n\n\nRollback aborted\ + \ after 5 passes\nThe following commands are failed to apply to the IOS image.\n\ + ********\nlicense udi pid CSR1000V sn 9MVVU09YZFH\n********\n\n\ncsr1000v#" expected_channel_input: show run | i file prompt expected_channel_input_redacted: false - channel_output: show run | i file prompt diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_iosxe-telnet].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_iosxe-telnet].yaml index 4a721f9..6b9138b 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_iosxe-telnet].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_iosxe-telnet].yaml @@ -2,7 +2,7 @@ localhost:21023:TelnetTransport::0: connection_profile: host: localhost port: 21023 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -11,12 +11,12 @@ localhost:21023:TelnetTransport::0: auth_secondary: true interactions: - channel_output: "\n\nUser Access Verification\n\nUsername: " - expected_channel_input: vrnetlab + expected_channel_input: boxen expected_channel_input_redacted: false - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "vrnetlab\nPassword: " + - channel_output: "boxen\nPassword: " expected_channel_input: REDACTED expected_channel_input_redacted: true - channel_output: '' @@ -54,7 +54,7 @@ localhost:21023:TelnetTransport::0: - channel_output: 'dir flash: | i bytes' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n6286540800 bytes total (5484552192 bytes free)\ncsr1000v#" + - channel_output: "\n6286540800 bytes total (5488701440 bytes free)\ncsr1000v#" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\ncsr1000v#" @@ -158,9 +158,9 @@ localhost:21023:TelnetTransport::0: expected_channel_input: "\r" expected_channel_input_redacted: false - channel_output: "\n+>" - expected_channel_input: enable secret 9 $9$h6Ayg86tb/EImk$2T6Ns.ke08cAlZ2TbMf3YRCYr7ngDGzgAxZB0YMe7lQ + expected_channel_input: enable secret 9 $9$xvWnx8Fe35f8xE$E9ijp7GM/V48P5y1Uz3IEPtotXgwkJKYJmN0q3q2E92 expected_channel_input_redacted: false - - channel_output: enable secret 9 $9$h6Ayg86tb/EImk$2T6Ns.ke08cAlZ2TbMf3YRCYr7ngDGzgAxZB0YMe7lQ + - channel_output: enable secret 9 $9$xvWnx8Fe35f8xE$E9ijp7GM/V48P5y1Uz3IEPtotXgwkJKYJmN0q3q2E92 expected_channel_input: "\r" expected_channel_input_redacted: false - channel_output: "\n+>" @@ -805,9 +805,9 @@ localhost:21023:TelnetTransport::0: expected_channel_input: "\r" expected_channel_input_redacted: false - channel_output: "\n+>" - expected_channel_input: username vrnetlab privilege 15 password 0 VR-netlab9 + expected_channel_input: username boxen privilege 15 password 0 b0x3N-b0x3N expected_channel_input_redacted: false - - channel_output: username vrnetlab privilege 15 password 0 VR-netlab9 + - channel_output: username boxen privilege 15 password 0 b0x3N-b0x3N expected_channel_input: "\r" expected_channel_input_redacted: false - channel_output: "\n+>" @@ -1423,9 +1423,9 @@ localhost:21023:TelnetTransport::0: expected_channel_input: "\r" expected_channel_input_redacted: false - channel_output: "\n+>" - expected_channel_input: ' username vrnetlab' + expected_channel_input: ' username boxen' expected_channel_input_redacted: false - - channel_output: ' username vrnetlab' + - channel_output: ' username boxen' expected_channel_input: "\r" expected_channel_input_redacted: false - channel_output: "\n+>" @@ -1651,19 +1651,20 @@ localhost:21023:TelnetTransport::0: - channel_output: show archive config differences system:running-config flash:__SCRAPLI_CFG_SESSION_NAME__ expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n!Contextual Config Diffs:\n!No changes were found\n\ncsr1000v#" + - channel_output: "\n!Contextual Config Diffs:\n+license udi pid CSR1000V sn 9MVVU09YZFH\n\ + -license udi pid CSR1000V sn 9IB2R42M6QG\n\ncsr1000v#" expected_channel_input: show running-config expected_channel_input_redacted: false - channel_output: show running-config expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nBuilding configuration...\n\nCurrent configuration : 4826\ - \ bytes\n!\n! Last configuration change at 19:49:38 UTC Tue Apr 27 2021 by\ - \ vrnetlab\n!\nversion 16.12\nservice timestamps debug datetime msec\nservice\ + - channel_output: "\nBuilding configuration...\n\nCurrent configuration : 4818\ + \ bytes\n!\n! Last configuration change at 13:22:52 UTC Sat May 29 2021 by\ + \ boxen\n!\nversion 16.12\nservice timestamps debug datetime msec\nservice\ \ timestamps log datetime msec\nservice call-home\nplatform qfp utilization\ \ monitor load 80\nplatform punt-keepalive disable-kernel-core\nplatform console\ \ serial\n!\nhostname csr1000v\n!\nboot-start-marker\nboot-end-marker\n!\n\ - !\nenable secret 9 $9$h6Ayg86tb/EImk$2T6Ns.ke08cAlZ2TbMf3YRCYr7ngDGzgAxZB0YMe7lQ\n\ + !\nenable secret 9 $9$xvWnx8Fe35f8xE$E9ijp7GM/V48P5y1Uz3IEPtotXgwkJKYJmN0q3q2E92\n\ !\nno aaa new-model\ncall-home\n ! If contact email address in call-home is\ \ configured as sch-smart-licensing@cisco.com\n ! the email address configured\ \ in Cisco Smart License Portal will be used as contact email address to send\ @@ -1700,11 +1701,11 @@ localhost:21023:TelnetTransport::0: \ F3A58BE1 1A48A229 C37C1E69 39F08678 \n 80DDCD16 D6BACECA EEBC7CF9 8428787B\ \ 35202CDC 60E4616A B623CDBD 230E3AFB \n 418616A9 4093E049 4D10AB75 27E86F73\ \ 932E35B5 8862FDAE 0275156F 719BB2F0 \n D697DF7F 28\n \tquit\n!\nlicense\ - \ udi pid CSR1000V sn 9MVVU09YZFH\ndiagnostic bootup level minimal\narchive\n\ + \ udi pid CSR1000V sn 9IB2R42M6QG\ndiagnostic bootup level minimal\narchive\n\ \ log config\n logging enable\n path bootflash:\nmemory free low-watermark\ - \ processor 72329\n!\n!\nspanning-tree extend system-id\n!\nusername vrnetlab\ - \ privilege 15 password 0 VR-netlab9\n!\nredundancy\n!\n!\n!\n!\n!\n!\n! \n\ - !\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n! \n! \n!\n!\ninterface GigabitEthernet1\n\ + \ processor 72329\n!\n!\nspanning-tree extend system-id\n!\nusername boxen\ + \ privilege 15 password 0 b0x3N-b0x3N\n!\nredundancy\n!\n!\n!\n!\n!\n!\n!\ + \ \n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n!\n! \n! \n!\n!\ninterface GigabitEthernet1\n\ \ ip address 10.0.0.15 255.255.255.0\n negotiation auto\n no mop enabled\n\ \ no mop sysid\n!\ninterface GigabitEthernet2\n no ip address\n shutdown\n\ \ negotiation auto\n no mop enabled\n no mop sysid\n!\ninterface GigabitEthernet3\n\ @@ -1721,11 +1722,11 @@ localhost:21023:TelnetTransport::0: \ GigabitEthernet10\n no ip address\n shutdown\n negotiation auto\n no mop\ \ enabled\n no mop sysid\n!\n!\nvirtual-service csr_mgmt\n!\nip forward-protocol\ \ nd\nno ip http server\nno ip http secure-server\n!\nip ssh pubkey-chain\n\ - \ username vrnetlab\n key-hash ssh-rsa 5CC74A68B18B026A1709FB09D1F44E2F\ - \ \nip scp server enable\n!\n!\n!\n!\n!\n!\n!\ncontrol-plane\n!\n!\n!\n!\n\ - !\n!\nline con 0\n stopbits 1\nline vty 0 4\n login local\n transport input\ - \ all\nline vty 5 15\n login local\n transport input all\n!\nnetconf ssh\n\ - !\n!\n!\n!\n!\nnetconf-yang\nend\n\ncsr1000v#" + \ username boxen\n key-hash ssh-rsa 5CC74A68B18B026A1709FB09D1F44E2F \n\ + ip scp server enable\n!\n!\n!\n!\n!\n!\n!\ncontrol-plane\n!\n!\n!\n!\n!\n\ + !\nline con 0\n stopbits 1\nline vty 0 4\n login local\n transport input all\n\ + line vty 5 15\n login local\n transport input all\n!\nnetconf ssh\n!\n!\n\ + !\n!\n!\nnetconf-yang\nend\n\ncsr1000v#" expected_channel_input: show run | i file prompt expected_channel_input_redacted: false - channel_output: show run | i file prompt @@ -1738,7 +1739,11 @@ localhost:21023:TelnetTransport::0: - channel_output: configure replace flash:__SCRAPLI_CFG_SESSION_NAME__ force expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTotal number of passes: 0\nRollback Done\n\ncsr1000v#" + - channel_output: "\nThe rollback configlet from the last pass is listed below:\n\ + ********\n!List of Rollback Commands:\nno license udi pid CSR1000V sn 9IB2R42M6QG\n\ + license udi pid CSR1000V sn 9MVVU09YZFH\nend\n********\n\n\nRollback aborted\ + \ after 5 passes\nThe following commands are failed to apply to the IOS image.\n\ + ********\nlicense udi pid CSR1000V sn 9MVVU09YZFH\n********\n\n\ncsr1000v#" expected_channel_input: show run | i file prompt expected_channel_input_redacted: false - channel_output: show run | i file prompt diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_iosxr-paramiko].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_iosxr-paramiko].yaml index ae1625b..616250f 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_iosxr-paramiko].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_iosxr-paramiko].yaml @@ -2,7 +2,7 @@ localhost:23022:ParamikoTransport::0: connection_profile: host: localhost port: 23022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -13,25 +13,25 @@ localhost:23022:ParamikoTransport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nRP/0/RP0/CPU0:ios#" + - channel_output: "\n\n\nRP/0/RP0/CPU0:ios#" expected_channel_input: terminal length 0 expected_channel_input_redacted: false - - channel_output: "\nRP/0/RP0/CPU0:ios#terminal length 0" + - channel_output: terminal length 0 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:54:13.841 UTC\nRP/0/RP0/CPU0:ios#" + - channel_output: "\nSat May 29 17:00:50.906 UTC\nRP/0/RP0/CPU0:ios#" expected_channel_input: terminal width 512 expected_channel_input_redacted: false - channel_output: terminal width 512 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:54:13.928 UTC\nRP/0/RP0/CPU0:ios#" + - channel_output: "\nSat May 29 17:00:51.019 UTC\nRP/0/RP0/CPU0:ios#" expected_channel_input: show version | i Version expected_channel_input_redacted: false - channel_output: show version | i Version expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:54:14.038 UTC\nCisco IOS XR Software, Version\ + - channel_output: "\nSat May 29 17:00:51.123 UTC\nCisco IOS XR Software, Version\ \ 6.5.3\n Version : 6.5.3\nRP/0/RP0/CPU0:ios#" expected_channel_input: "\n" expected_channel_input_redacted: false @@ -41,7 +41,7 @@ localhost:23022:ParamikoTransport::0: - channel_output: configure terminal expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:54:14.181 UTC\nRP/0/RP0/CPU0:ios(config)#" + - channel_output: "\nSat May 29 17:00:51.234 UTC\nRP/0/RP0/CPU0:ios(config)#" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nRP/0/RP0/CPU0:ios(config)#" @@ -81,9 +81,9 @@ localhost:23022:ParamikoTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nRP/0/RP0/CPU0:ios(config)#" - expected_channel_input: username vrnetlab + expected_channel_input: username boxen expected_channel_input_redacted: false - - channel_output: username vrnetlab + - channel_output: username boxen expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nRP/0/RP0/CPU0:ios(config-un)#" @@ -99,9 +99,9 @@ localhost:23022:ParamikoTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nRP/0/RP0/CPU0:ios(config-un)#" - expected_channel_input: ' secret 5 $1$5aFx$Ul43RjEjA7C4LFsghgQCu0' + expected_channel_input: ' secret 5 $1$fW1M$wIX/Q6Qpcg06QmgxVETb9/' expected_channel_input_redacted: false - - channel_output: ' secret 5 $1$5aFx$Ul43RjEjA7C4LFsghgQCu0' + - channel_output: ' secret 5 $1$fW1M$wIX/Q6Qpcg06QmgxVETb9/' expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nRP/0/RP0/CPU0:ios(config-un)#" @@ -2534,7 +2534,7 @@ localhost:23022:ParamikoTransport::0: - channel_output: show configuration changes diff expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:54:21.423 UTC\nBuilding configuration...\n\ + - channel_output: "\nSat May 29 17:00:58.255 UTC\nBuilding configuration...\n\ !! IOS XR Configuration version = 6.5.3\n+ interface MgmtEth0/RP0/CPU0/0\n\ + !\n+ interface GigabitEthernet0/0/0/0\n+ !\n+ interface GigabitEthernet0/0/0/1\n\ + !\n+ interface GigabitEthernet0/0/0/2\n+ !\n+ interface GigabitEthernet0/0/0/3\n\ @@ -2606,10 +2606,10 @@ localhost:23022:ParamikoTransport::0: - channel_output: show running-config expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:54:22.192 UTC\nBuilding configuration...\n\ - !! IOS XR Configuration version = 6.5.3\n!! Last configuration change at Tue\ - \ Apr 27 00:13:12 2021 by vrnetlab\n!\ntelnet vrf default ipv4 server max-servers\ - \ 10\nusername vrnetlab\n group root-lr\n group cisco-support\n secret 5 $1$5aFx$Ul43RjEjA7C4LFsghgQCu0\n\ + - channel_output: "\nSat May 29 17:00:59.057 UTC\nBuilding configuration...\n\ + !! IOS XR Configuration version = 6.5.3\n!! Last configuration change at Sat\ + \ May 29 16:56:12 2021 by boxen\n!\ntelnet vrf default ipv4 server max-servers\ + \ 10\nusername boxen\n group root-lr\n group cisco-support\n secret 5 $1$fW1M$wIX/Q6Qpcg06QmgxVETb9/\n\ !\ncall-home\n service active\n contact smart-licensing\n profile CiscoTAC-1\n\ \ active\n destination transport-method http\n !\n!\ninterface MgmtEth0/RP0/CPU0/0\n\ \ ipv4 address 10.0.0.15 255.255.255.0\n!\ninterface GigabitEthernet0/0/0/0\n\ @@ -2703,7 +2703,7 @@ localhost:23022:ParamikoTransport::0: - channel_output: commit replace expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:54:22.792 UTC\n\nThis commit will replace or\ + - channel_output: "\nSat May 29 17:00:59.682 UTC\n\nThis commit will replace or\ \ remove the entire running configuration. This\noperation can be service\ \ affecting.\nDo you wish to proceed? [no]: " expected_channel_input: yes diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_iosxr-ssh2].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_iosxr-ssh2].yaml index 523a3ff..01268be 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_iosxr-ssh2].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_iosxr-ssh2].yaml @@ -2,7 +2,7 @@ localhost:23022:Ssh2Transport::0: connection_profile: host: localhost port: 23022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -13,25 +13,25 @@ localhost:23022:Ssh2Transport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nRP/0/RP0/CPU0:ios#" + - channel_output: "\n\n\nRP/0/RP0/CPU0:ios#" expected_channel_input: terminal length 0 expected_channel_input_redacted: false - - channel_output: "\nRP/0/RP0/CPU0:ios#terminal length 0" + - channel_output: terminal length 0 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:54:03.045 UTC\nRP/0/RP0/CPU0:ios#" + - channel_output: "\nSat May 29 16:58:14.902 UTC\nRP/0/RP0/CPU0:ios#" expected_channel_input: terminal width 512 expected_channel_input_redacted: false - channel_output: terminal width 512 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:54:03.133 UTC\nRP/0/RP0/CPU0:ios#" + - channel_output: "\nSat May 29 16:58:15.027 UTC\nRP/0/RP0/CPU0:ios#" expected_channel_input: show version | i Version expected_channel_input_redacted: false - channel_output: show version | i Version expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:54:03.239 UTC\nCisco IOS XR Software, Version\ + - channel_output: "\nSat May 29 16:58:15.126 UTC\nCisco IOS XR Software, Version\ \ 6.5.3\n Version : 6.5.3\nRP/0/RP0/CPU0:ios#" expected_channel_input: "\n" expected_channel_input_redacted: false @@ -41,7 +41,7 @@ localhost:23022:Ssh2Transport::0: - channel_output: configure terminal expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:54:03.374 UTC\nRP/0/RP0/CPU0:ios(config)#" + - channel_output: "\nSat May 29 16:58:15.250 UTC\nRP/0/RP0/CPU0:ios(config)#" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nRP/0/RP0/CPU0:ios(config)#" @@ -81,9 +81,9 @@ localhost:23022:Ssh2Transport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nRP/0/RP0/CPU0:ios(config)#" - expected_channel_input: username vrnetlab + expected_channel_input: username boxen expected_channel_input_redacted: false - - channel_output: username vrnetlab + - channel_output: username boxen expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nRP/0/RP0/CPU0:ios(config-un)#" @@ -99,9 +99,9 @@ localhost:23022:Ssh2Transport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nRP/0/RP0/CPU0:ios(config-un)#" - expected_channel_input: ' secret 5 $1$5aFx$Ul43RjEjA7C4LFsghgQCu0' + expected_channel_input: ' secret 5 $1$fW1M$wIX/Q6Qpcg06QmgxVETb9/' expected_channel_input_redacted: false - - channel_output: ' secret 5 $1$5aFx$Ul43RjEjA7C4LFsghgQCu0' + - channel_output: ' secret 5 $1$fW1M$wIX/Q6Qpcg06QmgxVETb9/' expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nRP/0/RP0/CPU0:ios(config-un)#" @@ -2534,7 +2534,7 @@ localhost:23022:Ssh2Transport::0: - channel_output: show configuration changes diff expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:54:09.981 UTC\nBuilding configuration...\n\ + - channel_output: "\nSat May 29 16:58:22.763 UTC\nBuilding configuration...\n\ !! IOS XR Configuration version = 6.5.3\n+ interface MgmtEth0/RP0/CPU0/0\n\ + !\n+ interface GigabitEthernet0/0/0/0\n+ !\n+ interface GigabitEthernet0/0/0/1\n\ + !\n+ interface GigabitEthernet0/0/0/2\n+ !\n+ interface GigabitEthernet0/0/0/3\n\ @@ -2606,10 +2606,10 @@ localhost:23022:Ssh2Transport::0: - channel_output: show running-config expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:54:10.661 UTC\nBuilding configuration...\n\ - !! IOS XR Configuration version = 6.5.3\n!! Last configuration change at Tue\ - \ Apr 27 00:13:12 2021 by vrnetlab\n!\ntelnet vrf default ipv4 server max-servers\ - \ 10\nusername vrnetlab\n group root-lr\n group cisco-support\n secret 5 $1$5aFx$Ul43RjEjA7C4LFsghgQCu0\n\ + - channel_output: "\nSat May 29 16:58:23.668 UTC\nBuilding configuration...\n\ + !! IOS XR Configuration version = 6.5.3\n!! Last configuration change at Sat\ + \ May 29 16:56:12 2021 by boxen\n!\ntelnet vrf default ipv4 server max-servers\ + \ 10\nusername boxen\n group root-lr\n group cisco-support\n secret 5 $1$fW1M$wIX/Q6Qpcg06QmgxVETb9/\n\ !\ncall-home\n service active\n contact smart-licensing\n profile CiscoTAC-1\n\ \ active\n destination transport-method http\n !\n!\ninterface MgmtEth0/RP0/CPU0/0\n\ \ ipv4 address 10.0.0.15 255.255.255.0\n!\ninterface GigabitEthernet0/0/0/0\n\ @@ -2703,7 +2703,7 @@ localhost:23022:Ssh2Transport::0: - channel_output: commit replace expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:54:11.353 UTC\n\nThis commit will replace or\ + - channel_output: "\nSat May 29 16:58:24.771 UTC\n\nThis commit will replace or\ \ remove the entire running configuration. This\noperation can be service\ \ affecting.\nDo you wish to proceed? [no]: " expected_channel_input: yes diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_iosxr-system].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_iosxr-system].yaml index 9dfb5e5..3563d5b 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_iosxr-system].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_iosxr-system].yaml @@ -2,7 +2,7 @@ localhost:23022:SystemTransport::0: connection_profile: host: localhost port: 23022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -26,19 +26,19 @@ localhost:23022:SystemTransport::0: - channel_output: terminal length 0 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:53:51.885 UTC\nRP/0/RP0/CPU0:ios#" + - channel_output: "\nSat May 29 16:58:03.235 UTC\nRP/0/RP0/CPU0:ios#" expected_channel_input: terminal width 512 expected_channel_input_redacted: false - channel_output: terminal width 512 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:53:51.972 UTC\nRP/0/RP0/CPU0:ios#" + - channel_output: "\nSat May 29 16:58:03.393 UTC\nRP/0/RP0/CPU0:ios#" expected_channel_input: show version | i Version expected_channel_input_redacted: false - channel_output: show version | i Version expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:53:52.079 UTC\nCisco IOS XR Software, Version\ + - channel_output: "\nSat May 29 16:58:03.543 UTC\nCisco IOS XR Software, Version\ \ 6.5.3\n Version : 6.5.3\nRP/0/RP0/CPU0:ios#" expected_channel_input: "\n" expected_channel_input_redacted: false @@ -48,7 +48,7 @@ localhost:23022:SystemTransport::0: - channel_output: configure terminal expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:53:52.206 UTC\nRP/0/RP0/CPU0:ios(config)#" + - channel_output: "\nSat May 29 16:58:03.760 UTC\nRP/0/RP0/CPU0:ios(config)#" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nRP/0/RP0/CPU0:ios(config)#" @@ -88,9 +88,9 @@ localhost:23022:SystemTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nRP/0/RP0/CPU0:ios(config)#" - expected_channel_input: username vrnetlab + expected_channel_input: username boxen expected_channel_input_redacted: false - - channel_output: username vrnetlab + - channel_output: username boxen expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nRP/0/RP0/CPU0:ios(config-un)#" @@ -106,9 +106,9 @@ localhost:23022:SystemTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nRP/0/RP0/CPU0:ios(config-un)#" - expected_channel_input: ' secret 5 $1$5aFx$Ul43RjEjA7C4LFsghgQCu0' + expected_channel_input: ' secret 5 $1$fW1M$wIX/Q6Qpcg06QmgxVETb9/' expected_channel_input_redacted: false - - channel_output: ' secret 5 $1$5aFx$Ul43RjEjA7C4LFsghgQCu0' + - channel_output: ' secret 5 $1$fW1M$wIX/Q6Qpcg06QmgxVETb9/' expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nRP/0/RP0/CPU0:ios(config-un)#" @@ -2541,7 +2541,7 @@ localhost:23022:SystemTransport::0: - channel_output: show configuration changes diff expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:53:59.179 UTC\nBuilding configuration...\n\ + - channel_output: "\nSat May 29 16:58:11.274 UTC\nBuilding configuration...\n\ !! IOS XR Configuration version = 6.5.3\n+ interface MgmtEth0/RP0/CPU0/0\n\ + !\n+ interface GigabitEthernet0/0/0/0\n+ !\n+ interface GigabitEthernet0/0/0/1\n\ + !\n+ interface GigabitEthernet0/0/0/2\n+ !\n+ interface GigabitEthernet0/0/0/3\n\ @@ -2613,10 +2613,10 @@ localhost:23022:SystemTransport::0: - channel_output: show running-config expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:53:59.866 UTC\nBuilding configuration...\n\ - !! IOS XR Configuration version = 6.5.3\n!! Last configuration change at Tue\ - \ Apr 27 00:13:12 2021 by vrnetlab\n!\ntelnet vrf default ipv4 server max-servers\ - \ 10\nusername vrnetlab\n group root-lr\n group cisco-support\n secret 5 $1$5aFx$Ul43RjEjA7C4LFsghgQCu0\n\ + - channel_output: "\nSat May 29 16:58:11.971 UTC\nBuilding configuration...\n\ + !! IOS XR Configuration version = 6.5.3\n!! Last configuration change at Sat\ + \ May 29 16:56:12 2021 by boxen\n!\ntelnet vrf default ipv4 server max-servers\ + \ 10\nusername boxen\n group root-lr\n group cisco-support\n secret 5 $1$fW1M$wIX/Q6Qpcg06QmgxVETb9/\n\ !\ncall-home\n service active\n contact smart-licensing\n profile CiscoTAC-1\n\ \ active\n destination transport-method http\n !\n!\ninterface MgmtEth0/RP0/CPU0/0\n\ \ ipv4 address 10.0.0.15 255.255.255.0\n!\ninterface GigabitEthernet0/0/0/0\n\ @@ -2710,7 +2710,7 @@ localhost:23022:SystemTransport::0: - channel_output: commit replace expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:54:00.494 UTC\n\nThis commit will replace or\ + - channel_output: "\nSat May 29 16:58:12.718 UTC\n\nThis commit will replace or\ \ remove the entire running configuration. This\noperation can be service\ \ affecting.\nDo you wish to proceed? [no]: " expected_channel_input: yes diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_iosxr-telnet].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_iosxr-telnet].yaml index 7c9a85d..fa575dc 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_iosxr-telnet].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_iosxr-telnet].yaml @@ -2,7 +2,7 @@ localhost:23023:TelnetTransport::0: connection_profile: host: localhost port: 23023 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -11,12 +11,12 @@ localhost:23023:TelnetTransport::0: auth_secondary: true interactions: - channel_output: "\nUser Access Verification\n\nUsername: " - expected_channel_input: vrnetlab + expected_channel_input: boxen expected_channel_input_redacted: false - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "vrnetlab\nPassword: " + - channel_output: "boxen\nPassword: " expected_channel_input: REDACTED expected_channel_input_redacted: true - channel_output: '' @@ -31,19 +31,19 @@ localhost:23023:TelnetTransport::0: - channel_output: terminal length 0 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:54:25.839 UTC\nRP/0/RP0/CPU0:ios#" + - channel_output: "\nSat May 29 17:01:01.747 UTC\nRP/0/RP0/CPU0:ios#" expected_channel_input: terminal width 512 expected_channel_input_redacted: false - channel_output: terminal width 512 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:54:25.936 UTC\nRP/0/RP0/CPU0:ios#" + - channel_output: "\nSat May 29 17:01:01.893 UTC\nRP/0/RP0/CPU0:ios#" expected_channel_input: show version | i Version expected_channel_input_redacted: false - channel_output: show version | i Version expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:54:26.072 UTC\nCisco IOS XR Software, Version\ + - channel_output: "\nSat May 29 17:01:02.001 UTC\nCisco IOS XR Software, Version\ \ 6.5.3\n Version : 6.5.3\nRP/0/RP0/CPU0:ios#" expected_channel_input: "\n" expected_channel_input_redacted: false @@ -53,7 +53,7 @@ localhost:23023:TelnetTransport::0: - channel_output: configure terminal expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:54:26.274 UTC\nRP/0/RP0/CPU0:ios(config)#" + - channel_output: "\nSat May 29 17:01:02.153 UTC\nRP/0/RP0/CPU0:ios(config)#" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nRP/0/RP0/CPU0:ios(config)#" @@ -93,9 +93,9 @@ localhost:23023:TelnetTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nRP/0/RP0/CPU0:ios(config)#" - expected_channel_input: username vrnetlab + expected_channel_input: username boxen expected_channel_input_redacted: false - - channel_output: username vrnetlab + - channel_output: username boxen expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nRP/0/RP0/CPU0:ios(config-un)#" @@ -111,9 +111,9 @@ localhost:23023:TelnetTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nRP/0/RP0/CPU0:ios(config-un)#" - expected_channel_input: ' secret 5 $1$5aFx$Ul43RjEjA7C4LFsghgQCu0' + expected_channel_input: ' secret 5 $1$fW1M$wIX/Q6Qpcg06QmgxVETb9/' expected_channel_input_redacted: false - - channel_output: ' secret 5 $1$5aFx$Ul43RjEjA7C4LFsghgQCu0' + - channel_output: ' secret 5 $1$fW1M$wIX/Q6Qpcg06QmgxVETb9/' expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nRP/0/RP0/CPU0:ios(config-un)#" @@ -2546,7 +2546,7 @@ localhost:23023:TelnetTransport::0: - channel_output: show configuration changes diff expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:54:31.665 UTC\nBuilding configuration...\n\ + - channel_output: "\nSat May 29 17:01:07.694 UTC\nBuilding configuration...\n\ !! IOS XR Configuration version = 6.5.3\n+ interface MgmtEth0/RP0/CPU0/0\n\ + !\n+ interface GigabitEthernet0/0/0/0\n+ !\n+ interface GigabitEthernet0/0/0/1\n\ + !\n+ interface GigabitEthernet0/0/0/2\n+ !\n+ interface GigabitEthernet0/0/0/3\n\ @@ -2618,10 +2618,10 @@ localhost:23023:TelnetTransport::0: - channel_output: show running-config expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:54:32.298 UTC\nBuilding configuration...\n\ - !! IOS XR Configuration version = 6.5.3\n!! Last configuration change at Tue\ - \ Apr 27 00:13:12 2021 by vrnetlab\n!\ntelnet vrf default ipv4 server max-servers\ - \ 10\nusername vrnetlab\n group root-lr\n group cisco-support\n secret 5 $1$5aFx$Ul43RjEjA7C4LFsghgQCu0\n\ + - channel_output: "\nSat May 29 17:01:08.697 UTC\nBuilding configuration...\n\ + !! IOS XR Configuration version = 6.5.3\n!! Last configuration change at Sat\ + \ May 29 16:56:12 2021 by boxen\n!\ntelnet vrf default ipv4 server max-servers\ + \ 10\nusername boxen\n group root-lr\n group cisco-support\n secret 5 $1$fW1M$wIX/Q6Qpcg06QmgxVETb9/\n\ !\ncall-home\n service active\n contact smart-licensing\n profile CiscoTAC-1\n\ \ active\n destination transport-method http\n !\n!\ninterface MgmtEth0/RP0/CPU0/0\n\ \ ipv4 address 10.0.0.15 255.255.255.0\n!\ninterface GigabitEthernet0/0/0/0\n\ @@ -2715,7 +2715,7 @@ localhost:23023:TelnetTransport::0: - channel_output: commit replace expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nTue Apr 27 19:54:33.026 UTC\n\nThis commit will replace or\ + - channel_output: "\nSat May 29 17:01:09.606 UTC\n\nThis commit will replace or\ \ remove the entire running configuration. This\noperation can be service\ \ affecting.\nDo you wish to proceed? [no]: " expected_channel_input: yes diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_nxos-paramiko].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_nxos-paramiko].yaml index 94e2c7f..bafe78a 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_nxos-paramiko].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_nxos-paramiko].yaml @@ -2,7 +2,7 @@ localhost:22022:ParamikoTransport::0: connection_profile: host: localhost port: 22022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -35,10 +35,10 @@ localhost:22022:ParamikoTransport::0: \ any *\n* purposes is expressly prohibited except as otherwise authorized\ \ by *\n* Cisco in writing. \ \ *\n***************************************************************************\n\ - switch# \n" + switch# " expected_channel_input: terminal length 0 expected_channel_input_redacted: false - - channel_output: switch# terminal length 0 + - channel_output: "\nswitch# terminal length 0" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nswitch# " @@ -59,7 +59,7 @@ localhost:22022:ParamikoTransport::0: - channel_output: "dir bootflash: | i 'bytes free'" expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n 1950605312 bytes free\nswitch# " + - channel_output: "\n 1950945280 bytes free\nswitch# " expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nswitch# " @@ -325,10 +325,10 @@ localhost:22022:ParamikoTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nswitch-tcl# " - expected_channel_input: puts -nonewline $fl {username vrnetlab password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3 role + expected_channel_input: puts -nonewline $fl {username boxen password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3 role network-admin expected_channel_input_redacted: false - - channel_output: puts -nonewline $fl {username vrnetlab password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3 role + - channel_output: puts -nonewline $fl {username boxen password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3 role network-admin expected_channel_input: "\n" expected_channel_input_redacted: false @@ -339,11 +339,11 @@ localhost:22022:ParamikoTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nswitch-tcl# " - expected_channel_input: puts -nonewline $fl {username vrnetlab passphrase lifetime + expected_channel_input: puts -nonewline $fl {username boxen passphrase lifetime 99999 warntime 14 gracetime 3 expected_channel_input_redacted: false - - channel_output: puts -nonewline $fl {username vrnetlab passphrase lifetime - 99999 warntime 14 gracetime 3 + - channel_output: puts -nonewline $fl {username boxen passphrase lifetime 99999 + warntime 14 gracetime 3 expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\n> " @@ -393,12 +393,12 @@ localhost:22022:ParamikoTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nswitch-tcl# " - expected_channel_input: puts -nonewline $fl {snmp-server user vrnetlab network-admin + expected_channel_input: puts -nonewline $fl {snmp-server user boxen network-admin auth md5 0x1a3abb28531cf988a22cc61af30861a7 priv 0x1a3abb28531cf988a22cc61af30861a7 localizedkey expected_channel_input_redacted: false - - channel_output: puts -nonewline $fl {snmp-server user vrnetlab network-admin - auth md5 0x1a3abb28531cf988a22cc61af30861a7 priv 0x1a3abb28531cf988a22cc61af30861a7 + - channel_output: puts -nonewline $fl {snmp-server user boxen network-admin auth + md5 0x1a3abb28531cf988a22cc61af30861a7 priv 0x1a3abb28531cf988a22cc61af30861a7 localizedkey expected_channel_input: "\n" expected_channel_input_redacted: false @@ -3714,7 +3714,7 @@ localhost:22022:ParamikoTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\n\n!Command: show running-config\n!Running configuration last\ - \ done at: Tue Apr 27 16:04:25 2021\n!Time: Tue Apr 27 19:52:22 2021\n\nversion\ + \ done at: Sat May 29 12:38:33 2021\n!Time: Sat May 29 13:25:14 2021\n\nversion\ \ 9.2(4) Bios:version \nvdc switch id 1\n limit-resource vlan minimum 16\ \ maximum 4094\n limit-resource vrf minimum 2 maximum 4096\n limit-resource\ \ port-channel minimum 0 maximum 511\n limit-resource u4route-mem minimum\ @@ -3722,12 +3722,12 @@ localhost:22022:ParamikoTransport::0: \ m4route-mem minimum 58 maximum 58\n limit-resource m6route-mem minimum\ \ 8 maximum 8\nfeature telnet\nfeature nxapi\nfeature scp-server\n\nno password\ \ strength-check\nusername admin password 5 $5$LOIMHI$hIaO64VM40/x.MTQoeWg8/IAn2iBY5jv4WZyzQbb5q9\ - \ role network-admin\nusername vrnetlab password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3\ - \ role network-admin\nusername vrnetlab passphrase lifetime 99999 warntime\ + \ role network-admin\nusername boxen password 5 $5$rFrywOjz$buvWY6uEPf79GVyfGNO6SGOi5gbxV2VAcsbBtyXDZyB\ + \ role network-admin\nusername boxen passphrase lifetime 99999 warntime\ \ 14 gracetime 3\nip domain-lookup\ncopp profile strict\nsnmp-server user\ \ admin network-admin auth md5 0xd42fc9f6e153a348e1ab40f0f5b84589 priv 0xd42fc9f6e153a348e1ab40f0f5b84589\ - \ localizedkey\nsnmp-server user vrnetlab network-admin auth md5 0x1a3abb28531cf988a22cc61af30861a7\ - \ priv 0x1a3abb28531cf988a22cc61af30861a7 localizedkey\nrmon event 1 description\ + \ localizedkey\nsnmp-server user boxen network-admin auth md5 0xc168bfc2b500129bd35ee550b6d5d93d\ + \ priv 0xc168bfc2b500129bd35ee550b6d5d93d localizedkey\nrmon event 1 description\ \ FATAL(1) owner PMON@FATAL\nrmon event 2 description CRITICAL(2) owner PMON@CRITICAL\n\ rmon event 3 description ERROR(3) owner PMON@ERROR\nrmon event 4 description\ \ WARNING(4) owner PMON@WARNING\nrmon event 5 description INFORMATION(5) owner\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_nxos-ssh2].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_nxos-ssh2].yaml index d8fee73..7fd85b2 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_nxos-ssh2].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_nxos-ssh2].yaml @@ -2,7 +2,7 @@ localhost:22022:Ssh2Transport::0: connection_profile: host: localhost port: 22022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -35,10 +35,10 @@ localhost:22022:Ssh2Transport::0: \ any *\n* purposes is expressly prohibited except as otherwise authorized\ \ by *\n* Cisco in writing. \ \ *\n***************************************************************************\n\ - switch# \n" + switch# \nswitch# " expected_channel_input: terminal length 0 expected_channel_input_redacted: false - - channel_output: switch# terminal length 0 + - channel_output: terminal length 0 expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nswitch# " @@ -59,7 +59,7 @@ localhost:22022:Ssh2Transport::0: - channel_output: "dir bootflash: | i 'bytes free'" expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n 1950605312 bytes free\nswitch# " + - channel_output: "\n 1950945280 bytes free\nswitch# " expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nswitch# " @@ -325,10 +325,10 @@ localhost:22022:Ssh2Transport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nswitch-tcl# " - expected_channel_input: puts -nonewline $fl {username vrnetlab password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3 role + expected_channel_input: puts -nonewline $fl {username boxen password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3 role network-admin expected_channel_input_redacted: false - - channel_output: puts -nonewline $fl {username vrnetlab password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3 role + - channel_output: puts -nonewline $fl {username boxen password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3 role network-admin expected_channel_input: "\n" expected_channel_input_redacted: false @@ -339,11 +339,11 @@ localhost:22022:Ssh2Transport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nswitch-tcl# " - expected_channel_input: puts -nonewline $fl {username vrnetlab passphrase lifetime + expected_channel_input: puts -nonewline $fl {username boxen passphrase lifetime 99999 warntime 14 gracetime 3 expected_channel_input_redacted: false - - channel_output: puts -nonewline $fl {username vrnetlab passphrase lifetime - 99999 warntime 14 gracetime 3 + - channel_output: puts -nonewline $fl {username boxen passphrase lifetime 99999 + warntime 14 gracetime 3 expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\n> " @@ -393,12 +393,12 @@ localhost:22022:Ssh2Transport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nswitch-tcl# " - expected_channel_input: puts -nonewline $fl {snmp-server user vrnetlab network-admin + expected_channel_input: puts -nonewline $fl {snmp-server user boxen network-admin auth md5 0x1a3abb28531cf988a22cc61af30861a7 priv 0x1a3abb28531cf988a22cc61af30861a7 localizedkey expected_channel_input_redacted: false - - channel_output: puts -nonewline $fl {snmp-server user vrnetlab network-admin - auth md5 0x1a3abb28531cf988a22cc61af30861a7 priv 0x1a3abb28531cf988a22cc61af30861a7 + - channel_output: puts -nonewline $fl {snmp-server user boxen network-admin auth + md5 0x1a3abb28531cf988a22cc61af30861a7 priv 0x1a3abb28531cf988a22cc61af30861a7 localizedkey expected_channel_input: "\n" expected_channel_input_redacted: false @@ -3714,7 +3714,7 @@ localhost:22022:Ssh2Transport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\n\n!Command: show running-config\n!Running configuration last\ - \ done at: Tue Apr 27 16:04:25 2021\n!Time: Tue Apr 27 19:51:24 2021\n\nversion\ + \ done at: Sat May 29 12:38:33 2021\n!Time: Sat May 29 13:24:22 2021\n\nversion\ \ 9.2(4) Bios:version \nvdc switch id 1\n limit-resource vlan minimum 16\ \ maximum 4094\n limit-resource vrf minimum 2 maximum 4096\n limit-resource\ \ port-channel minimum 0 maximum 511\n limit-resource u4route-mem minimum\ @@ -3722,12 +3722,12 @@ localhost:22022:Ssh2Transport::0: \ m4route-mem minimum 58 maximum 58\n limit-resource m6route-mem minimum\ \ 8 maximum 8\nfeature telnet\nfeature nxapi\nfeature scp-server\n\nno password\ \ strength-check\nusername admin password 5 $5$LOIMHI$hIaO64VM40/x.MTQoeWg8/IAn2iBY5jv4WZyzQbb5q9\ - \ role network-admin\nusername vrnetlab password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3\ - \ role network-admin\nusername vrnetlab passphrase lifetime 99999 warntime\ + \ role network-admin\nusername boxen password 5 $5$rFrywOjz$buvWY6uEPf79GVyfGNO6SGOi5gbxV2VAcsbBtyXDZyB\ + \ role network-admin\nusername boxen passphrase lifetime 99999 warntime\ \ 14 gracetime 3\nip domain-lookup\ncopp profile strict\nsnmp-server user\ \ admin network-admin auth md5 0xd42fc9f6e153a348e1ab40f0f5b84589 priv 0xd42fc9f6e153a348e1ab40f0f5b84589\ - \ localizedkey\nsnmp-server user vrnetlab network-admin auth md5 0x1a3abb28531cf988a22cc61af30861a7\ - \ priv 0x1a3abb28531cf988a22cc61af30861a7 localizedkey\nrmon event 1 description\ + \ localizedkey\nsnmp-server user boxen network-admin auth md5 0xc168bfc2b500129bd35ee550b6d5d93d\ + \ priv 0xc168bfc2b500129bd35ee550b6d5d93d localizedkey\nrmon event 1 description\ \ FATAL(1) owner PMON@FATAL\nrmon event 2 description CRITICAL(2) owner PMON@CRITICAL\n\ rmon event 3 description ERROR(3) owner PMON@ERROR\nrmon event 4 description\ \ WARNING(4) owner PMON@WARNING\nrmon event 5 description INFORMATION(5) owner\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_nxos-system].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_nxos-system].yaml index 014e377..2875bce 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_nxos-system].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_nxos-system].yaml @@ -2,7 +2,7 @@ localhost:22022:SystemTransport::0: connection_profile: host: localhost port: 22022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -66,7 +66,7 @@ localhost:22022:SystemTransport::0: - channel_output: "dir bootflash: | i 'bytes free'" expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n 1950605312 bytes free\nswitch# " + - channel_output: "\n 1950945280 bytes free\nswitch# " expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nswitch# " @@ -332,10 +332,10 @@ localhost:22022:SystemTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nswitch-tcl# " - expected_channel_input: puts -nonewline $fl {username vrnetlab password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3 role + expected_channel_input: puts -nonewline $fl {username boxen password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3 role network-admin expected_channel_input_redacted: false - - channel_output: puts -nonewline $fl {username vrnetlab password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3 role + - channel_output: puts -nonewline $fl {username boxen password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3 role network-admin expected_channel_input: "\n" expected_channel_input_redacted: false @@ -346,11 +346,11 @@ localhost:22022:SystemTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nswitch-tcl# " - expected_channel_input: puts -nonewline $fl {username vrnetlab passphrase lifetime + expected_channel_input: puts -nonewline $fl {username boxen passphrase lifetime 99999 warntime 14 gracetime 3 expected_channel_input_redacted: false - - channel_output: puts -nonewline $fl {username vrnetlab passphrase lifetime - 99999 warntime 14 gracetime 3 + - channel_output: puts -nonewline $fl {username boxen passphrase lifetime 99999 + warntime 14 gracetime 3 expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\n> " @@ -400,12 +400,12 @@ localhost:22022:SystemTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nswitch-tcl# " - expected_channel_input: puts -nonewline $fl {snmp-server user vrnetlab network-admin + expected_channel_input: puts -nonewline $fl {snmp-server user boxen network-admin auth md5 0x1a3abb28531cf988a22cc61af30861a7 priv 0x1a3abb28531cf988a22cc61af30861a7 localizedkey expected_channel_input_redacted: false - - channel_output: puts -nonewline $fl {snmp-server user vrnetlab network-admin - auth md5 0x1a3abb28531cf988a22cc61af30861a7 priv 0x1a3abb28531cf988a22cc61af30861a7 + - channel_output: puts -nonewline $fl {snmp-server user boxen network-admin auth + md5 0x1a3abb28531cf988a22cc61af30861a7 priv 0x1a3abb28531cf988a22cc61af30861a7 localizedkey expected_channel_input: "\n" expected_channel_input_redacted: false @@ -3721,7 +3721,7 @@ localhost:22022:SystemTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\n\n!Command: show running-config\n!Running configuration last\ - \ done at: Tue Apr 27 16:04:25 2021\n!Time: Tue Apr 27 19:50:28 2021\n\nversion\ + \ done at: Sat May 29 12:38:33 2021\n!Time: Sat May 29 13:23:28 2021\n\nversion\ \ 9.2(4) Bios:version \nvdc switch id 1\n limit-resource vlan minimum 16\ \ maximum 4094\n limit-resource vrf minimum 2 maximum 4096\n limit-resource\ \ port-channel minimum 0 maximum 511\n limit-resource u4route-mem minimum\ @@ -3729,12 +3729,12 @@ localhost:22022:SystemTransport::0: \ m4route-mem minimum 58 maximum 58\n limit-resource m6route-mem minimum\ \ 8 maximum 8\nfeature telnet\nfeature nxapi\nfeature scp-server\n\nno password\ \ strength-check\nusername admin password 5 $5$LOIMHI$hIaO64VM40/x.MTQoeWg8/IAn2iBY5jv4WZyzQbb5q9\ - \ role network-admin\nusername vrnetlab password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3\ - \ role network-admin\nusername vrnetlab passphrase lifetime 99999 warntime\ + \ role network-admin\nusername boxen password 5 $5$rFrywOjz$buvWY6uEPf79GVyfGNO6SGOi5gbxV2VAcsbBtyXDZyB\ + \ role network-admin\nusername boxen passphrase lifetime 99999 warntime\ \ 14 gracetime 3\nip domain-lookup\ncopp profile strict\nsnmp-server user\ \ admin network-admin auth md5 0xd42fc9f6e153a348e1ab40f0f5b84589 priv 0xd42fc9f6e153a348e1ab40f0f5b84589\ - \ localizedkey\nsnmp-server user vrnetlab network-admin auth md5 0x1a3abb28531cf988a22cc61af30861a7\ - \ priv 0x1a3abb28531cf988a22cc61af30861a7 localizedkey\nrmon event 1 description\ + \ localizedkey\nsnmp-server user boxen network-admin auth md5 0xc168bfc2b500129bd35ee550b6d5d93d\ + \ priv 0xc168bfc2b500129bd35ee550b6d5d93d localizedkey\nrmon event 1 description\ \ FATAL(1) owner PMON@FATAL\nrmon event 2 description CRITICAL(2) owner PMON@CRITICAL\n\ rmon event 3 description ERROR(3) owner PMON@ERROR\nrmon event 4 description\ \ WARNING(4) owner PMON@WARNING\nrmon event 5 description INFORMATION(5) owner\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_nxos-telnet].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_nxos-telnet].yaml index e7808a9..049c589 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_nxos-telnet].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[cisco_nxos-telnet].yaml @@ -2,7 +2,7 @@ localhost:22023:TelnetTransport::0: connection_profile: host: localhost port: 22023 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -11,7 +11,7 @@ localhost:22023:TelnetTransport::0: auth_secondary: true interactions: - channel_output: "User Access Verification\nlogin: " - expected_channel_input: vrnetlab + expected_channel_input: boxen expected_channel_input_redacted: false - channel_output: '' expected_channel_input: "\n" @@ -71,7 +71,7 @@ localhost:22023:TelnetTransport::0: - channel_output: "dir bootflash: | i 'bytes free'" expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n 1950605312 bytes free\nswitch# " + - channel_output: "\n 1950945280 bytes free\nswitch# " expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nswitch# " @@ -337,10 +337,10 @@ localhost:22023:TelnetTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nswitch-tcl# " - expected_channel_input: puts -nonewline $fl {username vrnetlab password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3 role + expected_channel_input: puts -nonewline $fl {username boxen password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3 role network-admin expected_channel_input_redacted: false - - channel_output: puts -nonewline $fl {username vrnetlab password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3 role + - channel_output: puts -nonewline $fl {username boxen password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3 role network-admin expected_channel_input: "\n" expected_channel_input_redacted: false @@ -351,11 +351,11 @@ localhost:22023:TelnetTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nswitch-tcl# " - expected_channel_input: puts -nonewline $fl {username vrnetlab passphrase lifetime + expected_channel_input: puts -nonewline $fl {username boxen passphrase lifetime 99999 warntime 14 gracetime 3 expected_channel_input_redacted: false - - channel_output: puts -nonewline $fl {username vrnetlab passphrase lifetime - 99999 warntime 14 gracetime 3 + - channel_output: puts -nonewline $fl {username boxen passphrase lifetime 99999 + warntime 14 gracetime 3 expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\n> " @@ -405,12 +405,12 @@ localhost:22023:TelnetTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nswitch-tcl# " - expected_channel_input: puts -nonewline $fl {snmp-server user vrnetlab network-admin + expected_channel_input: puts -nonewline $fl {snmp-server user boxen network-admin auth md5 0x1a3abb28531cf988a22cc61af30861a7 priv 0x1a3abb28531cf988a22cc61af30861a7 localizedkey expected_channel_input_redacted: false - - channel_output: puts -nonewline $fl {snmp-server user vrnetlab network-admin - auth md5 0x1a3abb28531cf988a22cc61af30861a7 priv 0x1a3abb28531cf988a22cc61af30861a7 + - channel_output: puts -nonewline $fl {snmp-server user boxen network-admin auth + md5 0x1a3abb28531cf988a22cc61af30861a7 priv 0x1a3abb28531cf988a22cc61af30861a7 localizedkey expected_channel_input: "\n" expected_channel_input_redacted: false @@ -3726,7 +3726,7 @@ localhost:22023:TelnetTransport::0: expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\n\n!Command: show running-config\n!Running configuration last\ - \ done at: Tue Apr 27 16:04:25 2021\n!Time: Tue Apr 27 19:53:18 2021\n\nversion\ + \ done at: Sat May 29 12:38:33 2021\n!Time: Sat May 29 13:26:06 2021\n\nversion\ \ 9.2(4) Bios:version \nvdc switch id 1\n limit-resource vlan minimum 16\ \ maximum 4094\n limit-resource vrf minimum 2 maximum 4096\n limit-resource\ \ port-channel minimum 0 maximum 511\n limit-resource u4route-mem minimum\ @@ -3734,12 +3734,12 @@ localhost:22023:TelnetTransport::0: \ m4route-mem minimum 58 maximum 58\n limit-resource m6route-mem minimum\ \ 8 maximum 8\nfeature telnet\nfeature nxapi\nfeature scp-server\n\nno password\ \ strength-check\nusername admin password 5 $5$LOIMHI$hIaO64VM40/x.MTQoeWg8/IAn2iBY5jv4WZyzQbb5q9\ - \ role network-admin\nusername vrnetlab password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3\ - \ role network-admin\nusername vrnetlab passphrase lifetime 99999 warntime\ + \ role network-admin\nusername boxen password 5 $5$rFrywOjz$buvWY6uEPf79GVyfGNO6SGOi5gbxV2VAcsbBtyXDZyB\ + \ role network-admin\nusername boxen passphrase lifetime 99999 warntime\ \ 14 gracetime 3\nip domain-lookup\ncopp profile strict\nsnmp-server user\ \ admin network-admin auth md5 0xd42fc9f6e153a348e1ab40f0f5b84589 priv 0xd42fc9f6e153a348e1ab40f0f5b84589\ - \ localizedkey\nsnmp-server user vrnetlab network-admin auth md5 0x1a3abb28531cf988a22cc61af30861a7\ - \ priv 0x1a3abb28531cf988a22cc61af30861a7 localizedkey\nrmon event 1 description\ + \ localizedkey\nsnmp-server user boxen network-admin auth md5 0xc168bfc2b500129bd35ee550b6d5d93d\ + \ priv 0xc168bfc2b500129bd35ee550b6d5d93d localizedkey\nrmon event 1 description\ \ FATAL(1) owner PMON@FATAL\nrmon event 2 description CRITICAL(2) owner PMON@CRITICAL\n\ rmon event 3 description ERROR(3) owner PMON@ERROR\nrmon event 4 description\ \ WARNING(4) owner PMON@WARNING\nrmon event 5 description INFORMATION(5) owner\ diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[juniper_junos-paramiko].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[juniper_junos-paramiko].yaml index 538f62b..2db9793 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[juniper_junos-paramiko].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[juniper_junos-paramiko].yaml @@ -2,7 +2,7 @@ localhost:25022:ParamikoTransport::0: connection_profile: host: localhost port: 25022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -13,34 +13,35 @@ localhost:25022:ParamikoTransport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n--- JUNOS 17.3R2.10 built 2018-02-08 02:19:07 UTC\nvrnetlab> " + - channel_output: "\n--- JUNOS 17.3R2.10 built 2018-02-08 02:19:07 UTC\nboxen> " expected_channel_input: set cli screen-length 0 expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> set cli screen-length 0" + - channel_output: "\nset cli screen-length 0" expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nScreen length set to 0\n\nvrnetlab> " + - channel_output: "\nboxen> set cli screen-length 0 \nScreen length set to 0\n\ + \nboxen> " expected_channel_input: set cli screen-width 511 expected_channel_input_redacted: false - channel_output: set cli screen-width 511 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nScreen width set to 511\n\nvrnetlab> " + - channel_output: " \nScreen width set to 511\n\nboxen> " expected_channel_input: set cli complete-on-space off expected_channel_input_redacted: false - channel_output: set cli complete-on-space off expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nDisabling complete-on-space\n\nvrnetlab> " + - channel_output: " \nDisabling complete-on-space\n\nboxen> " expected_channel_input: 'show version | grep junos:' expected_channel_input_redacted: false - channel_output: 'show version | grep junos:' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nJunos: 17.3R2.10\n\nvrnetlab> " + - channel_output: " \nJunos: 17.3R2.10\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: start shell user root expected_channel_input_redacted: false - channel_output: start shell user root @@ -57,10 +58,10 @@ localhost:25022:ParamikoTransport::0: expected_channel_input_redacted: false - channel_output: "\nroot@% " expected_channel_input: "echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ '## Last\ - \ commit: 2021-03-07 19:15:24 UTC by vrnetlab'" + \ commit: 2021-03-07 19:15:24 UTC by boxen'" expected_channel_input_redacted: false - channel_output: "echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ '## Last commit:\ - \ 2021-03-07 19:15:24 UTC by vrnetlab'" + \ 2021-03-07 19:15:24 UTC by boxen'" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nroot@% " @@ -87,11 +88,11 @@ localhost:25022:ParamikoTransport::0: expected_channel_input_redacted: false - channel_output: "\nroot@% " expected_channel_input: "echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' \ - \ encrypted-password \"$6$dWt4Lg4V$wiqols.Ou//eIg.3kpdu98L9hSzA7VSytcnV4NWI3S2BKM4rfruJf5JKLBdihyCyEgUVHb1Rw3xHIVxQR/O0F.\"\ + \ encrypted-password \"$6$Adf5A57s$5Iu/Tdzi/qQuSA.9tV.przrz51avKm.6TvJMBF42zODEM/d7.cvk2Y/kIeLinV5R.HGEEOOD6wane6Xs6rbfT0\"\ ; ## SECRET-DATA'" expected_channel_input_redacted: false - channel_output: "echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' encrypted-password\ - \ \"$6$dWt4Lg4V$wiqols.Ou//eIg.3kpdu98L9hSzA7VSytcnV4NWI3S2BKM4rfruJf5JKLBdihyCyEgUVHb1Rw3xHIVxQR/O0F.\"\ + \ \"$6$Adf5A57s$5Iu/Tdzi/qQuSA.9tV.przrz51avKm.6TvJMBF42zODEM/d7.cvk2Y/kIeLinV5R.HGEEOOD6wane6Xs6rbfT0\"\ ; ## SECRET-DATA'" expected_channel_input: "\n" expected_channel_input_redacted: false @@ -110,9 +111,9 @@ localhost:25022:ParamikoTransport::0: expected_channel_input_redacted: false - channel_output: "\nroot@% " expected_channel_input: echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' user - vrnetlab {' + boxen {' expected_channel_input_redacted: false - - channel_output: echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' user vrnetlab + - channel_output: echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' user boxen {' expected_channel_input: "\n" expected_channel_input_redacted: false @@ -142,11 +143,11 @@ localhost:25022:ParamikoTransport::0: expected_channel_input_redacted: false - channel_output: "\nroot@% " expected_channel_input: "echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' \ - \ encrypted-password \"$6$1tKhsTEi$VjaGckqjhgSqaZf5rrWqlhDkI1xAsaTWxFRtVQQnpE4qaeIWFuQUZ3GulwPfBYq2RLSTTl/ZnyyZJrcBl.7lP0\"\ + \ encrypted-password \"$6$SDiXXE9D$KTq4es.BGkdh5IlSxbDhCFn8yWkaFxsjEhmbi4cd53hc9aNfOVmtL1iJiQKEUkgQOdYRvyJetjzygVsVR3CCf.\"\ ; ## SECRET-DATA'" expected_channel_input_redacted: false - channel_output: "echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' \ - \ encrypted-password \"$6$1tKhsTEi$VjaGckqjhgSqaZf5rrWqlhDkI1xAsaTWxFRtVQQnpE4qaeIWFuQUZ3GulwPfBYq2RLSTTl/ZnyyZJrcBl.7lP0\"\ + \ encrypted-password \"$6$SDiXXE9D$KTq4es.BGkdh5IlSxbDhCFn8yWkaFxsjEhmbi4cd53hc9aNfOVmtL1iJiQKEUkgQOdYRvyJetjzygVsVR3CCf.\"\ ; ## SECRET-DATA'" expected_channel_input: "\n" expected_channel_input_redacted: false @@ -871,42 +872,42 @@ localhost:25022:ParamikoTransport::0: - channel_output: exit expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nexit\n\nvrnetlab> " + - channel_output: "\nexit\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: configure expected_channel_input_redacted: false - channel_output: configure expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nEntering configuration mode\n\n[edit]\nvrnetlab# " + - channel_output: " \nEntering configuration mode\n\n[edit]\nboxen# " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n[edit]\nvrnetlab# " + - channel_output: "\n\n[edit]\nboxen# " expected_channel_input: load override /config/__SCRAPLI_CFG_SESSION_NAME__ expected_channel_input_redacted: false - channel_output: load override /config/__SCRAPLI_CFG_SESSION_NAME__ expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \n|\bload complete\n\n[edit]\nvrnetlab# " + - channel_output: " \n|\bload complete\n\n[edit]\nboxen# " expected_channel_input: show | compare expected_channel_input_redacted: false - channel_output: show | compare expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \n\n[edit]\nvrnetlab# " + - channel_output: " \n\n[edit]\nboxen# " expected_channel_input: run show configuration expected_channel_input_redacted: false - channel_output: run show configuration expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \n## Last commit: 2021-04-27 19:55:23 UTC by vrnetlab\nversion\ + - channel_output: " \n## Last commit: 2021-05-29 17:12:16 UTC by boxen\nversion\ \ 17.3R2.10;\nsystem {\n root-authentication {\n encrypted-password\ - \ \"$6$dWt4Lg4V$wiqols.Ou//eIg.3kpdu98L9hSzA7VSytcnV4NWI3S2BKM4rfruJf5JKLBdihyCyEgUVHb1Rw3xHIVxQR/O0F.\"\ - ; ## SECRET-DATA\n }\n login {\n user vrnetlab {\n \ - \ uid 2000;\n class super-user;\n authentication {\n\ - \ encrypted-password \"$6$1tKhsTEi$VjaGckqjhgSqaZf5rrWqlhDkI1xAsaTWxFRtVQQnpE4qaeIWFuQUZ3GulwPfBYq2RLSTTl/ZnyyZJrcBl.7lP0\"\ + \ \"$6$Adf5A57s$5Iu/Tdzi/qQuSA.9tV.przrz51avKm.6TvJMBF42zODEM/d7.cvk2Y/kIeLinV5R.HGEEOOD6wane6Xs6rbfT0\"\ + ; ## SECRET-DATA\n }\n login {\n user boxen {\n uid\ + \ 2000;\n class super-user;\n authentication {\n \ + \ encrypted-password \"$6$SDiXXE9D$KTq4es.BGkdh5IlSxbDhCFn8yWkaFxsjEhmbi4cd53hc9aNfOVmtL1iJiQKEUkgQOdYRvyJetjzygVsVR3CCf.\"\ ; ## SECRET-DATA\n }\n }\n }\n services {\n \ \ ssh {\n protocol-version v2;\n }\n telnet;\n \ \ netconf {\n ssh;\n }\n web-management {\n\ @@ -938,25 +939,25 @@ localhost:25022:ParamikoTransport::0: \ tcp-rst;\n }\n security-zone untrust {\n \ \ screen untrust-screen;\n }\n }\n}\ninterfaces {\n fxp0 {\n\ \ unit 0 {\n family inet {\n address 10.0.0.15/24;\n\ - \ }\n }\n }\n}\n\n[edit]\nvrnetlab# " + \ }\n }\n }\n}\n\n[edit]\nboxen# " expected_channel_input: commit expected_channel_input_redacted: false - channel_output: commit expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \ncommit complete\n\n[edit]\nvrnetlab# " + - channel_output: " \ncommit complete\n\n[edit]\nboxen# " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n[edit]\nvrnetlab# " + - channel_output: "\n\n[edit]\nboxen# " expected_channel_input: exit configuration-mode expected_channel_input_redacted: false - channel_output: exit configuration-mode expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nExiting configuration mode\n\nvrnetlab> " + - channel_output: " \nExiting configuration mode\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: start shell user root expected_channel_input_redacted: false - channel_output: start shell user root @@ -986,10 +987,10 @@ localhost:25022:ParamikoTransport::0: - channel_output: exit expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nexit\n\nvrnetlab> " + - channel_output: "\nexit\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: exit expected_channel_input_redacted: false - channel_output: '' diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[juniper_junos-ssh2].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[juniper_junos-ssh2].yaml index c804844..5485054 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[juniper_junos-ssh2].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[juniper_junos-ssh2].yaml @@ -2,7 +2,7 @@ localhost:25022:Ssh2Transport::0: connection_profile: host: localhost port: 25022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -13,34 +13,34 @@ localhost:25022:Ssh2Transport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n--- JUNOS 17.3R2.10 built 2018-02-08 02:19:07 UTC\nvrnetlab> " + - channel_output: "\n--- JUNOS 17.3R2.10 built 2018-02-08 02:19:07 UTC\nboxen> " expected_channel_input: set cli screen-length 0 expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> set cli screen-length 0" + - channel_output: "\n\nboxen> set cli screen-length 0" expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nScreen length set to 0\n\nvrnetlab> " + - channel_output: " \nScreen length set to 0\n\nboxen> " expected_channel_input: set cli screen-width 511 expected_channel_input_redacted: false - channel_output: set cli screen-width 511 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nScreen width set to 511\n\nvrnetlab> " + - channel_output: " \nScreen width set to 511\n\nboxen> " expected_channel_input: set cli complete-on-space off expected_channel_input_redacted: false - channel_output: set cli complete-on-space off expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nDisabling complete-on-space\n\nvrnetlab> " + - channel_output: " \nDisabling complete-on-space\n\nboxen> " expected_channel_input: 'show version | grep junos:' expected_channel_input_redacted: false - channel_output: 'show version | grep junos:' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nJunos: 17.3R2.10\n\nvrnetlab> " + - channel_output: " \nJunos: 17.3R2.10\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: start shell user root expected_channel_input_redacted: false - channel_output: start shell user root @@ -57,10 +57,10 @@ localhost:25022:Ssh2Transport::0: expected_channel_input_redacted: false - channel_output: "\nroot@% " expected_channel_input: "echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ '## Last\ - \ commit: 2021-03-07 19:15:24 UTC by vrnetlab'" + \ commit: 2021-03-07 19:15:24 UTC by boxen'" expected_channel_input_redacted: false - channel_output: "echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ '## Last commit:\ - \ 2021-03-07 19:15:24 UTC by vrnetlab'" + \ 2021-03-07 19:15:24 UTC by boxen'" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nroot@% " @@ -87,11 +87,11 @@ localhost:25022:Ssh2Transport::0: expected_channel_input_redacted: false - channel_output: "\nroot@% " expected_channel_input: "echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' \ - \ encrypted-password \"$6$dWt4Lg4V$wiqols.Ou//eIg.3kpdu98L9hSzA7VSytcnV4NWI3S2BKM4rfruJf5JKLBdihyCyEgUVHb1Rw3xHIVxQR/O0F.\"\ + \ encrypted-password \"$6$Adf5A57s$5Iu/Tdzi/qQuSA.9tV.przrz51avKm.6TvJMBF42zODEM/d7.cvk2Y/kIeLinV5R.HGEEOOD6wane6Xs6rbfT0\"\ ; ## SECRET-DATA'" expected_channel_input_redacted: false - channel_output: "echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' encrypted-password\ - \ \"$6$dWt4Lg4V$wiqols.Ou//eIg.3kpdu98L9hSzA7VSytcnV4NWI3S2BKM4rfruJf5JKLBdihyCyEgUVHb1Rw3xHIVxQR/O0F.\"\ + \ \"$6$Adf5A57s$5Iu/Tdzi/qQuSA.9tV.przrz51avKm.6TvJMBF42zODEM/d7.cvk2Y/kIeLinV5R.HGEEOOD6wane6Xs6rbfT0\"\ ; ## SECRET-DATA'" expected_channel_input: "\n" expected_channel_input_redacted: false @@ -110,9 +110,9 @@ localhost:25022:Ssh2Transport::0: expected_channel_input_redacted: false - channel_output: "\nroot@% " expected_channel_input: echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' user - vrnetlab {' + boxen {' expected_channel_input_redacted: false - - channel_output: echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' user vrnetlab + - channel_output: echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' user boxen {' expected_channel_input: "\n" expected_channel_input_redacted: false @@ -142,11 +142,11 @@ localhost:25022:Ssh2Transport::0: expected_channel_input_redacted: false - channel_output: "\nroot@% " expected_channel_input: "echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' \ - \ encrypted-password \"$6$1tKhsTEi$VjaGckqjhgSqaZf5rrWqlhDkI1xAsaTWxFRtVQQnpE4qaeIWFuQUZ3GulwPfBYq2RLSTTl/ZnyyZJrcBl.7lP0\"\ + \ encrypted-password \"$6$SDiXXE9D$KTq4es.BGkdh5IlSxbDhCFn8yWkaFxsjEhmbi4cd53hc9aNfOVmtL1iJiQKEUkgQOdYRvyJetjzygVsVR3CCf.\"\ ; ## SECRET-DATA'" expected_channel_input_redacted: false - channel_output: "echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' \ - \ encrypted-password \"$6$1tKhsTEi$VjaGckqjhgSqaZf5rrWqlhDkI1xAsaTWxFRtVQQnpE4qaeIWFuQUZ3GulwPfBYq2RLSTTl/ZnyyZJrcBl.7lP0\"\ + \ encrypted-password \"$6$SDiXXE9D$KTq4es.BGkdh5IlSxbDhCFn8yWkaFxsjEhmbi4cd53hc9aNfOVmtL1iJiQKEUkgQOdYRvyJetjzygVsVR3CCf.\"\ ; ## SECRET-DATA'" expected_channel_input: "\n" expected_channel_input_redacted: false @@ -871,42 +871,42 @@ localhost:25022:Ssh2Transport::0: - channel_output: exit expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nexit\n\nvrnetlab> " + - channel_output: "\nexit\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: configure expected_channel_input_redacted: false - channel_output: configure expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nEntering configuration mode\n\n[edit]\nvrnetlab# " + - channel_output: " \nEntering configuration mode\n\n[edit]\nboxen# " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n[edit]\nvrnetlab# " + - channel_output: "\n\n[edit]\nboxen# " expected_channel_input: load override /config/__SCRAPLI_CFG_SESSION_NAME__ expected_channel_input_redacted: false - channel_output: load override /config/__SCRAPLI_CFG_SESSION_NAME__ expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \n|\bload complete\n\n[edit]\nvrnetlab# " + - channel_output: " \n|\bload complete\n\n[edit]\nboxen# " expected_channel_input: show | compare expected_channel_input_redacted: false - channel_output: show | compare expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \n\n[edit]\nvrnetlab# " + - channel_output: " \n\n[edit]\nboxen# " expected_channel_input: run show configuration expected_channel_input_redacted: false - channel_output: run show configuration expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \n## Last commit: 2021-04-27 19:55:04 UTC by vrnetlab\nversion\ + - channel_output: " \n## Last commit: 2021-05-29 17:11:13 UTC by boxen\nversion\ \ 17.3R2.10;\nsystem {\n root-authentication {\n encrypted-password\ - \ \"$6$dWt4Lg4V$wiqols.Ou//eIg.3kpdu98L9hSzA7VSytcnV4NWI3S2BKM4rfruJf5JKLBdihyCyEgUVHb1Rw3xHIVxQR/O0F.\"\ - ; ## SECRET-DATA\n }\n login {\n user vrnetlab {\n \ - \ uid 2000;\n class super-user;\n authentication {\n\ - \ encrypted-password \"$6$1tKhsTEi$VjaGckqjhgSqaZf5rrWqlhDkI1xAsaTWxFRtVQQnpE4qaeIWFuQUZ3GulwPfBYq2RLSTTl/ZnyyZJrcBl.7lP0\"\ + \ \"$6$Adf5A57s$5Iu/Tdzi/qQuSA.9tV.przrz51avKm.6TvJMBF42zODEM/d7.cvk2Y/kIeLinV5R.HGEEOOD6wane6Xs6rbfT0\"\ + ; ## SECRET-DATA\n }\n login {\n user boxen {\n uid\ + \ 2000;\n class super-user;\n authentication {\n \ + \ encrypted-password \"$6$SDiXXE9D$KTq4es.BGkdh5IlSxbDhCFn8yWkaFxsjEhmbi4cd53hc9aNfOVmtL1iJiQKEUkgQOdYRvyJetjzygVsVR3CCf.\"\ ; ## SECRET-DATA\n }\n }\n }\n services {\n \ \ ssh {\n protocol-version v2;\n }\n telnet;\n \ \ netconf {\n ssh;\n }\n web-management {\n\ @@ -938,25 +938,25 @@ localhost:25022:Ssh2Transport::0: \ tcp-rst;\n }\n security-zone untrust {\n \ \ screen untrust-screen;\n }\n }\n}\ninterfaces {\n fxp0 {\n\ \ unit 0 {\n family inet {\n address 10.0.0.15/24;\n\ - \ }\n }\n }\n}\n\n[edit]\nvrnetlab# " + \ }\n }\n }\n}\n\n[edit]\nboxen# " expected_channel_input: commit expected_channel_input_redacted: false - channel_output: commit expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \ncommit complete\n\n[edit]\nvrnetlab# " + - channel_output: " \ncommit complete\n\n[edit]\nboxen# " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n[edit]\nvrnetlab# " + - channel_output: "\n\n[edit]\nboxen# " expected_channel_input: exit configuration-mode expected_channel_input_redacted: false - channel_output: exit configuration-mode expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nExiting configuration mode\n\nvrnetlab> " + - channel_output: " \nExiting configuration mode\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: start shell user root expected_channel_input_redacted: false - channel_output: start shell user root @@ -986,10 +986,10 @@ localhost:25022:Ssh2Transport::0: - channel_output: exit expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nexit\n\nvrnetlab> " + - channel_output: "\nexit\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: exit expected_channel_input_redacted: false - channel_output: '' diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[juniper_junos-system].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[juniper_junos-system].yaml index 2b033a3..d87a2e2 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[juniper_junos-system].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[juniper_junos-system].yaml @@ -2,7 +2,7 @@ localhost:25022:SystemTransport::0: connection_profile: host: localhost port: 25022 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -17,37 +17,37 @@ localhost:25022:SystemTransport::0: - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n--- JUNOS 17.3R2.10 built 2018-02-08 02:19:07 UTC\nvrnetlab> " + - channel_output: "\n--- JUNOS 17.3R2.10 built 2018-02-08 02:19:07 UTC\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: set cli screen-length 0 expected_channel_input_redacted: false - channel_output: set cli screen-length 0 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nScreen length set to 0\n\nvrnetlab> " + - channel_output: " \nScreen length set to 0\n\nboxen> " expected_channel_input: set cli screen-width 511 expected_channel_input_redacted: false - channel_output: set cli screen-width 511 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nScreen width set to 511\n\nvrnetlab> " + - channel_output: " \nScreen width set to 511\n\nboxen> " expected_channel_input: set cli complete-on-space off expected_channel_input_redacted: false - channel_output: set cli complete-on-space off expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nDisabling complete-on-space\n\nvrnetlab> " + - channel_output: " \nDisabling complete-on-space\n\nboxen> " expected_channel_input: 'show version | grep junos:' expected_channel_input_redacted: false - channel_output: 'show version | grep junos:' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nJunos: 17.3R2.10\n\nvrnetlab> " + - channel_output: " \nJunos: 17.3R2.10\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: start shell user root expected_channel_input_redacted: false - channel_output: start shell user root @@ -64,10 +64,10 @@ localhost:25022:SystemTransport::0: expected_channel_input_redacted: false - channel_output: "\nroot@% " expected_channel_input: "echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ '## Last\ - \ commit: 2021-03-07 19:15:24 UTC by vrnetlab'" + \ commit: 2021-03-07 19:15:24 UTC by boxen'" expected_channel_input_redacted: false - channel_output: "echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ '## Last commit:\ - \ 2021-03-07 19:15:24 UTC by vrnetlab'" + \ 2021-03-07 19:15:24 UTC by boxen'" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nroot@% " @@ -94,11 +94,11 @@ localhost:25022:SystemTransport::0: expected_channel_input_redacted: false - channel_output: "\nroot@% " expected_channel_input: "echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' \ - \ encrypted-password \"$6$dWt4Lg4V$wiqols.Ou//eIg.3kpdu98L9hSzA7VSytcnV4NWI3S2BKM4rfruJf5JKLBdihyCyEgUVHb1Rw3xHIVxQR/O0F.\"\ + \ encrypted-password \"$6$Adf5A57s$5Iu/Tdzi/qQuSA.9tV.przrz51avKm.6TvJMBF42zODEM/d7.cvk2Y/kIeLinV5R.HGEEOOD6wane6Xs6rbfT0\"\ ; ## SECRET-DATA'" expected_channel_input_redacted: false - channel_output: "echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' encrypted-password\ - \ \"$6$dWt4Lg4V$wiqols.Ou//eIg.3kpdu98L9hSzA7VSytcnV4NWI3S2BKM4rfruJf5JKLBdihyCyEgUVHb1Rw3xHIVxQR/O0F.\"\ + \ \"$6$Adf5A57s$5Iu/Tdzi/qQuSA.9tV.przrz51avKm.6TvJMBF42zODEM/d7.cvk2Y/kIeLinV5R.HGEEOOD6wane6Xs6rbfT0\"\ ; ## SECRET-DATA'" expected_channel_input: "\n" expected_channel_input_redacted: false @@ -117,9 +117,9 @@ localhost:25022:SystemTransport::0: expected_channel_input_redacted: false - channel_output: "\nroot@% " expected_channel_input: echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' user - vrnetlab {' + boxen {' expected_channel_input_redacted: false - - channel_output: echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' user vrnetlab + - channel_output: echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' user boxen {' expected_channel_input: "\n" expected_channel_input_redacted: false @@ -149,11 +149,11 @@ localhost:25022:SystemTransport::0: expected_channel_input_redacted: false - channel_output: "\nroot@% " expected_channel_input: "echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' \ - \ encrypted-password \"$6$1tKhsTEi$VjaGckqjhgSqaZf5rrWqlhDkI1xAsaTWxFRtVQQnpE4qaeIWFuQUZ3GulwPfBYq2RLSTTl/ZnyyZJrcBl.7lP0\"\ + \ encrypted-password \"$6$SDiXXE9D$KTq4es.BGkdh5IlSxbDhCFn8yWkaFxsjEhmbi4cd53hc9aNfOVmtL1iJiQKEUkgQOdYRvyJetjzygVsVR3CCf.\"\ ; ## SECRET-DATA'" expected_channel_input_redacted: false - channel_output: "echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' \ - \ encrypted-password \"$6$1tKhsTEi$VjaGckqjhgSqaZf5rrWqlhDkI1xAsaTWxFRtVQQnpE4qaeIWFuQUZ3GulwPfBYq2RLSTTl/ZnyyZJrcBl.7lP0\"\ + \ encrypted-password \"$6$SDiXXE9D$KTq4es.BGkdh5IlSxbDhCFn8yWkaFxsjEhmbi4cd53hc9aNfOVmtL1iJiQKEUkgQOdYRvyJetjzygVsVR3CCf.\"\ ; ## SECRET-DATA'" expected_channel_input: "\n" expected_channel_input_redacted: false @@ -878,42 +878,42 @@ localhost:25022:SystemTransport::0: - channel_output: exit expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nexit\n\nvrnetlab> " + - channel_output: "\nexit\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: configure expected_channel_input_redacted: false - channel_output: configure expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nEntering configuration mode\n\n[edit]\nvrnetlab# " + - channel_output: " \nEntering configuration mode\n\n[edit]\nboxen# " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n[edit]\nvrnetlab# " + - channel_output: "\n\n[edit]\nboxen# " expected_channel_input: load override /config/__SCRAPLI_CFG_SESSION_NAME__ expected_channel_input_redacted: false - channel_output: load override /config/__SCRAPLI_CFG_SESSION_NAME__ expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \n|\bload complete\n\n[edit]\nvrnetlab# " + - channel_output: " \n|\bload complete\n\n[edit]\nboxen# " expected_channel_input: show | compare expected_channel_input_redacted: false - channel_output: show | compare expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \n\n[edit]\nvrnetlab# " + - channel_output: " \n\n[edit]\nboxen# " expected_channel_input: run show configuration expected_channel_input_redacted: false - channel_output: run show configuration expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \n## Last commit: 2021-04-27 19:35:05 UTC by vrnetlab\nversion\ + - channel_output: " \n## Last commit: 2021-05-29 17:10:28 UTC by boxen\nversion\ \ 17.3R2.10;\nsystem {\n root-authentication {\n encrypted-password\ - \ \"$6$dWt4Lg4V$wiqols.Ou//eIg.3kpdu98L9hSzA7VSytcnV4NWI3S2BKM4rfruJf5JKLBdihyCyEgUVHb1Rw3xHIVxQR/O0F.\"\ - ; ## SECRET-DATA\n }\n login {\n user vrnetlab {\n \ - \ uid 2000;\n class super-user;\n authentication {\n\ - \ encrypted-password \"$6$1tKhsTEi$VjaGckqjhgSqaZf5rrWqlhDkI1xAsaTWxFRtVQQnpE4qaeIWFuQUZ3GulwPfBYq2RLSTTl/ZnyyZJrcBl.7lP0\"\ + \ \"$6$Adf5A57s$5Iu/Tdzi/qQuSA.9tV.przrz51avKm.6TvJMBF42zODEM/d7.cvk2Y/kIeLinV5R.HGEEOOD6wane6Xs6rbfT0\"\ + ; ## SECRET-DATA\n }\n login {\n user boxen {\n uid\ + \ 2000;\n class super-user;\n authentication {\n \ + \ encrypted-password \"$6$SDiXXE9D$KTq4es.BGkdh5IlSxbDhCFn8yWkaFxsjEhmbi4cd53hc9aNfOVmtL1iJiQKEUkgQOdYRvyJetjzygVsVR3CCf.\"\ ; ## SECRET-DATA\n }\n }\n }\n services {\n \ \ ssh {\n protocol-version v2;\n }\n telnet;\n \ \ netconf {\n ssh;\n }\n web-management {\n\ @@ -945,25 +945,25 @@ localhost:25022:SystemTransport::0: \ tcp-rst;\n }\n security-zone untrust {\n \ \ screen untrust-screen;\n }\n }\n}\ninterfaces {\n fxp0 {\n\ \ unit 0 {\n family inet {\n address 10.0.0.15/24;\n\ - \ }\n }\n }\n}\n\n[edit]\nvrnetlab# " + \ }\n }\n }\n}\n\n[edit]\nboxen# " expected_channel_input: commit expected_channel_input_redacted: false - channel_output: commit expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \ncommit complete\n\n[edit]\nvrnetlab# " + - channel_output: " \ncommit complete\n\n[edit]\nboxen# " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n[edit]\nvrnetlab# " + - channel_output: "\n\n[edit]\nboxen# " expected_channel_input: exit configuration-mode expected_channel_input_redacted: false - channel_output: exit configuration-mode expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nExiting configuration mode\n\nvrnetlab> " + - channel_output: " \nExiting configuration mode\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: start shell user root expected_channel_input_redacted: false - channel_output: start shell user root @@ -993,10 +993,10 @@ localhost:25022:SystemTransport::0: - channel_output: exit expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nexit\n\nvrnetlab> " + - channel_output: "\nexit\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: exit expected_channel_input_redacted: false - channel_output: '' diff --git a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[juniper_junos-telnet].yaml b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[juniper_junos-telnet].yaml index 70fb55d..e85456b 100644 --- a/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[juniper_junos-telnet].yaml +++ b/tests/integration/platform/scrapli_replay_sessions/test_load_config_replace_diff_and_commit[juniper_junos-telnet].yaml @@ -2,7 +2,7 @@ localhost:25023:TelnetTransport::0: connection_profile: host: localhost port: 25023 - auth_username: vrnetlab + auth_username: boxen auth_password: true auth_private_key: '' auth_private_key_passphrase: false @@ -11,48 +11,48 @@ localhost:25023:TelnetTransport::0: auth_secondary: true interactions: - channel_output: 'login: ' - expected_channel_input: vrnetlab + expected_channel_input: boxen expected_channel_input_redacted: false - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "vrnetlab\nPassword:" + - channel_output: 'Password:' expected_channel_input: REDACTED expected_channel_input_redacted: true - channel_output: '' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n--- JUNOS 17.3R2.10 built 2018-02-08 02:19:07 UTC\nvrnetlab> " + - channel_output: "\n\n--- JUNOS 17.3R2.10 built 2018-02-08 02:19:07 UTC\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: set cli screen-length 0 expected_channel_input_redacted: false - channel_output: set cli screen-length 0 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nScreen length set to 0\n\nvrnetlab> " + - channel_output: " \nScreen length set to 0\n\nboxen> " expected_channel_input: set cli screen-width 511 expected_channel_input_redacted: false - channel_output: set cli screen-width 511 expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nScreen width set to 511\n\nvrnetlab> " + - channel_output: " \nScreen width set to 511\n\nboxen> " expected_channel_input: set cli complete-on-space off expected_channel_input_redacted: false - channel_output: set cli complete-on-space off expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nDisabling complete-on-space\n\nvrnetlab> " + - channel_output: " \nDisabling complete-on-space\n\nboxen> " expected_channel_input: 'show version | grep junos:' expected_channel_input_redacted: false - channel_output: 'show version | grep junos:' expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nJunos: 17.3R2.10\n\nvrnetlab> " + - channel_output: " \nJunos: 17.3R2.10\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: start shell user root expected_channel_input_redacted: false - channel_output: start shell user root @@ -69,10 +69,10 @@ localhost:25023:TelnetTransport::0: expected_channel_input_redacted: false - channel_output: "\nroot@% " expected_channel_input: "echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ '## Last\ - \ commit: 2021-03-07 19:15:24 UTC by vrnetlab'" + \ commit: 2021-03-07 19:15:24 UTC by boxen'" expected_channel_input_redacted: false - channel_output: "echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ '## Last commit:\ - \ 2021-03-07 19:15:24 UTC by vrnetlab'" + \ 2021-03-07 19:15:24 UTC by boxen'" expected_channel_input: "\n" expected_channel_input_redacted: false - channel_output: "\nroot@% " @@ -99,11 +99,11 @@ localhost:25023:TelnetTransport::0: expected_channel_input_redacted: false - channel_output: "\nroot@% " expected_channel_input: "echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' \ - \ encrypted-password \"$6$dWt4Lg4V$wiqols.Ou//eIg.3kpdu98L9hSzA7VSytcnV4NWI3S2BKM4rfruJf5JKLBdihyCyEgUVHb1Rw3xHIVxQR/O0F.\"\ + \ encrypted-password \"$6$Adf5A57s$5Iu/Tdzi/qQuSA.9tV.przrz51avKm.6TvJMBF42zODEM/d7.cvk2Y/kIeLinV5R.HGEEOOD6wane6Xs6rbfT0\"\ ; ## SECRET-DATA'" expected_channel_input_redacted: false - channel_output: "echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' encrypted-password\ - \ \"$6$dWt4Lg4V$wiqols.Ou//eIg.3kpdu98L9hSzA7VSytcnV4NWI3S2BKM4rfruJf5JKLBdihyCyEgUVHb1Rw3xHIVxQR/O0F.\"\ + \ \"$6$Adf5A57s$5Iu/Tdzi/qQuSA.9tV.przrz51avKm.6TvJMBF42zODEM/d7.cvk2Y/kIeLinV5R.HGEEOOD6wane6Xs6rbfT0\"\ ; ## SECRET-DATA'" expected_channel_input: "\n" expected_channel_input_redacted: false @@ -122,9 +122,9 @@ localhost:25023:TelnetTransport::0: expected_channel_input_redacted: false - channel_output: "\nroot@% " expected_channel_input: echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' user - vrnetlab {' + boxen {' expected_channel_input_redacted: false - - channel_output: echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' user vrnetlab + - channel_output: echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' user boxen {' expected_channel_input: "\n" expected_channel_input_redacted: false @@ -154,11 +154,11 @@ localhost:25023:TelnetTransport::0: expected_channel_input_redacted: false - channel_output: "\nroot@% " expected_channel_input: "echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' \ - \ encrypted-password \"$6$1tKhsTEi$VjaGckqjhgSqaZf5rrWqlhDkI1xAsaTWxFRtVQQnpE4qaeIWFuQUZ3GulwPfBYq2RLSTTl/ZnyyZJrcBl.7lP0\"\ + \ encrypted-password \"$6$SDiXXE9D$KTq4es.BGkdh5IlSxbDhCFn8yWkaFxsjEhmbi4cd53hc9aNfOVmtL1iJiQKEUkgQOdYRvyJetjzygVsVR3CCf.\"\ ; ## SECRET-DATA'" expected_channel_input_redacted: false - channel_output: "echo >> /config/__SCRAPLI_CFG_SESSION_NAME__ ' \ - \ encrypted-password \"$6$1tKhsTEi$VjaGckqjhgSqaZf5rrWqlhDkI1xAsaTWxFRtVQQnpE4qaeIWFuQUZ3GulwPfBYq2RLSTTl/ZnyyZJrcBl.7lP0\"\ + \ encrypted-password \"$6$SDiXXE9D$KTq4es.BGkdh5IlSxbDhCFn8yWkaFxsjEhmbi4cd53hc9aNfOVmtL1iJiQKEUkgQOdYRvyJetjzygVsVR3CCf.\"\ ; ## SECRET-DATA'" expected_channel_input: "\n" expected_channel_input_redacted: false @@ -883,42 +883,42 @@ localhost:25023:TelnetTransport::0: - channel_output: exit expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nexit\n\nvrnetlab> " + - channel_output: "\nexit\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: configure expected_channel_input_redacted: false - channel_output: configure expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nEntering configuration mode\n\n[edit]\nvrnetlab# " + - channel_output: " \nEntering configuration mode\n\n[edit]\nboxen# " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n[edit]\nvrnetlab# " + - channel_output: "\n\n[edit]\nboxen# " expected_channel_input: load override /config/__SCRAPLI_CFG_SESSION_NAME__ expected_channel_input_redacted: false - channel_output: load override /config/__SCRAPLI_CFG_SESSION_NAME__ expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \n|\bload complete\n\n[edit]\nvrnetlab# " + - channel_output: " \n|\bload complete\n\n[edit]\nboxen# " expected_channel_input: show | compare expected_channel_input_redacted: false - channel_output: show | compare expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \n\n[edit]\nvrnetlab# " + - channel_output: " \n\n[edit]\nboxen# " expected_channel_input: run show configuration expected_channel_input_redacted: false - channel_output: run show configuration expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \n## Last commit: 2021-04-27 19:55:41 UTC by vrnetlab\nversion\ + - channel_output: " \n## Last commit: 2021-05-29 17:12:36 UTC by boxen\nversion\ \ 17.3R2.10;\nsystem {\n root-authentication {\n encrypted-password\ - \ \"$6$dWt4Lg4V$wiqols.Ou//eIg.3kpdu98L9hSzA7VSytcnV4NWI3S2BKM4rfruJf5JKLBdihyCyEgUVHb1Rw3xHIVxQR/O0F.\"\ - ; ## SECRET-DATA\n }\n login {\n user vrnetlab {\n \ - \ uid 2000;\n class super-user;\n authentication {\n\ - \ encrypted-password \"$6$1tKhsTEi$VjaGckqjhgSqaZf5rrWqlhDkI1xAsaTWxFRtVQQnpE4qaeIWFuQUZ3GulwPfBYq2RLSTTl/ZnyyZJrcBl.7lP0\"\ + \ \"$6$Adf5A57s$5Iu/Tdzi/qQuSA.9tV.przrz51avKm.6TvJMBF42zODEM/d7.cvk2Y/kIeLinV5R.HGEEOOD6wane6Xs6rbfT0\"\ + ; ## SECRET-DATA\n }\n login {\n user boxen {\n uid\ + \ 2000;\n class super-user;\n authentication {\n \ + \ encrypted-password \"$6$SDiXXE9D$KTq4es.BGkdh5IlSxbDhCFn8yWkaFxsjEhmbi4cd53hc9aNfOVmtL1iJiQKEUkgQOdYRvyJetjzygVsVR3CCf.\"\ ; ## SECRET-DATA\n }\n }\n }\n services {\n \ \ ssh {\n protocol-version v2;\n }\n telnet;\n \ \ netconf {\n ssh;\n }\n web-management {\n\ @@ -950,25 +950,25 @@ localhost:25023:TelnetTransport::0: \ tcp-rst;\n }\n security-zone untrust {\n \ \ screen untrust-screen;\n }\n }\n}\ninterfaces {\n fxp0 {\n\ \ unit 0 {\n family inet {\n address 10.0.0.15/24;\n\ - \ }\n }\n }\n}\n\n[edit]\nvrnetlab# " + \ }\n }\n }\n}\n\n[edit]\nboxen# " expected_channel_input: commit expected_channel_input_redacted: false - channel_output: commit expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \ncommit complete\n\n[edit]\nvrnetlab# " + - channel_output: " \ncommit complete\n\n[edit]\nboxen# " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\n[edit]\nvrnetlab# " + - channel_output: "\n\n[edit]\nboxen# " expected_channel_input: exit configuration-mode expected_channel_input_redacted: false - channel_output: exit configuration-mode expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: " \nExiting configuration mode\n\nvrnetlab> " + - channel_output: " \nExiting configuration mode\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: start shell user root expected_channel_input_redacted: false - channel_output: start shell user root @@ -998,10 +998,10 @@ localhost:25023:TelnetTransport::0: - channel_output: exit expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\nexit\n\nvrnetlab> " + - channel_output: "\nexit\n\nboxen> " expected_channel_input: "\n" expected_channel_input_redacted: false - - channel_output: "\n\nvrnetlab> " + - channel_output: "\n\nboxen> " expected_channel_input: exit expected_channel_input_redacted: false - channel_output: '' diff --git a/tests/expected_configs/arista_eos b/tests/test_data/expected/arista_eos similarity index 95% rename from tests/expected_configs/arista_eos rename to tests/test_data/expected/arista_eos index d46e0b1..3bd9ffa 100644 --- a/tests/expected_configs/arista_eos +++ b/tests/test_data/expected/arista_eos @@ -108,10 +108,10 @@ logging level ZTP informational ! spanning-tree mode mstp ! -enable secret sha512 $6$P1M9SV2bLTmQJpwW$KVoaaIa7i34uTFp7JRRp.hqL55nr7jSJJiDA.9CHTCW7q4GDIwyceMMSp6TavgYiAokjobyBYCO70L7FxpZon1 +enable secret sha512 $6$TVJ6KgdC0qsGkKfb$LjGGPd6W3S1iJQVQ.Vvo3Bca4Yt1R3y4nOjWAaaTCsk1NuIoqB/gOMseoigt/HQVFDTvDAJ3IPmsF9sWfxi1V/ no aaa root ! -username vrnetlab role network-admin secret sha512 $6$8zrJ4ESW2fqG2QqH$9u768TvLXXDeUJmG2Std71EX1ip6q4MoJrMwDng1cmpuSYc9ECWytRjvXpMH7C3dzSdoEv0MxAUiAZeeTre3h. +username boxen role network-admin secret sha512 $6$1ex07TzYfKx23A9z$c02oeDxnr4J7HMgj0PcabYvACZfjdiu3zp4IAgjJQ51IBtkstpvOjm0FYbxSSBhsl.mytIr9Y4PaERp4MDXJM/ ! interface Ethernet1 speed forced 10000full diff --git a/tests/expected_configs/cisco_iosxe b/tests/test_data/expected/cisco_iosxe similarity index 96% rename from tests/expected_configs/cisco_iosxe rename to tests/test_data/expected/cisco_iosxe index 55b96c4..7834888 100644 --- a/tests/expected_configs/cisco_iosxe +++ b/tests/test_data/expected/cisco_iosxe @@ -18,7 +18,7 @@ boot-start-marker boot-end-marker ! ! -enable secret 9 $9$h6Ayg86tb/EImk$2T6Ns.ke08cAlZ2TbMf3YRCYr7ngDGzgAxZB0YMe7lQ +enable secret 9 $9$xvWnx8Fe35f8xE$E9ijp7GM/V48P5y1Uz3IEPtotXgwkJKYJmN0q3q2E92 ! no aaa new-model call-home @@ -117,7 +117,7 @@ memory free low-watermark processor 72329 ! spanning-tree extend system-id ! -username vrnetlab privilege 15 password 0 VR-netlab9 +username boxen privilege 15 password 0 b0x3N-b0x3N ! redundancy ! @@ -220,7 +220,7 @@ no ip http server no ip http secure-server ! ip ssh pubkey-chain - username vrnetlab + username boxen key-hash ssh-rsa 5CC74A68B18B026A1709FB09D1F44E2F ip scp server enable ! diff --git a/tests/expected_configs/cisco_iosxr b/tests/test_data/expected/cisco_iosxr similarity index 98% rename from tests/expected_configs/cisco_iosxr rename to tests/test_data/expected/cisco_iosxr index a322417..acf0e8c 100644 --- a/tests/expected_configs/cisco_iosxr +++ b/tests/test_data/expected/cisco_iosxr @@ -1,13 +1,13 @@ Thu Mar 4 01:14:46.184 UTC Building configuration... !! IOS XR Configuration version = 6.5.3 -!! Last configuration change at Thu Feb 11 19:22:50 2021 by vrnetlab +!! Last configuration change at Thu Feb 11 19:22:50 2021 by boxen ! telnet vrf default ipv4 server max-servers 10 -username vrnetlab +username boxen group root-lr group cisco-support - secret 5 $1$5aFx$Ul43RjEjA7C4LFsghgQCu0 + secret 5 $1$fW1M$wIX/Q6Qpcg06QmgxVETb9/ ! call-home service active diff --git a/tests/expected_configs/cisco_nxos b/tests/test_data/expected/cisco_nxos similarity index 93% rename from tests/expected_configs/cisco_nxos rename to tests/test_data/expected/cisco_nxos index b514ad8..505f9e2 100644 --- a/tests/expected_configs/cisco_nxos +++ b/tests/test_data/expected/cisco_nxos @@ -17,12 +17,12 @@ feature scp-server no password strength-check username admin password 5 $5$LOIMHI$hIaO64VM40/x.MTQoeWg8/IAn2iBY5jv4WZyzQbb5q9 role network-admin -username vrnetlab password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3 role network-admin -username vrnetlab passphrase lifetime 99999 warntime 14 gracetime 3 +username boxen password 5 $5$AT5s3bhE$4/A..pCU3QK/YfesFHYPgbStJuRKK2JoYO7dEOGN2n3 role network-admin +username boxen passphrase lifetime 99999 warntime 14 gracetime 3 ip domain-lookup copp profile strict snmp-server user admin network-admin auth md5 0xd42fc9f6e153a348e1ab40f0f5b84589 priv 0xd42fc9f6e153a348e1ab40f0f5b84589 localizedkey -snmp-server user vrnetlab network-admin auth md5 0x1a3abb28531cf988a22cc61af30861a7 priv 0x1a3abb28531cf988a22cc61af30861a7 localizedkey +snmp-server user boxen network-admin auth md5 0x1a3abb28531cf988a22cc61af30861a7 priv 0x1a3abb28531cf988a22cc61af30861a7 localizedkey rmon event 1 description FATAL(1) owner PMON@FATAL rmon event 2 description CRITICAL(2) owner PMON@CRITICAL rmon event 3 description ERROR(3) owner PMON@ERROR diff --git a/tests/expected_configs/juniper_junos b/tests/test_data/expected/juniper_junos similarity index 87% rename from tests/expected_configs/juniper_junos rename to tests/test_data/expected/juniper_junos index 596b7f2..78bb9bc 100644 --- a/tests/expected_configs/juniper_junos +++ b/tests/test_data/expected/juniper_junos @@ -1,15 +1,15 @@ -## Last commit: 2021-03-07 19:15:24 UTC by vrnetlab +## Last commit: 2021-03-07 19:15:24 UTC by boxen version 17.3R2.10; system { root-authentication { - encrypted-password "$6$dWt4Lg4V$wiqols.Ou//eIg.3kpdu98L9hSzA7VSytcnV4NWI3S2BKM4rfruJf5JKLBdihyCyEgUVHb1Rw3xHIVxQR/O0F."; ## SECRET-DATA + encrypted-password "$6$Adf5A57s$5Iu/Tdzi/qQuSA.9tV.przrz51avKm.6TvJMBF42zODEM/d7.cvk2Y/kIeLinV5R.HGEEOOD6wane6Xs6rbfT0"; ## SECRET-DATA } login { - user vrnetlab { + user boxen { uid 2000; class super-user; authentication { - encrypted-password "$6$1tKhsTEi$VjaGckqjhgSqaZf5rrWqlhDkI1xAsaTWxFRtVQQnpE4qaeIWFuQUZ3GulwPfBYq2RLSTTl/ZnyyZJrcBl.7lP0"; ## SECRET-DATA + encrypted-password "$6$SDiXXE9D$KTq4es.BGkdh5IlSxbDhCFn8yWkaFxsjEhmbi4cd53hc9aNfOVmtL1iJiQKEUkgQOdYRvyJetjzygVsVR3CCf."; ## SECRET-DATA } } } diff --git a/tests/unit/__init__.py b/tests/unit/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/unit/platform/__init__.py b/tests/unit/platform/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/unit/platform/base/__init__.py b/tests/unit/platform/base/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/unit/platform/core/__init__.py b/tests/unit/platform/core/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/unit/platform/core/arista_eos/__init__.py b/tests/unit/platform/core/arista_eos/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/unit/platform/core/arista_eos/test_base_platform.py b/tests/unit/platform/core/arista_eos/test_arista_eos_base_platform.py similarity index 100% rename from tests/unit/platform/core/arista_eos/test_base_platform.py rename to tests/unit/platform/core/arista_eos/test_arista_eos_base_platform.py diff --git a/tests/unit/platform/core/cisco_iosxe/__init__.py b/tests/unit/platform/core/cisco_iosxe/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/unit/platform/core/cisco_iosxe/test_base_platform.py b/tests/unit/platform/core/cisco_iosxe/test_cisco_iosxe_base_platform.py similarity index 100% rename from tests/unit/platform/core/cisco_iosxe/test_base_platform.py rename to tests/unit/platform/core/cisco_iosxe/test_cisco_iosxe_base_platform.py diff --git a/tests/unit/platform/core/cisco_iosxr/__init__.py b/tests/unit/platform/core/cisco_iosxr/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/unit/platform/core/cisco_iosxr/test_base_platform.py b/tests/unit/platform/core/cisco_iosxr/test_cisco_iosxr_base_platform.py similarity index 100% rename from tests/unit/platform/core/cisco_iosxr/test_base_platform.py rename to tests/unit/platform/core/cisco_iosxr/test_cisco_iosxr_base_platform.py diff --git a/tests/unit/platform/core/cisco_nxos/__init__.py b/tests/unit/platform/core/cisco_nxos/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/unit/platform/core/cisco_nxos/test_base_platform.py b/tests/unit/platform/core/cisco_nxos/test_cisco_nxos_base_platform.py similarity index 100% rename from tests/unit/platform/core/cisco_nxos/test_base_platform.py rename to tests/unit/platform/core/cisco_nxos/test_cisco_nxos_base_platform.py diff --git a/tests/unit/platform/core/juniper_junos/__init__.py b/tests/unit/platform/core/juniper_junos/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/unit/platform/core/juniper_junos/test_base_platform.py b/tests/unit/platform/core/juniper_junos/test_juniper_junos_base_platform.py similarity index 100% rename from tests/unit/platform/core/juniper_junos/test_base_platform.py rename to tests/unit/platform/core/juniper_junos/test_juniper_junos_base_platform.py diff --git a/tests/unit/test_logging.py b/tests/unit/test_logging.py index b7c5f9e..3b2d3d7 100644 --- a/tests/unit/test_logging.py +++ b/tests/unit/test_logging.py @@ -1,10 +1,13 @@ import logging -import re +import sys from pathlib import Path +import pytest + from scrapli_cfg.logging import ScrapliFileHandler, ScrapliFormatter, enable_basic_logging, logger +@pytest.mark.skipif(sys.version_info > (3, 9), reason="skipping pending pyfakefs 3.10 support") def test_enable_basic_logging(fs): assert Path("scrapli_cfg.log").is_file() is False enable_basic_logging(file=True, level="debug") @@ -22,6 +25,7 @@ def test_enable_basic_logging(fs): del logger.handlers[1] +@pytest.mark.skipif(sys.version_info > (3, 9), reason="skipping pending pyfakefs 3.10 support") def test_enable_basic_logging_no_buffer(fs): assert Path("mylog.log").is_file() is False