Skip to content

Commit b8e0df6

Browse files
committed
update log
1 parent 8524b50 commit b8e0df6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cns/restserver/internalapi_linux.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ func (service *HTTPRestService) programSNATRules(req *cns.CreateNetworkContainer
147147
// if rule count doesn't match or not all rules exist, reconcile
148148
// add one because there is always a singular starting rule in the chain, in addition to the ones we add
149149
if len(currentRules) != len(rules)+1 || !allRulesExist {
150-
logger.Printf("[Azure CNS] Reconciling SWIFT-POSTROUTING chain rules")
150+
logger.Printf("[Azure CNS] Reconciling SWIFT-POSTROUTING chain rules to SNAT Azure DNS and IMDS to Host IP")
151151

152152
err = ipt.ClearChain(iptables.Nat, SWIFTPOSTROUTING)
153153
if err != nil {
@@ -160,6 +160,7 @@ func (service *HTTPRestService) programSNATRules(req *cns.CreateNetworkContainer
160160
return types.FailedToRunIPTableCmd, "[Azure CNS] failed to append rule to SWIFT-POSTROUTING chain : " + err.Error()
161161
}
162162
}
163+
logger.Printf("[Azure CNS] Finished reconciling SWIFT-POSTROUTING chain")
163164
}
164165

165166
// we only need to run this code once as the iptable rule applies to all secondary ip configs in the same subnet

0 commit comments

Comments
 (0)