add management_host network
Change-Id: I60ca22bf2b16c0c31eb96eb00b5501b715e924c8
diff --git a/mcord/make-vtn-external-yaml.sh b/mcord/make-vtn-external-yaml.sh
index 48ef2a5..3239537 100644
--- a/mcord/make-vtn-external-yaml.sh
+++ b/mcord/make-vtn-external-yaml.sh
@@ -104,6 +104,20 @@
node: service#ONOS_CORD
relationship: tosca.relationships.MemberOfService
+ # VTN hostManagementIface field for node $NODE
+ ${NODE}_dataPlaneIp_tag:
+ type: tosca.nodes.Tag
+ properties:
+ name: hostManagementIface
+ value: veth3
+ requirements:
+ - target:
+ node: $NODE
+ relationship: tosca.relationships.TagsObject
+ - service:
+ node: service#ONOS_CORD
+ relationship: tosca.relationships.MemberOfService
+
EOF
done
diff --git a/mcord/mcord.yaml b/mcord/mcord.yaml
index def2ed9..2e4caf5 100644
--- a/mcord/mcord.yaml
+++ b/mcord/mcord.yaml
@@ -292,6 +292,28 @@
# no-delete: true
# no-update: true
+ management_hosts_template:
+ type: tosca.nodes.NetworkTemplate
+ properties:
+ visibility: private
+ translation: none
+ vtn_kind: MANAGEMENT_HOST
+
+ management_host:
+ type: tosca.nodes.network.Network
+ properties:
+ ip_version: 4
+ cidr: 10.1.0.0/24
+ start_ip: 10.1.0.128
+ end_ip: 10.1.0.254
+ requirements:
+ - network_template:
+ node: management_hosts_template
+ relationship: tosca.relationships.UsesNetworkTemplate
+ - owner:
+ node: mysite_management
+ relationship: tosca.relationships.MemberOfSlice
+
lan_3gpp_s1mme_network:
type: tosca.nodes.network.Network.XOS
properties:
@@ -436,10 +458,13 @@
- default_flavor:
node: m1.xlarge
relationship: tosca.relationships.DefaultFlavor
- - management:
+ - connection_to_management:
node: management
relationship: tosca.relationships.ConnectsToNetwork
- - connection:
+ - connection_to_management_host:
+ node: management_host
+ relationship: tosca.relationships.ConnectsToNetwork
+ - connection_to_shared_network:
node: shared_network
relationship: tosca.relationships.ConnectsToNetwork
properties:
@@ -463,10 +488,13 @@
- default_flavor:
node: m1.xlarge
relationship: tosca.relationships.DefaultFlavor
- - management:
+ - connection_to_management:
node: management
relationship: tosca.relationships.ConnectsToNetwork
- - connection:
+ - connection_to_management_host:
+ node: management_host
+ relationship: tosca.relationships.ConnectsToNetwork
+ - connection_to_shared_network:
node: shared_network
relationship: tosca.relationships.ConnectsToNetwork
properties: