Open mithun2498 opened 1 year ago
.format(iptables_output, iptables_rules))
E Failed: Unexpected iptables output for nat table. E Got: E {'prerouting': [u'DNAT all -- 0.0.0.0/0 0.0.0.0/0 to:1.1.1.1', u'DNAT all -- 0.0.0.0/0 0.0.0.0/0 to:1.1.1.1', u'DNAT all -- 0.0.0.0/0 0.0.0.0/0 to:1.1.1.1'], 'postrouting': []} E Expected: E {'prerouting': ['DNAT all -- 0.0.0.0/0 0.0.0.0/0 to:1.1.1.1'], 'postrouting': []}
acl_subnet = '192.168.0.0/24'
direction = 'host-tor'
dst_port = 3700
duthost =
Seems that there are some duplicate entries in iptables_output? @mithun2498 are you able to debug further and see where the duplicate entries coming from? Is it an image issue or test issue?
The test cases in test_dynamic_nat.py is failing due to "Unexpected iptables output for NAT table".
Steps to reproduce the issue:
Describe the results you received: Few test cases failed due to Unexpected iptables output for NAT table.
Describe the results you expected: Expecting the test case to pass.
Test Result @pytest.mark.nat_dynamic def test_nat_dynamic_modify_bindings(self, ptfhost, tbinfo, duthost, ptfadapter, setup_test_env, protocol_type):
test_dynamic_nat1_t0.txt