Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
devops
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
osm
devops
Commits
9c7073ac
Commit
9c7073ac
authored
8 years ago
by
Rajesh
Browse files
Options
Downloads
Patches
Plain Diff
Removed the extraneous namespace references in ping and pong descriptor
Signed-off-by:
Rajesh
<
rajesh.velandy@riftio.com
>
parent
4f15781b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/vnfd/ping_vnf/ping_vnfd.yaml
+74
-74
74 additions, 74 deletions
src/vnfd/ping_vnf/ping_vnfd.yaml
src/vnfd/pong_vnf/pong_vnfd.yaml
+74
-74
74 additions, 74 deletions
src/vnfd/pong_vnf/pong_vnfd.yaml
with
148 additions
and
148 deletions
src/vnfd/ping_vnf/ping_vnfd.yaml
+
74
−
74
View file @
9c7073ac
...
...
@@ -16,78 +16,78 @@
#
vnfd:vnfd-catalog
:
vnfd:
vnfd
:
-
vnfd:
connection-point
:
-
vnfd:
name
:
ping_vnfd/cp0
vnfd:
type
:
VPORT
-
vnfd:
name
:
ping_vnfd/cp1
vnfd:
type
:
VPORT
vnfd:
description
:
This is an example RIFT.ware VNF
vnfd:
http-endpoint
:
-
vnfd:
path
:
api/v1/ping/stats
vnfd:
polling_interval_secs
:
'
2'
vnfd:
port
:
'
18888'
vnfd:
id
:
8759e766-8b99-11e6-9664-02b76030c497
vnfd:
logo
:
rift_logo.png
vnfd:
mgmt-interface
:
vnfd:
dashboard-params
:
vnfd:
path
:
api/v1/ping/stats
vnfd:
port
:
'
18888'
vnfd:
port
:
'
18888'
vnfd:
vdu-id
:
iovdu_0
vnfd:
monitoring-param
:
-
vnfd:
description
:
no of ping requests
vnfd:
group-tag
:
Group1
vnfd:
http-endpoint-ref
:
api/v1/ping/stats
vnfd:
id
:
'
1'
vnfd:
json-query-method
:
NAMEKEY
vnfd:
name
:
ping-request-tx-count
vnfd:
units
:
packets
vnfd:
value-type
:
INT
vnfd:
widget-type
:
COUNTER
-
vnfd:
description
:
no of ping responses
vnfd:
group-tag
:
Group1
vnfd:
http-endpoint-ref
:
api/v1/ping/stats
vnfd:
id
:
'
2'
vnfd:
json-query-method
:
NAMEKEY
vnfd:
name
:
ping-response-rx-count
vnfd:
units
:
packets
vnfd:
value-type
:
INT
vnfd:
widget-type
:
COUNTER
vnfd:
name
:
ping_vnfd
vnfd:
placement-groups
:
-
vnfd:
member-vdus
:
-
vnfd:
member-vdu-ref
:
iovdu_0
vnfd:
name
:
Eris
vnfd:
requirement
:
Place this VM on the Kuiper belt object Eris
vnfd:
strategy
:
COLOCATION
vnfd:
short-name
:
ping_vnfd
vnfd:
vdu
:
-
vnfd:
count
:
'
1'
vnfd:
external-interface
:
-
vnfd:
name
:
eth0
vnfd:
virtual-interface
:
vnfd:
type
:
OM-MGMT
vnfd:
vnfd-connection-point-ref
:
ping_vnfd/cp0
-
vnfd:
name
:
eth1
vnfd:
virtual-interface
:
vnfd:
type
:
VIRTIO
vnfd:
vnfd-connection-point-ref
:
ping_vnfd/cp1
vnfd:
id
:
iovdu_0
vnfd:
image
:
Fedora-x86_64-20-20131211.1-sda-ping.qcow2
vnfd:
image-checksum
:
a6ffaa77f949a9e4ebb082c6147187cf
vnfd:
name
:
iovdu_0
vnfd:
vm-flavor
:
vnfd:
memory-mb
:
'
512'
vnfd:
storage-gb
:
'
4'
vnfd:
vcpu-count
:
'
1'
vnfd:
vendor
:
RIFT.io
vnfd:
version
:
'
1.0'
vnfd:
vnf-configuration
:
vnfd:
config-attributes
:
vnfd:
config-delay
:
'
0'
vnfd:
config-priority
:
'
2'
vnfd:
config-template
:
"
\n
#!/bin/bash
\n\n
#
Rest
API
config
\n
ping_mgmt_ip='<rw_mgmt_ip>'
\n\
vnfd
:
-
connection-point
:
-
name
:
ping_vnfd/cp0
type
:
VPORT
-
name
:
ping_vnfd/cp1
type
:
VPORT
description
:
This is an example RIFT.ware VNF
http-endpoint
:
-
path
:
api/v1/ping/stats
polling_interval_secs
:
'
2'
port
:
'
18888'
id
:
8759e766-8b99-11e6-9664-02b76030c497
logo
:
rift_logo.png
mgmt-interface
:
dashboard-params
:
path
:
api/v1/ping/stats
port
:
'
18888'
port
:
'
18888'
vdu-id
:
iovdu_0
monitoring-param
:
-
description
:
no of ping requests
group-tag
:
Group1
http-endpoint-ref
:
api/v1/ping/stats
id
:
'
1'
json-query-method
:
NAMEKEY
name
:
ping-request-tx-count
units
:
packets
value-type
:
INT
widget-type
:
COUNTER
-
description
:
no of ping responses
group-tag
:
Group1
http-endpoint-ref
:
api/v1/ping/stats
id
:
'
2'
json-query-method
:
NAMEKEY
name
:
ping-response-rx-count
units
:
packets
value-type
:
INT
widget-type
:
COUNTER
name
:
ping_vnfd
placement-groups
:
-
member-vdus
:
-
member-vdu-ref
:
iovdu_0
name
:
Eris
requirement
:
Place this VM on the Kuiper belt object Eris
strategy
:
COLOCATION
short-name
:
ping_vnfd
vdu
:
-
count
:
'
1'
external-interface
:
-
name
:
eth0
virtual-interface
:
type
:
OM-MGMT
vnfd-connection-point-ref
:
ping_vnfd/cp0
-
name
:
eth1
virtual-interface
:
type
:
VIRTIO
vnfd-connection-point-ref
:
ping_vnfd/cp1
id
:
iovdu_0
image
:
Fedora-x86_64-20-20131211.1-sda-ping.qcow2
image-checksum
:
a6ffaa77f949a9e4ebb082c6147187cf
name
:
iovdu_0
vm-flavor
:
memory-mb
:
'
512'
storage-gb
:
'
4'
vcpu-count
:
'
1'
vendor
:
RIFT.io
version
:
'
1.0'
vnf-configuration
:
config-attributes
:
config-delay
:
'
0'
config-priority
:
'
2'
config-template
:
"
\n
#!/bin/bash
\n\n
#
Rest
API
config
\n
ping_mgmt_ip='<rw_mgmt_ip>'
\n\
ping_mgmt_port=18888
\n\n
#
VNF
specific
configuration
\n
pong_server_ip='<rw_connection_point_name
\
\
pong_vnfd/cp0>'
\n
ping_rate=5
\n
server_port=5555
\n\n
#
Make
rest
API
\
\
calls
to
configure
VNF
\n
curl
-D
/dev/stdout
\\\n
-H
\"
Accept:
\
...
...
@@ -106,5 +106,5 @@ vnfd:vnfd-catalog:
\"
enable
\\\"
:true}
\"
\\\n
http://${ping_mgmt_ip}:${ping_mgmt_port}/api/v1/ping/adminstatus/state)
\n\
if
[[
$output
==
*
\"
Internal
Server
Error
\"
*
]]
\n
then
\n
echo
$output
\n\
\
exit
3
\n
else
\n
echo
$output
\n
fi
\n\n
exit
0
\n
"
vnfd:
script
:
vnfd:
script-type
:
bash
script
:
script-type
:
bash
This diff is collapsed.
Click to expand it.
src/vnfd/pong_vnf/pong_vnfd.yaml
+
74
−
74
View file @
9c7073ac
...
...
@@ -16,78 +16,78 @@
#
vnfd:vnfd-catalog
:
vnfd:
vnfd
:
-
vnfd:
connection-point
:
-
vnfd:
name
:
pong_vnfd/cp0
vnfd:
type
:
VPORT
-
vnfd:
name
:
pong_vnfd/cp1
vnfd:
type
:
VPORT
vnfd:
description
:
This is an example RIFT.ware VNF
vnfd:
http-endpoint
:
-
vnfd:
path
:
api/v1/pong/stats
vnfd:
polling_interval_secs
:
'
2'
vnfd:
port
:
'
18889'
vnfd:
id
:
875b30d0-8b99-11e6-9664-02b76030c497
vnfd:
logo
:
rift_logo.png
vnfd:
mgmt-interface
:
vnfd:
dashboard-params
:
vnfd:
path
:
api/v1/pong/stats
vnfd:
port
:
'
18889'
vnfd:
port
:
'
18889'
vnfd:
vdu-id
:
iovdu_0
vnfd:
monitoring-param
:
-
vnfd:
description
:
no of ping requests
vnfd:
group-tag
:
Group1
vnfd:
http-endpoint-ref
:
api/v1/pong/stats
vnfd:
id
:
'
1'
vnfd:
json-query-method
:
NAMEKEY
vnfd:
name
:
ping-request-rx-count
vnfd:
units
:
packets
vnfd:
value-type
:
INT
vnfd:
widget-type
:
COUNTER
-
vnfd:
description
:
no of ping responses
vnfd:
group-tag
:
Group1
vnfd:
http-endpoint-ref
:
api/v1/pong/stats
vnfd:
id
:
'
2'
vnfd:
json-query-method
:
NAMEKEY
vnfd:
name
:
ping-response-tx-count
vnfd:
units
:
packets
vnfd:
value-type
:
INT
vnfd:
widget-type
:
COUNTER
vnfd:
name
:
pong_vnfd
vnfd:
placement-groups
:
-
vnfd:
member-vdus
:
-
vnfd:
member-vdu-ref
:
iovdu_0
vnfd:
name
:
Weywot
vnfd:
requirement
:
Place this VM on the Kuiper belt object Weywot
vnfd:
strategy
:
COLOCATION
vnfd:
short-name
:
pong_vnfd
vnfd:
vdu
:
-
vnfd:
count
:
'
1'
vnfd:
external-interface
:
-
vnfd:
name
:
eth0
vnfd:
virtual-interface
:
vnfd:
type
:
OM-MGMT
vnfd:
vnfd-connection-point-ref
:
pong_vnfd/cp0
-
vnfd:
name
:
eth1
vnfd:
virtual-interface
:
vnfd:
type
:
VIRTIO
vnfd:
vnfd-connection-point-ref
:
pong_vnfd/cp1
vnfd:
id
:
iovdu_0
vnfd:
image
:
Fedora-x86_64-20-20131211.1-sda-pong.qcow2
vnfd:
image-checksum
:
977484d95575f80ef8399c9cf1d45ebd
vnfd:
name
:
iovdu_0
vnfd:
vm-flavor
:
vnfd:
memory-mb
:
'
512'
vnfd:
storage-gb
:
'
4'
vnfd:
vcpu-count
:
'
1'
vnfd:
vendor
:
RIFT.io
vnfd:
version
:
'
1.0'
vnfd:
vnf-configuration
:
vnfd:
config-attributes
:
vnfd:
config-delay
:
'
60'
vnfd:
config-priority
:
'
1'
vnfd:
config-template
:
"
\n
#!/bin/bash
\n\n
#
Rest
API
configuration
\n
pong_mgmt_ip='<rw_mgmt_ip>'
\n\
vnfd
:
-
connection-point
:
-
name
:
pong_vnfd/cp0
type
:
VPORT
-
name
:
pong_vnfd/cp1
type
:
VPORT
description
:
This is an example RIFT.ware VNF
http-endpoint
:
-
path
:
api/v1/pong/stats
polling_interval_secs
:
'
2'
port
:
'
18889'
id
:
875b30d0-8b99-11e6-9664-02b76030c497
logo
:
rift_logo.png
mgmt-interface
:
dashboard-params
:
path
:
api/v1/pong/stats
port
:
'
18889'
port
:
'
18889'
vdu-id
:
iovdu_0
monitoring-param
:
-
description
:
no of ping requests
group-tag
:
Group1
http-endpoint-ref
:
api/v1/pong/stats
id
:
'
1'
json-query-method
:
NAMEKEY
name
:
ping-request-rx-count
units
:
packets
value-type
:
INT
widget-type
:
COUNTER
-
description
:
no of ping responses
group-tag
:
Group1
http-endpoint-ref
:
api/v1/pong/stats
id
:
'
2'
json-query-method
:
NAMEKEY
name
:
ping-response-tx-count
units
:
packets
value-type
:
INT
widget-type
:
COUNTER
name
:
pong_vnfd
placement-groups
:
-
member-vdus
:
-
member-vdu-ref
:
iovdu_0
name
:
Weywot
requirement
:
Place this VM on the Kuiper belt object Weywot
strategy
:
COLOCATION
short-name
:
pong_vnfd
vdu
:
-
count
:
'
1'
external-interface
:
-
name
:
eth0
virtual-interface
:
type
:
OM-MGMT
vnfd-connection-point-ref
:
pong_vnfd/cp0
-
name
:
eth1
virtual-interface
:
type
:
VIRTIO
vnfd-connection-point-ref
:
pong_vnfd/cp1
id
:
iovdu_0
image
:
Fedora-x86_64-20-20131211.1-sda-pong.qcow2
image-checksum
:
977484d95575f80ef8399c9cf1d45ebd
name
:
iovdu_0
vm-flavor
:
memory-mb
:
'
512'
storage-gb
:
'
4'
vcpu-count
:
'
1'
vendor
:
RIFT.io
version
:
'
1.0'
vnf-configuration
:
config-attributes
:
config-delay
:
'
60'
config-priority
:
'
1'
config-template
:
"
\n
#!/bin/bash
\n\n
#
Rest
API
configuration
\n
pong_mgmt_ip='<rw_mgmt_ip>'
\n\
pong_mgmt_port=18889
\n
#
username=<rw_username>
\n
#
password=<rw_password>
\n\
\n
#
VNF
specific
configuration
\n
pong_server_ip='<rw_connection_point_name
\
\
pong_vnfd/cp0>'
\n
server_port=5555
\n\n
#
Make
Rest
API
calls
to
configure
\
...
...
@@ -102,5 +102,5 @@ vnfd:vnfd-catalog:
\"
enable
\\\"
:true}
\"
\\\n
http://${pong_mgmt_ip}:${pong_mgmt_port}/api/v1/pong/adminstatus/state
\n\
rc=$?
\n
if
[
$rc
-ne
0
]
\n
then
\n
echo
\"
Failed
to
enable
pong
service!
\"\
\n
exit
$rc
\n
fi
\n\n
exit
0
\n
"
vnfd:
script
:
vnfd:
script-type
:
bash
script
:
script-type
:
bash
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment