Skip to content

Instantly share code, notes, and snippets.

@dangtrinhnt
Created July 22, 2018 19:22
Show Gist options
  • Save dangtrinhnt/0f814e84480a1d28f66c3febc3809e33 to your computer and use it in GitHub Desktop.
Save dangtrinhnt/0f814e84480a1d28f66c3febc3809e33 to your computer and use it in GitHub Desktop.
SURICATA VNFD used for dynamic SFC update
tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
description: suricata
metadata:
template_name: suricata
topology_template:
node_templates:
VDU1:
type: tosca.nodes.nfv.VDU.Tacker
capabilities:
nfv_compute:
properties:
num_cpus: 1
mem_size: 4096 MB
disk_size: 15 GB
properties:
user_data_format: RAW
user_data: |
#! /bin/sh
echo "auto ens4" >> /etc/network/interfaces.d/50-cloud-init.cfg
echo "iface ens4 inet dhcp" >> /etc/network/interfaces.d/50-cloud-init.cfg
sudo ifup ens4
image: ubuntu
availability_zone: nova
mgmt_driver: noop
config: |
param0: key1
param1: key2
service_type: firewall
monitoring_policy:
name: ping
parameters:
monitoring_delay: 10
count: 3
interval: 2
timeout: 2
action:
failure: respawn
retry: 5
port: 22
CP2:
type: tosca.nodes.nfv.CP.Tacker
properties:
management: true
order: 0
anti_spoofing_protection: false
requirements:
- virtualLink:
node: VL1
- virtualBinding:
node: VDU1
VL1:
type: tosca.nodes.nfv.VL
properties:
network_name: net1
vendor: Tacker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment