Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion netsim/devices/eos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ features:
vpn: true
netmiko:
device_type: arista_eos
error_regexp: "^%"
error_regexp: "^%.*"
ospf:
unnumbered: true
import: [ bgp, isis, ripv2, connected, static, vrf ]
Expand Down
2 changes: 1 addition & 1 deletion netsim/devices/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ features:
netmiko:
device_type: cisco_ios
error_regexp:
- (?i:invalid|incomplete|ambiguous|error|overlap|enabled|bad)
- (?i:invalid|incomplete|ambiguous|error|overlap|enabled|bad).*

ospf:
unnumbered: true
Expand Down
2 changes: 1 addition & 1 deletion netsim/devices/xr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ features:
netmiko:
device_type: cisco_xr
delay: 2 # Wait two seconds before trying to configure the device
error_regexp: "^%"
error_regexp: "^%.*"
step_config: True
ospf:
unnumbered: True
Expand Down
3 changes: 3 additions & 0 deletions tests/config/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
The topologies in this directory prepare device-specific error conditions
that can be then tested manually with the "netlab config" command. They
are not (yet) meant to be used in an automated test.
16 changes: 16 additions & 0 deletions tests/config/ios-netmiko.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
plugin: [ files ]

nodes:
sw:
device: iol
provider: clab
netlab_config_mode: netmiko

files:
invalid.j2: |
nocommand noarg
ifname.j2: |
interface Ethernet 17/3
no shutdown

links: [ sw, sw ]
Loading