fix(vpcagent): ovn: stable dns A record value

This commit is contained in:
Yousong Zhou
2020-12-15 10:41:43 +08:00
parent 573893edcd
commit 25cd808840
+1
View File
@@ -664,6 +664,7 @@ func (keeper *OVNNorthboundKeeper) ClaimVpcGuestDnsRecords(ctx context.Context,
ocVersion = fmt.Sprintf("%s.%d", vpc.Id, vpc.UpdateVersion)
)
for name, addrs := range grs {
sort.Strings(addrs)
grs_[name] = strings.Join(addrs, " ")
}
dns := &ovn_nb.DNS{