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 lib/cisco_node_utils/cmd_ref/route_map.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ set_distance_local:

# there is more than one space before delete on some platforms
set_extcomm_list:
get_value: '/^set extcomm-list (\S+)(?:\s+)? delete$/'
get_value: '/^set extcomm-list (\S+)\s+delete$/'
set_value: "<state> set extcomm-list <list> delete"
default_value: false

Expand Down
3 changes: 3 additions & 0 deletions tests/test_bgp_af.rb
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ def check_test_exceptions(test_, os_, vrf_, af_)
# triggers a version check below.
if expect == :runtime
case Platform.image_version
when /7\.3/
expect = :success if test == :additional_paths_send ||
test == :additional_paths_receive
when /8.0|8.1|8.2|8.3|F3.2/
expect = :success
expect = :runtime if test == :additional_paths_receive && Platform.image_version[/8.0|8.1/]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_interface_svi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def test_description

def test_sys_def_svi_autostate
skip_autostate_test?
skip_legacy_defect?('8.0.1|8.1.1', 'CSC: Behavior change after helsinki')
skip_legacy_defect?('8.0.1|8.1.1|8\.3', 'CSC: Behavior change after helsinki')
interface = Interface.new(interfaces[0])

system_default_svi_autostate('no ')
Expand Down
2 changes: 1 addition & 1 deletion tests/test_snmpserver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def test_location_special_chars
end

def test_packet_size
skip_legacy_defect?('7.0.3.I2.2e|7.0.3.I2.5|7.0.3.I3.1',
skip_legacy_defect?('7.0.3.I2.2e|7.0.3.I2.5|7.0.3.I3.1|7.3.2.D',
'CSCuz14217: CLI shows default snmp packet-size incorrectly as 0')

if validate_property_excluded?('snmp_server', 'packet_size')
Expand Down
8 changes: 6 additions & 2 deletions tests/test_tacacs_global.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ def test_tacacs_global
global.encryption_key_set(nil, key)
# Device encypts key - verify return value
assert_equal(7, global.key_format)
assert_equal('"WAWY_NZB"', global.key)
key = 'WAWY_NZB'
key = "\"#{key}\"" unless Platform.image_version[/7\.3/]
assert_equal(key, global.key)

skip_versions = ['7.0.3.(I2|I3)', '7.0.3.I4.[1-7]']
if step_unless_legacy_defect(skip_versions, 'CSCvh72911: Cannot configure tacacs-server key 6')
Expand All @@ -85,7 +87,9 @@ def test_tacacs_global
key = 'JDYkqyIFWeBvzpljSfWmRZrmRSRE8'
global.encryption_key_set(key_format, key)
assert_equal(key_format, global.key_format)
assert_equal("\"#{key}\"", global.key)

key = "\"#{key}\"" unless Platform.image_version[/7\.3/]
assert_equal(key, global.key)
end

# Remove global key
Expand Down
4 changes: 2 additions & 2 deletions tests/test_vtp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ def test_password_valid
end

# this fails on n7k running 7.3(0)D1.1 image but it
# is fixed in later releases. The bugID is CSCuy87970
# is fixed in some later releases. The bugID is CSCuy87970
# which is already verified.
def test_password_special_characters
skip_legacy_defect?('7.3.0.(N1|D1).1.bin',
skip_legacy_defect?('7.3.[012].(N1|D1)',
'CSCuy87970: NXAPI incorrect backslash escape')
vtp = vtp_domain('password')
vtp.password = 'hello!//\\#%$x'
Expand Down