Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cns/NetworkContainerContract.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"strings"

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

type HostIPInfo struct {
Expand Down
8 changes: 8 additions & 0 deletions common/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

package common

import "encoding/json"

// Command line options.
const (
// Operating environment.
Expand Down Expand Up @@ -146,3 +148,9 @@ const (
// OptCNIConflistScenarioAlias "shorthand" for the cni conflist scenairo, see above
OptCNIConflistScenarioAlias = "cniconflistscenario"
)

// KVPair represents a K-V pair of a json object.
type KVPair struct {
Name string `json:"name"`
Value json.RawMessage `json:"value"`
}
Loading