File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -1560,13 +1560,9 @@ func (c *Controller) getPodAttachmentNet(pod *v1.Pod) ([]*kubeovnNet, error) {
1560
1560
Subnet : subnet ,
1561
1561
IsDefault : isDefault ,
1562
1562
AllowLiveMigration : allowLiveMigration ,
1563
+ MacRequest : attach .MacRequest ,
1564
+ IPRequest : strings .Join (attach .IPRequest , "," ),
1563
1565
}
1564
-
1565
- if len (attach .IPRequest ) != 0 {
1566
- ret .IPRequest = strings .Join (attach .IPRequest , "," )
1567
- }
1568
-
1569
- ret .MacRequest = attach .MacRequest
1570
1566
result = append (result , ret )
1571
1567
} else {
1572
1568
providerName = fmt .Sprintf ("%s.%s" , attach .Name , attach .Namespace )
@@ -1576,6 +1572,8 @@ func (c *Controller) getPodAttachmentNet(pod *v1.Pod) ([]*kubeovnNet, error) {
1576
1572
Type : providerTypeIPAM ,
1577
1573
ProviderName : providerName ,
1578
1574
Subnet : subnet ,
1575
+ MacRequest : attach .MacRequest ,
1576
+ IPRequest : strings .Join (attach .IPRequest , "," ),
1579
1577
})
1580
1578
break
1581
1579
}
You can’t perform that action at this time.
0 commit comments