Skip to content

Commit 8cc2659

Browse files
committed
cleaning up TODOs
1 parent b4c3cbc commit 8cc2659

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

cns/restserver/ipusage.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ import (
55
"github.com/Azure/azure-container-networking/cns/types"
66
)
77

8-
// TODO: add an IPFamily type with values ipv4 and ipv6
9-
//
10-
// This should be similar to DNC's IPFamilies and will only be ipv4 only or ipv4,ipv6
118
type ipState struct {
129
// allocatedIPs are all the IPs given to CNS by DNC.
1310
allocatedIPs int64
@@ -19,7 +16,6 @@ type ipState struct {
1916
programmingIPs int64
2017
// releasingIPs are the IPs in state "PendingReleasr".
2118
releasingIPs int64
22-
// TODO: add and IPFamilies value to be a slice of IPFamily type
2319
}
2420

2521
func (service *HTTPRestService) buildIPState() *ipState {

cns/restserver/restserver.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ type imdsClient interface {
5252
GetVMUniqueID(ctx context.Context) (string, error)
5353
}
5454

55-
// HTTPRestService represents http listener for CNS - Container Networking Service.// TODO: Add a new value for IPFamily
55+
// HTTPRestService represents http listener for CNS - Container Networking Service.
5656
// TODO: If we add a new type of Middleware that will be reflected in the IPConfigsHandlerMiddleware value
5757
type HTTPRestService struct {
5858
*cns.Service
@@ -77,7 +77,6 @@ type HTTPRestService struct {
7777
IPConfigsHandlerMiddleware cns.IPConfigsHandlerMiddleware
7878
PnpIDByMacAddress map[string]string
7979
imdsClient imdsClient
80-
IPFamilies []IPFamily
8180
}
8281

8382
type CNIConflistGenerator interface {

0 commit comments

Comments
 (0)