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
4 changes: 4 additions & 0 deletions tests/nat/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ def apply_global_nat_config(duthost):
after test run cleanup DUT's NAT configration
:param duthost: DUT host object
"""
status, _ = duthost.get_feature_status()
if 'nat' not in status:
pytest.skip('nat feature is not enabled with image version {}'.format(duthost.os_version))

nat_global_config(duthost)
yield
# reload config on teardown
Expand Down