Skip to content

Commit 8c792a7

Browse files
committed
added an additional field in network contract from cns to cni
1 parent 1296fd7 commit 8c792a7

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

cns/NetworkContainerContract.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"strings"
99

1010
"github.com/Azure/azure-container-networking/cns/types"
11+
acn "github.com/Azure/azure-container-networking/common"
1112
"github.com/Azure/azure-container-networking/crd/nodenetworkconfig/api/v1alpha"
1213
"github.com/google/uuid"
1314
"github.com/pkg/errors"
@@ -503,6 +504,8 @@ type PodIpInfo struct {
503504
Routes []Route
504505
// PnpId is set for backend interfaces, Pnp Id identifies VF. Plug and play id(pnp) is also called as PCI ID
505506
PnPID string
507+
// Default Deny ACL's to configure on HNS endpoints for Swiftv2 window nodes
508+
DefaultDenyACL []acn.KVPair
506509
}
507510

508511
type HostIPInfo struct {

common/config.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
package common
55

6+
import "encoding/json"
7+
68
// Command line options.
79
const (
810
// Operating environment.
@@ -146,3 +148,9 @@ const (
146148
// OptCNIConflistScenarioAlias "shorthand" for the cni conflist scenairo, see above
147149
OptCNIConflistScenarioAlias = "cniconflistscenario"
148150
)
151+
152+
// KVPair represents a K-V pair of a json object.
153+
type KVPair struct {
154+
Name string `json:"name"`
155+
Value json.RawMessage `json:"value"`
156+
}

0 commit comments

Comments
 (0)