add flat network for vm conncet to server outside cord
Change-Id: I7949a457b6dc299df4fe403737565c996d0bcda6
(cherry picked from commit 003a53164ab87bb0c25a0e61670634d8876b7f7e)
diff --git a/roles/cord-profile/templates/mcord-spirent-services.yml.j2 b/roles/cord-profile/templates/mcord-spirent-services.yml.j2
index 1392c20..716121d 100644
--- a/roles/cord-profile/templates/mcord-spirent-services.yml.j2
+++ b/roles/cord-profile/templates/mcord-spirent-services.yml.j2
@@ -119,12 +119,18 @@
properties:
must-exist: true
name: sgi_network
-# spgw_network is for connectivity between VMs, fully created in sgi-net.yaml
+# spgw_network is for connectivity between VMs, fully created in spgw-net.yaml
spgw_network:
type: tosca.nodes.Network
properties:
must-exist: true
name: spgw_network
+# flat_network is for connectivity between VM inside cord and server outside, fully created in flat-net.yaml
+ flat_network:
+ type: tosca.nodes.Network
+ properties:
+ must-exist: true
+ name: flat_network
# ONOS_CORD, fully created in vtn.yaml
service#ONOS_CORD:
@@ -221,6 +227,16 @@
node: {{ site_name }}_venb
relationship: tosca.relationships.BelongsToOne
+ venb_slice_flat_network:
+ type: tosca.nodes.NetworkSlice
+ requirements:
+ - network:
+ node: flat_network
+ relationship: tosca.relationships.BelongsToOne
+ - slice:
+ node: {{ site_name }}_venb
+ relationship: tosca.relationships.BelongsToOne
+
#vSPGWC Service
service#vspgwc:
type: tosca.nodes.VSPGWCService