diff options
author | Ritu Sood <Ritu.Sood@intel.com> | 2020-04-17 22:45:23 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-04-17 22:45:23 +0000 |
commit | e49d4f0f4b4252b2e3acc713e8dba7084e285273 (patch) | |
tree | d964b0c07c7ae1da00f74590d79023163503f0cb /src/ncm/pkg/module/providernet.go | |
parent | 1c3a22e3de0dd24b4161ae8b34794627620a208b (diff) | |
parent | b7a4e00a6cd9d4ce903448ea958d85f17c8d68ab (diff) |
Merge "Add apply API for network intents"
Diffstat (limited to 'src/ncm/pkg/module/providernet.go')
-rw-r--r-- | src/ncm/pkg/module/providernet.go | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/ncm/pkg/module/providernet.go b/src/ncm/pkg/module/providernet.go index 5e2c0343..0435f2ba 100644 --- a/src/ncm/pkg/module/providernet.go +++ b/src/ncm/pkg/module/providernet.go @@ -29,12 +29,22 @@ type ProviderNet struct { } type ProviderNetSpec struct { - CniType string `json:"cniType"` - Ipv4Subnets []Ipv4Subnet `json:"ipv4Subnets"` - ProviderNetType string `json:"providerNetType"` - Vlan Vlan `json:"vlan"` + CniType string `json:"cniType" yaml:"cniType"` + Ipv4Subnets []Ipv4Subnet `json:"ipv4Subnets" yaml:"ipv4Subnets"` + ProviderNetType string `json:"providerNetType" yaml:"providerNetType"` + Vlan Vlan `json:"vlan" yaml:"vlan"` } +// structure for the Network Custom Resource +type CrProviderNet struct { + ApiVersion string `yaml:"apiVersion"` + Kind string `yaml:"kind"` + ProviderNet ProviderNet +} + +const PROVIDER_NETWORK_APIVERSION = "k8s.plugin.opnfv.org/v1alpha1" +const PROVIDER_NETWORK_KIND = "ProviderNetwork" + // ProviderNetKey is the key structure that is used in the database type ProviderNetKey struct { ClusterProviderName string `json:"provider"` |