change scenario examples to schema version 2 26/226/1
authortierno <alfonso.tiernosepulveda@telefonica.com>
Fri, 8 Jul 2016 11:21:01 +0000 (13:21 +0200)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Fri, 8 Jul 2016 11:21:01 +0000 (13:21 +0200)
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
scenarios/examples/complex.yaml
scenarios/examples/complex2.yaml
scenarios/examples/simple.yaml
utils.py [changed mode: 0755->0644]

index 676dd9c..07ee6cb 100644 (file)
 # contact with: nfvlabs@tid.es
 ##
 ---
-name:            complex
-description:     Complex network scenario consisting of 4 VNFs interconnected
-topology: 
-  nodes: 
+schema_version:  2
+scenario:
+  name:          complex
+  description:   Complex network scenario consisting of 4 VNFs interconnected
+  vnfs: 
     linux1:                   # vnf/net name in the scenario
-      type:      VNF          # VNF, network, external_network (if it is a datacenter network)
-      VNF model: linux        # VNF name as introduced in OPENMANO DB
+      vnf_name:  linux        # VNF name as introduced in OPENMANO DB
     node1:
-      type:      VNF
-      VNF model: dataplaneVNF1
+      vnf_name:  dataplaneVNF1
     node2:
-      type:      VNF
-      VNF model: dataplaneVNF2
+      vnf_name:  dataplaneVNF2
     node3:
-      type:      VNF
-      VNF model: dataplaneVNF2
-    bridge1: 
-      type:      network
-      model:     bridge_net
-    default: 
-      type:      external_network # Datacenter net
-      model:     default
-  connections: 
+      vnf_name:  dataplaneVNF2
+  networks: 
     dataconn1:
-      nodes: 
-      -   node1: xe0
-      -   node2: xe0
+      interfaces: 
+      - node1:   xe0
+      - node2:   xe0
     dataconn2:
-      nodes: 
-      -   node1: xe1
-      -   node2: xe1
+      interfaces: 
+      - node1:   xe1
+      - node2:   xe1
     dataconn3:
-      nodes: 
-      -   node1: xe2
-      -   node3: xe0
+      interfaces: 
+      - node1:   xe2
+      - node3:   xe0
     dataconn4:
-      nodes: 
-      -   node1: xe3
-      -   node3: xe1
+      interfaces: 
+      - node1:   xe3
+      - node3:   xe1
     data-sriov1:
-      nodes: 
-      -   node2: xe2
-      -   node3: xe2
-    bridgeconn1:
-      nodes: 
-      -   bridge1: null
-      -   linux1:  eth0
-      -   node2:   control
-      -   node3:   control
-    mngmt-net:
-      nodes: 
-      -   default: null
-      -   node1:   mgmt
-      -   node2:   mgmt
-      -   node3:   mgmt
+      interfaces: 
+      - node2:   xe2
+      - node3:   xe2
+    bridge1:
+      interfaces: 
+      - linux1:  eth0
+      - node2:   control
+      - node3:   control
+    default:
+      interfaces: 
+      - node1:   mgmt
+      - node2:   mgmt
+      - node3:   mgmt
 
index b8969cf..1a418d4 100644 (file)
 # contact with: nfvlabs@tid.es
 ##
 ---
-name:            complex2
-description:     Complex network scenario consisting of 2 VNFs interconnected
-topology: 
-  nodes: 
-    VNF2vms:                        # vnf/net name in the scenario
-      type:      VNF                # VNF, network, external_network (if it is a datacenter network)
-      VNF model: dataplaneVNF_2VMs  # VNF name as introduced in OPENMANO DB
+schema_version:  2
+scenario:
+  name:          complex2
+  description:   Complex network scenario consisting of 2 VNFs interconnected
+  public:        false
+  vnfs: 
+    VNF2vms:                        # vnf name in the scenario
+      vnf_name:  dataplaneVNF_2VMs  # openmano vnf name
     VNF3:
-      type:      VNF
-      VNF model: dataplaneVNF3
-    default: 
-      type:      external_network # Datacenter net
-      model:     default
-  connections: 
+      vnf_name:  dataplaneVNF3
+  networks: 
     dataconn1:
-      nodes: 
+      interfaces: 
       -   VNF2vms: in
       -   VNF3:    data0
     dataconn2:
-      nodes: 
+      interfaces: 
       -   VNF2vms: out
       -   VNF3:    data1
-    mngmt-net:
-      nodes: 
-      -   default: null
+    default:
+      interfaces: 
       -   VNF2vms: control0
       -   VNF2vms: control1
       -   VNF3:    mgmt
index 7cba170..9384df9 100644 (file)
 # contact with: nfvlabs@tid.es
 ##
 ---
-name:            simple
-description:     Simple network scenario consisting of a single VNF connected to an external network
-topology: 
-  nodes: 
+schema_version:  2
+scenario:
+  name:          simple
+  description:   Simple network scenario consisting of a single VNF connected to an external network
+  vnfs: 
     linux1:                   # vnf/net name in the scenario
-      type:      VNF          # VNF, network, external_network (if it is a datacenter network)
-      VNF model: linux        # VNF name as introduced in OPENMANO DB
-    default: 
-      type:      external_network # Datacenter net
-      model:     default
-  connections: 
-    conn1:                   # provide a name for this net or connection
-      nodes: 
-      -   default: null      # Datacenter net
-      -   linux1: eth0       # Node and its interface
+      vnf_name:  linux        # VNF name as introduced in OPENMANO DB
+  networks: 
+    default:                   # provide a name for this net or connection
+      interfaces: 
+      - linux1:  eth0       # Node and its interface
 
old mode 100755 (executable)
new mode 100644 (file)