Update ping/pong example for R3
This updates the descriptors for the ping/pong example to work with
Release THREE:
- Removing unused element(s)
- Renaming service-primitive to config-primitive
- Defaulting to a vim-network-name of mgmt for the mangement network
Signed-off-by: Adam Israel <adam.israel@canonical.com>
diff --git a/descriptor-packages/nsd/ping_pong_ns/src/ping_pong_nsd.yaml b/descriptor-packages/nsd/ping_pong_ns/src/ping_pong_nsd.yaml
index 347c78e..ec13b26 100644
--- a/descriptor-packages/nsd/ping_pong_ns/src/ping_pong_nsd.yaml
+++ b/descriptor-packages/nsd/ping_pong_ns/src/ping_pong_nsd.yaml
@@ -74,6 +74,7 @@
description: Management VL
name: mgmt_vl
short-name: mgmt_vl
+ vim-network-name: mgmt
type: ELAN
vendor: RIFT.io
version: '1.0'
diff --git a/descriptor-packages/vnfd/ping_vnf/src/ping_vnfd.yaml b/descriptor-packages/vnfd/ping_vnf/src/ping_vnfd.yaml
index 8aa7817..f51012d 100644
--- a/descriptor-packages/vnfd/ping_vnf/src/ping_vnfd.yaml
+++ b/descriptor-packages/vnfd/ping_vnf/src/ping_vnfd.yaml
@@ -31,7 +31,6 @@
type: VPORT
http-endpoint:
- path: api/v1/ping/stats
- polling_interval_secs: '2'
port: '18888'
mgmt-interface:
dashboard-params:
@@ -50,11 +49,13 @@
count: '1'
interface:
- name: eth0
+ position: 0
type: EXTERNAL
virtual-interface:
type: VIRTIO
external-connection-point-ref: ping_vnfd/cp0
- name: eth1
+ position: 1
type: EXTERNAL
virtual-interface:
type: VIRTIO
@@ -67,7 +68,7 @@
storage-gb: '4'
vcpu-count: '1'
vnf-configuration:
- service-primitive:
+ config-primitive:
- name: start
- name: stop
- name: restart
diff --git a/descriptor-packages/vnfd/pong_vnf/src/pong_vnfd.yaml b/descriptor-packages/vnfd/pong_vnf/src/pong_vnfd.yaml
index 33082f1..4c49888 100644
--- a/descriptor-packages/vnfd/pong_vnf/src/pong_vnfd.yaml
+++ b/descriptor-packages/vnfd/pong_vnf/src/pong_vnfd.yaml
@@ -31,7 +31,6 @@
type: VPORT
http-endpoint:
- path: api/v1/pong/stats
- polling_interval_secs: '2'
port: '18889'
mgmt-interface:
dashboard-params:
@@ -50,11 +49,13 @@
count: '1'
interface:
- name: eth0
+ position: 0
type: EXTERNAL
virtual-interface:
type: VIRTIO
external-connection-point-ref: pong_vnfd/cp0
- name: eth1
+ position: 1
type: EXTERNAL
virtual-interface:
type: VIRTIO
@@ -67,7 +68,7 @@
storage-gb: '4'
vcpu-count: '1'
vnf-configuration:
- service-primitive:
+ config-primitive:
- name: start
- name: stop
- name: restart