Files
napalm-s350/test/unit/fetch_command_output.cfg
0c54958dbf Release 0.5.1 (#101)
* use netmiko_args

* Add changes for 4.1.0 (#89)

* Update requirements.txt

* Typpo in requirements

* _send_command has only two parameters

* Adapt to stricter Unit tests

---------

Co-authored-by: Anton Gridnev <anton@gridnev.pro>

* Remove s350_base_interfaces custom map - it is allready in napalm base

* Adapt Unit tests to canonical_interface_name()

* Add format parameter to get_config()

* Add badges

* Tests for push are enought

* update CD actions

* add tests for device SG500-52

* Merge CI to develop (#95)

* Simplify CI

* CI update

* CI update

* Update CI from develop (#94)

* Add format parameter to get_config()

* Add badges

* Tests for push are enought

* update CD actions

* add tests for device SG500-52

* fetch_command_output helper (#97)

* fetch_command_output.sh tool

* Update fetch_command_update from develop (#93)

* adding read_timeout_override netmiko option

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Petr Klima <petr.klima@madeta.cz>
Co-authored-by: Dave <davama@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Anton Gridnev <anton@gridnev.pro>

* Set default command timeout (#98)


* adding read_timeout_override netmiko option

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Petr Klima <petr.klima@madeta.cz>

* Fetch command output - obfuscations (#99)

* add IP and MAC obfuscation

* Add obfuscate strings

* Merge master changes back to develop (#100)

* Lift version to 0.4.1

* Adapt to napalm 4.1 tests (#90)

* use netmiko_args

* Add changes for 4.1.0 (#89)

* Update requirements.txt

* Typpo in requirements

* _send_command has only two parameters

* Adapt to stricter Unit tests

---------

Co-authored-by: Anton Gridnev <anton@gridnev.pro>

* Remove s350_base_interfaces custom map - it is allready in napalm base

* Adapt Unit tests to canonical_interface_name()

---------

Co-authored-by: Dave <davama@gmail.com>
Co-authored-by: Anton Gridnev <anton@gridnev.pro>

* move version to 0.4.1.1

* Make it napalm 5 compliant  (#92)

* use netmiko_args

* Add changes for 4.1.0 (#89)

* Update requirements.txt

* Typpo in requirements

* _send_command has only two parameters

* Adapt to stricter Unit tests

---------

Co-authored-by: Anton Gridnev <anton@gridnev.pro>

* Remove s350_base_interfaces custom map - it is allready in napalm base

* Adapt Unit tests to canonical_interface_name()

* Add format parameter to get_config()

* Add badges

---------

Co-authored-by: Dave <davama@gmail.com>
Co-authored-by: Anton Gridnev <anton@gridnev.pro>

* move version to 5.0.0

* move to version 0.5.0

---------

Co-authored-by: Dave <davama@gmail.com>
Co-authored-by: Anton Gridnev <anton@gridnev.pro>

* better obfuscation for fetch command output

* better obfuscation for fetch command output

* get rid of textFSM templates

* get rid of textFSM templates

* Add support and tests for SG250

* bump to version 0.5.1

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Dave <davama@gmail.com>
Co-authored-by: Anton Gridnev <anton@gridnev.pro>
Co-authored-by: Petr Klima <petr.klima@madeta.cz>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-24 17:27:22 +02:00

71 lines
2.1 KiB
INI

# Config file for utility 'fetch_command_output.sh'
#
# This will help you to make bunch of command output files for napalm drivers unit tests
#
# There is not any IP, MAC or names obfuscation or anonymizations!
# Before using outputs as a unit test files it is recommendet to protect
# your privacy information yourself by editing output files.
# Required variables
# $INTERFACE - for detailed interface information
# $LLDPINTERFACE - for detailed LLDP information
# Define empty array of commands
COMMANDS=()
# This is example set of commands for napalm driver 's350' (Cisco SMB)
# system info
COMMANDS+=("show version")
COMMANDS+=("show system")
COMMANDS+=("show version")
COMMANDS+=("show inventory")
# config commands
COMMANDS+=("show startup-config")
COMMANDS+=("show running-config")
COMMANDS+=("show running-config detailed")
# interface commands
COMMANDS+=("show interfaces status")
COMMANDS+=("show interfaces description")
COMMANDS+=("show interface switchport $INTERFACE")
COMMANDS+=("show ports jumbo-frame")
# ip commands
COMMANDS+=("show hosts")
COMMANDS+=("show ip interface")
COMMANDS+=("show ipv6 interface brief")
COMMANDS+=("show arp")
# lldp commands
COMMANDS+=("show lldp neighbors")
COMMANDS+=("show lldp local $LLDPINTERFACE")
COMMANDS+=("show lldp neighbors $LLDPINTERFACE")
# ntp commands
COMMANDS+=("show sntp status")
# !!! keeep replacement the same lenght
OBFUSCATE=()
# keys and secrets
OBFUSCATE+=("[a-f0-9]{40}&&&0123456789abcdef0123456789abcdef01234567")
OBFUSCATE+=("[a-zA-Z0-9+/]{30}&&&ABCD1234abcdABCD1234abcdABCD12")
# domains
OBFUSCATE+=("sw-cb-vratnice-&&&switch-no-2548-")
OBFUSCATE+=("sw-cb-&&&switch")
OBFUSCATE+=("cb.madeta.cz&&&examples.com")
OBFUSCATE+=("madeta.cz&&&examp.com")
# names and acronims
OBFUSCATE+=("CZ;Ceske Budejovice;Rudolfovska 83;vr&&&Something;Somewhere;Somestreet;others")
OBFUSCATE+=("MDT&&&ABC")
OBFUSCATE+=("Madeta&&&Abcdef")
OBFUSCATE+=("NECOSS&&&Abcdef")
OBFUSCATE+=("Atlantis&&&Abcdefgh")
OBFUSCATE+=("PSZ21221ECM&&&ABC12234XYZ")
# specific repairs for example:
# - versions confused with IPs
OBFUSCATE+=("3.3.3.73&&&2.4.5.71")
OBFUSCATE+=("3.3.7.3&&&2.2.8.4")