Skip to content

Commit 95a61c7

Browse files
committed
update log
1 parent 7070daa commit 95a61c7

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
@@ -152,7 +152,7 @@ func (service *HTTPRestService) programSNATRules(req *cns.CreateNetworkContainer
152152
// if rule count doesn't match or not all rules exist, reconcile
153153
// add one because there is always a singular starting rule in the chain, in addition to the ones we add
154154
if len(currentRules) != len(rules)+1 || !allRulesExist {
155-
logger.Printf("[Azure CNS] Reconciling SWIFT-POSTROUTING chain rules")
155+
logger.Printf("[Azure CNS] Reconciling SWIFT-POSTROUTING chain rules to SNAT Azure DNS and IMDS to Host IP")
156156

157157
err = ipt.ClearChain(iptables.Nat, SWIFTPOSTROUTING)
158158
if err != nil {
@@ -165,6 +165,7 @@ func (service *HTTPRestService) programSNATRules(req *cns.CreateNetworkContainer
165165
return types.FailedToRunIPTableCmd, "[Azure CNS] failed to append rule to SWIFT-POSTROUTING chain : " + err.Error()
166166
}
167167
}
168+
logger.Printf("[Azure CNS] Finished reconciling SWIFT-POSTROUTING chain")
168169
}
169170

170171
// 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)