Skip to content
Merged
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
14 changes: 12 additions & 2 deletions tests/test_vxlan_vtep.rb
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,11 @@ def test_global_suppress_arp
refute(vtep.global_suppress_arp, 'global_suppress_arp should be disabled')

# Test: Enable global_suppress_arp
vtep.global_suppress_arp = true
begin
vtep.global_suppress_arp = true
rescue CliError => e
skip(e.to_s) if /ERROR: Please configure TCAM/.match(e.to_s)
end
assert(vtep.global_suppress_arp, 'global_suppress_arp should be enabled')
# Test: Default
vtep.global_suppress_arp = vtep.default_global_suppress_arp
Expand Down Expand Up @@ -303,7 +307,13 @@ def test_global_mcast_group_l3
skip_incompat_version?('vxlan_vtep', 'global_mcast_group_l3')

assert_equal(vtep.global_mcast_group_l3, vtep.default_global_mcast_group_l3)
vtep.global_mcast_group_l3 = '225.1.1.1'

begin
# global_mcast_group_l3 is only supported on certain vxlan capable N9ks
vtep.global_mcast_group_l3 = '225.1.1.1'
rescue CliError => e
skip(e.to_s) if /TRM not supported on this platform/.match(e.to_s)
end
assert_equal('225.1.1.1', vtep.global_mcast_group_l3)
vtep.global_mcast_group_l3 = vtep.default_global_mcast_group_l3
assert_equal(vtep.global_mcast_group_l3, vtep.default_global_mcast_group_l3)
Expand Down