Defined Models and REST APIs
TOSCA specs
Synchronizer
Change-Id: Icd9dde1b456711ca7e5f0c69ae547072ff5b3120
diff --git a/xos/tosca/sample.yaml b/xos/tosca/sample.yaml
new file mode 100644
index 0000000..f1131f2
--- /dev/null
+++ b/xos/tosca/sample.yaml
@@ -0,0 +1,74 @@
+tosca_definitions_version: tosca_simple_yaml_1_0
+
+description: Just enough Tosca to get the vSG slice running on the CORD POD
+
+imports:
+ - custom_types/xos.yaml
+ - custom_types/vrouter.yaml
+
+topology_template:
+ node_templates:
+
+ service#vRouterSample:
+ type: tosca.nodes.VRouterService
+ properties:
+ view_url: /admin/vrouter/vrouterservice/$id$/
+ rest_hostname: 10.0.2.2
+ rest_port: 8181
+ rest_user: onos
+ rest_pass: rocks
+
+ device#switch:
+ type: tosca.nodes.VRouterDevice
+ properties:
+ openflow_id: of:000000000001
+ driver: softrouter
+ # config_key: basic
+ requirements:
+ - service#vRouterSample:
+ node: service#vRouterSample
+ relationship: tosca.relationships.MemberOfService
+
+ port#sample_port:
+ type: tosca.nodes.VRouterPort
+ properties:
+ openflow_id: of:000000000001/1
+ requirements:
+ - device#switch:
+ node: device#switch
+ relationship: tosca.relationships.PortOfDevice
+ - service#vRouterSample:
+ node: service#vRouterSample
+ relationship: tosca.relationships.MemberOfService
+
+ interface#b1-1:
+ type: tosca.nodes.VRouterInterface
+ properties:
+ name: b1-1
+ mac: 00:00:00:00:00:01
+ vlan: 100
+ requirements:
+ - port#sample_port:
+ node: port#sample_port
+ relationship: tosca.relationships.InterfaceOfPort
+
+ vrouter_ips:
+ type: tosca.nodes.VRouterIp
+ properties:
+ ip: 10.0.4.2/24
+ requirements:
+ - interface#b1-1:
+ node: interface#b1-1
+ relationship: tosca.relationships.IpOfInterface
+
+ app#vrouterApp:
+ type: tosca.nodes.VRouterApp
+ properties:
+ name: org.onosproject.router
+ # can we use a relation to specify the connect point port?
+ control_plane_connect_point: of:00000000000000b1/5
+ ospf_enabled: true
+ requirements:
+ - service#vRouterSample:
+ node: service#vRouterSample
+ relationship: tosca.relationships.MemberOfService