Skip to content

Instantly share code, notes, and snippets.

View atyronesmith's full-sized avatar
🏠
Working from home

Aaron Smith atyronesmith

🏠
Working from home
  • Red Hat
View GitHub Profile
@atyronesmith
atyronesmith / cr-vnfd-xlate.hot.yaml
Last active June 1, 2016 20:47
Sample VNFD with notes on translating to tacker
escription: 'OPNFV-Demo-flavor
'
heat_template_version: '2013-05-23'
outputs: {}
parameters:
image: {default: cirros, type: string}
service_type: {default: router, type: string}
resources:
CP1:
@atyronesmith
atyronesmith / cr-nsd.yaml
Last active June 2, 2016 07:59
NSD and related translated VNFDs for demo, the cf-vnfd-xlate-N.yaml files are what the translated files should look like. The cr-vnfd.yaml file is the base untranslated file.
tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
description: OPNFV demo NSD
metadata:
ID: OPNFV demo # ID of this Network Service Descriptor
vendor: Red Hat Inc. # Provider or vendor of the Network Service
version: 1 # Version of the Network Service Descriptor
topology_template:
heat_template_version: 2013-05-23
description: >
HOT template to create a new neutron network plus a router to the public
network, and for deploying two servers into the new network. The template also
assigns floating IP addresses to each server so they are routable from the
public network.
parameters:
ext_net_name:
type: string
@atyronesmith
atyronesmith / nsd.yaml
Last active June 18, 2016 16:25 — forked from Ladas/cloud_router_vnfd.yaml
Working NSD and VNFD
tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
description: OPNFV demo NSD
metadata:
ID: OPNFV demo # ID of this Network Service Descriptor
vendor: Red Hat Inc. # Provider or vendor of the Network Service
version: 1 # Version of the Network Service Descriptor
topology_template:
tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
description: OPNFV demo NSD
metadata:
ID: OPNFV demo # ID of this Network Service Descriptor
vendor: Red Hat Inc. # Provider or vendor of the Network Service
version: 1 # Version of the Network Service Descriptor
topology_template:
tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
description: Simple demo NSD
metadata:
ID: Simple demo # ID of this Network Service Descriptor
vendor: Red Hat Inc. # Provider or vendor of the Network Service
version: 1 # Version of the Network Service Descriptor
topology_template:
@atyronesmith
atyronesmith / tpa-chain-nsd.yaml
Last active August 30, 2016 02:42
Demo chain simple
tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
description: Simple chain demo NSD
metadata:
ID: Simple chain demo # ID of this Network Service Descriptor
vendor: Red Hat Inc. # Provider or vendor of the Network Service
version: 1 # Version of the Network Service Descriptor
topology_template:
tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
description: Transcoding Centos-7 test NSD
metadata:
ID: Simple Centos-7 test demo # ID of this Network Service Descriptor
vendor: Red Hat Inc. # Provider or vendor of the Network Service
version: 1 # Version of the Network Service Descriptor
topology_template:
tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
description: Multicat Application VNFD
metadata:
template_name: transcoding
ID: multicat
vendor: Red Hat Inc
version: 1
for node in $(ironic node-list | grep -v UUID| awk '{print $2}'); do swift -U service:ironic -K $IRONIC_DISCOVERD_PASSWORD download ironic-inspector inspector_data-$node; done
for node in $(ironic node-list | grep -v UUID| awk '{print $2}'); do echo "NODE: $node" ; cat inspector_data-$node | jq '.inventory.disks' ; echo "-----" ; done
ironic node-update 2d618109-2a9b-4ff5-98c8-75c344cccf08 add properties/root_device='{"serial": "5000c5008e28c5b3"}'
OS::TripleO::NodeUserData: /home/stack/templates/firstboot/wipe-disks.yaml