NAT44: fix bug in snat_interface_add_del (VPP-1380)
Should not enable nat44-hairpinning node in deterministic mode Change-Id: I5790323a6842ee71a62c6c91c49166a2839eac12 Signed-off-by: Matus Fabian <matfabia@cisco.com>
This commit is contained in:
@ -1693,7 +1693,7 @@ feature_set:
|
||||
vnet_feature_enable_disable ("ip4-local",
|
||||
"nat44-ed-hairpinning",
|
||||
sw_if_index, 1, 0, 0);
|
||||
else
|
||||
else if (!sm->deterministic)
|
||||
vnet_feature_enable_disable ("ip4-local",
|
||||
"nat44-hairpinning",
|
||||
sw_if_index, 1, 0, 0);
|
||||
@ -1710,7 +1710,7 @@ feature_set:
|
||||
vnet_feature_enable_disable ("ip4-local",
|
||||
"nat44-ed-hairpinning",
|
||||
sw_if_index, 0, 0, 0);
|
||||
else
|
||||
else if (!sm->deterministic)
|
||||
vnet_feature_enable_disable ("ip4-local",
|
||||
"nat44-hairpinning",
|
||||
sw_if_index, 0, 0, 0);
|
||||
@ -1756,7 +1756,7 @@ feature_set:
|
||||
if (sm->endpoint_dependent)
|
||||
vnet_feature_enable_disable ("ip4-local", "nat44-ed-hairpinning",
|
||||
sw_if_index, 0, 0, 0);
|
||||
else
|
||||
else if (!sm->deterministic)
|
||||
vnet_feature_enable_disable ("ip4-local", "nat44-hairpinning",
|
||||
sw_if_index, 0, 0, 0);
|
||||
}
|
||||
@ -1780,7 +1780,7 @@ feature_set:
|
||||
if (sm->endpoint_dependent)
|
||||
vnet_feature_enable_disable ("ip4-local", "nat44-ed-hairpinning",
|
||||
sw_if_index, 1, 0, 0);
|
||||
else
|
||||
else if (!sm->deterministic)
|
||||
vnet_feature_enable_disable ("ip4-local", "nat44-hairpinning",
|
||||
sw_if_index, 1, 0, 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user