Create a single public network that all services (other than vSG) can connect to
Change-Id: Iae168b9f1676b7921175c3b38b7608b1fb6cf418
diff --git a/cord-pod/public-net.yaml b/cord-pod/public-net.yaml
new file mode 100644
index 0000000..c241fc0
--- /dev/null
+++ b/cord-pod/public-net.yaml
@@ -0,0 +1,46 @@
+tosca_definitions_version: tosca_simple_yaml_1_0
+
+description: Set up public network for CORD POD
+imports:
+ - custom_types/xos.yaml
+
+topology_template:
+ node_templates:
+
+ service#vrouter:
+ type: tosca.nodes.VRouterService
+
+ public_template:
+ type: tosca.nodes.NetworkTemplate
+ properties:
+ visibility: private
+ translation: none
+ vtn_kind: PUBLIC
+
+ public:
+ type: tosca.nodes.network.Network
+ properties:
+ ip_version: 4
+ requirements:
+ - network_template:
+ node: public_template
+ relationship: tosca.relationships.UsesNetworkTemplate
+ - owner:
+ node: mysite_public
+ relationship: tosca.relationships.MemberOfSlice
+ - vrouter_tenant:
+ node: service#vrouter
+ relationship: tosca.relationships.TenantOfService
+
+ mysite:
+ type: tosca.nodes.Site
+
+ mysite_public:
+ description: This slice exists solely to own the public network
+ type: tosca.nodes.Slice
+ properties:
+ network: noauto
+ requirements:
+ - site:
+ node: mysite
+ relationship: tosca.relationships.MemberOfSite