Skip to content

Instantly share code, notes, and snippets.

@nherbaut
Created February 17, 2016 15:35
Show Gist options
  • Select an option

  • Save nherbaut/5d906d3ce13fa6d7457e to your computer and use it in GitHub Desktop.

Select an option

Save nherbaut/5d906d3ce13fa6d7457e to your computer and use it in GitHub Desktop.
{
"description" : "viotech vHG",
"version" : "0.0.1",
"vdus" : [
{
"id" : "vdu0",
"monitoring_parameters" : [
{
"desc" : "CPU Idle",
"metric" : "cpuidle",
"unit" : "%"
},
{
"desc" : "CPU Utilization",
"unit" : "%",
"metric" : "cpu_util"
},
{
"desc" : "Free Storage",
"unit" : "GB",
"metric" : "fsfree"
},
{
"desc" : "Free Memory",
"metric" : "memfree",
"unit" : "MB"
},
{
"unit" : "Mbps",
"metric" : "network_incoming",
"desc" : "Network Incoming"
},
{
"desc" : "Network Outgoing",
"unit" : "Mbps",
"metric" : "network_outgoing"
},
{
"desc" : "Load Average (1 Minute)",
"metric" : "load_shortterm",
"unit" : "%"
},
{
"desc" : "Load Average (5 Minutes)",
"unit" : "%",
"metric" : "load_midterm"
},
{
"desc" : "Load Average (15 Minutes)",
"metric" : "load_longterm",
"unit" : "%"
},
{
"unit" : "INT",
"metric" : "processes_blocked",
"desc" : "Blocked Processes"
},
{
"desc" : "Paging Processes",
"metric" : "processes_paging",
"unit" : "INT"
},
{
"desc" : "Running Processes",
"unit" : "INT",
"metric" : "processes_running"
},
{
"desc" : "Sleeping Processes",
"unit" : "INT",
"metric" : "processes_sleeping"
},
{
"metric" : "processes_stopped",
"unit" : "INT",
"desc" : "Stopped Processes"
},
{
"desc" : "Zombie Processes",
"unit" : "INT",
"metric" : "processes_zombie"
}
],
"networking_resources" : "",
"controller" : true,
"alias" : "Controller",
"connection_points" : [
{
"vlink_ref" : "vl0",
"id" : "CP1kar"
}
],
"resource_requirements" : {
"cpu_support_accelerator" : "AES-NI",
"storage" : {
"size" : 2,
"size_unit" : "GB",
"persistence" : false
},
"network_interface_bandwidth_unit" : "",
"hypervisor_parameters" : {
"version" : "10002|12001|2.6.32-358.el6.x86_64",
"type" : "QEMU-KVM"
},
"network_interface_bandwidth" : "",
"network_interface_card_capabilities" : {
"mirroring" : false,
"SR-IOV" : true
},
"memory_parameters" : {
"large_pages_required" : false,
"numa_allocation_policy" : ""
},
"vswitch_capabilities" : {
"type" : "ovs",
"overlay_tunnel" : "GRE",
"version" : "2.0"
},
"memory" : 512,
"data_processing_acceleration_library" : "",
"platform_pcie_parameters" : {
"SR-IOV" : true,
"device_pass_through" : true
},
"vcpus" : 1,
"memory_unit" : "MB"
},
"scale_in_out" : {
"maximum" : 1,
"minimum" : 1
},
"vm_image" : "cirros-0.3.4-x86_64-disk.img"
},
{
"id" : "vdu1",
"monitoring_parameters" : [
{
"unit" : "%",
"metric" : "cpuidle",
"desc" : "CPU Idle"
},
{
"desc" : "CPU Utilization",
"metric" : "cpu_util",
"unit" : "%"
},
{
"unit" : "GB",
"metric" : "fsfree",
"desc" : "Free Storage"
},
{
"unit" : "MB",
"metric" : "memfree",
"desc" : "Free Memory"
},
{
"unit" : "Mbps",
"metric" : "network_incoming",
"desc" : "Network Incoming"
},
{
"metric" : "network_outgoing",
"unit" : "Mbps",
"desc" : "Network Outgoing"
},
{
"metric" : "load_shortterm",
"unit" : "%",
"desc" : "Load Average (1 Minute)"
},
{
"desc" : "Load Average (5 Minutes)",
"unit" : "%",
"metric" : "load_midterm"
},
{
"unit" : "%",
"metric" : "load_longterm",
"desc" : "Load Average (15 Minutes)"
},
{
"desc" : "Blocked Processes",
"metric" : "processes_blocked",
"unit" : "INT"
},
{
"unit" : "INT",
"metric" : "processes_paging",
"desc" : "Paging Processes"
},
{
"metric" : "processes_running",
"unit" : "INT",
"desc" : "Running Processes"
},
{
"desc" : "Sleeping Processes",
"metric" : "processes_sleeping",
"unit" : "INT"
},
{
"unit" : "INT",
"metric" : "processes_stopped",
"desc" : "Stopped Processes"
},
{
"unit" : "INT",
"metric" : "processes_zombie",
"desc" : "Zombie Processes"
}
],
"controller" : false,
"networking_resources" : "",
"vm_image" : "cirros-0.3.4-x86_64-disk.img",
"scale_in_out" : {
"maximum" : 1,
"minimum" : 1
},
"resource_requirements" : {
"platform_pcie_parameters" : {
"device_pass_through" : true,
"SR-IOV" : true
},
"memory_unit" : "GB",
"vcpus" : 2,
"vswitch_capabilities" : {
"version" : "2.0",
"type" : "ovs",
"overlay_tunnel" : "GRE"
},
"data_processing_acceleration_library" : "",
"memory" : 2,
"memory_parameters" : {
"numa_allocation_policy" : "",
"large_pages_required" : false
},
"network_interface_card_capabilities" : {
"SR-IOV" : true,
"mirroring" : false
},
"storage" : {
"size" : 8,
"size_unit" : "GB",
"persistence" : false
},
"cpu_support_accelerator" : "AES-NI",
"network_interface_bandwidth_unit" : "",
"hypervisor_parameters" : {
"type" : "QEMU-KVM",
"version" : "10002|12001|2.6.32-358.el6.x86_64"
},
"network_interface_bandwidth" : ""
},
"connection_points" : [
{
"vlink_ref" : "vl0",
"id" : "CPt800"
},
{
"vlink_ref" : "vl1",
"id" : "CPxtaa"
}
],
"alias" : "VHG"
},
{
"vm_image" : "cirros-0.3.4-x86_64-disk.img",
"scale_in_out" : {
"minimum" : 1,
"maximum" : 1
},
"resource_requirements" : {
"vswitch_capabilities" : {
"type" : "ovs",
"overlay_tunnel" : "GRE",
"version" : "2.0"
},
"data_processing_acceleration_library" : "",
"memory" : 2,
"platform_pcie_parameters" : {
"device_pass_through" : true,
"SR-IOV" : true
},
"memory_unit" : "GB",
"vcpus" : 2,
"storage" : {
"persistence" : false,
"size_unit" : "GB",
"size" : 8
},
"cpu_support_accelerator" : "AES-NI",
"hypervisor_parameters" : {
"type" : "QEMU-KVM",
"version" : "10002|12001|2.6.32-358.el6.x86_64"
},
"network_interface_bandwidth_unit" : "",
"network_interface_bandwidth" : "",
"network_interface_card_capabilities" : {
"SR-IOV" : true,
"mirroring" : false
},
"memory_parameters" : {
"large_pages_required" : false,
"numa_allocation_policy" : ""
}
},
"alias" : "CDN-LB",
"connection_points" : [
{
"vlink_ref" : "vl0",
"id" : "CPe1vn"
}
],
"controller" : false,
"networking_resources" : "",
"monitoring_parameters" : [
{
"metric" : "cpuidle",
"unit" : "%",
"desc" : "CPU Idle"
},
{
"metric" : "cpu_util",
"unit" : "%",
"desc" : "CPU Utilization"
},
{
"unit" : "GB",
"metric" : "fsfree",
"desc" : "Free Storage"
},
{
"desc" : "Free Memory",
"unit" : "MB",
"metric" : "memfree"
},
{
"unit" : "Mbps",
"metric" : "network_incoming",
"desc" : "Network Incoming"
},
{
"metric" : "network_outgoing",
"unit" : "Mbps",
"desc" : "Network Outgoing"
},
{
"desc" : "Load Average (1 Minute)",
"unit" : "%",
"metric" : "load_shortterm"
},
{
"desc" : "Load Average (5 Minutes)",
"metric" : "load_midterm",
"unit" : "%"
},
{
"desc" : "Load Average (15 Minutes)",
"metric" : "load_longterm",
"unit" : "%"
},
{
"metric" : "processes_blocked",
"unit" : "INT",
"desc" : "Blocked Processes"
},
{
"desc" : "Paging Processes",
"metric" : "processes_paging",
"unit" : "INT"
},
{
"unit" : "INT",
"metric" : "processes_running",
"desc" : "Running Processes"
},
{
"unit" : "INT",
"metric" : "processes_sleeping",
"desc" : "Sleeping Processes"
},
{
"unit" : "INT",
"metric" : "processes_stopped",
"desc" : "Stopped Processes"
},
{
"metric" : "processes_zombie",
"unit" : "INT",
"desc" : "Zombie Processes"
}
],
"id" : "vdu2"
},
{
"controller" : false,
"networking_resources" : "",
"vm_image" : "cirros-0.3.4-x86_64-disk.img",
"scale_in_out" : {
"maximum" : 1,
"minimum" : 1
},
"resource_requirements" : {
"memory_unit" : "GB",
"vcpus" : 1,
"platform_pcie_parameters" : {
"device_pass_through" : true,
"SR-IOV" : true
},
"data_processing_acceleration_library" : "",
"memory" : 2,
"vswitch_capabilities" : {
"version" : "2.0",
"overlay_tunnel" : "GRE",
"type" : "ovs"
},
"memory_parameters" : {
"large_pages_required" : false,
"numa_allocation_policy" : ""
},
"network_interface_card_capabilities" : {
"SR-IOV" : true,
"mirroring" : false
},
"network_interface_bandwidth" : "",
"network_interface_bandwidth_unit" : "",
"hypervisor_parameters" : {
"type" : "QEMU-KVM",
"version" : "10002|12001|2.6.32-358.el6.x86_64"
},
"storage" : {
"size" : 30,
"size_unit" : "GB",
"persistence" : false
},
"cpu_support_accelerator" : "AES-NI"
},
"alias" : "CDN-1",
"connection_points" : [
{
"id" : "CPmttd",
"vlink_ref" : "vl0"
}
],
"id" : "vdu3",
"monitoring_parameters" : [
{
"desc" : "CPU Idle",
"unit" : "%",
"metric" : "cpuidle"
},
{
"unit" : "%",
"metric" : "cpu_util",
"desc" : "CPU Utilization"
},
{
"metric" : "fsfree",
"unit" : "GB",
"desc" : "Free Storage"
},
{
"metric" : "memfree",
"unit" : "MB",
"desc" : "Free Memory"
},
{
"unit" : "Mbps",
"metric" : "network_incoming",
"desc" : "Network Incoming"
},
{
"desc" : "Network Outgoing",
"metric" : "network_outgoing",
"unit" : "Mbps"
},
{
"metric" : "load_shortterm",
"unit" : "%",
"desc" : "Load Average (1 Minute)"
},
{
"desc" : "Load Average (5 Minutes)",
"metric" : "load_midterm",
"unit" : "%"
},
{
"desc" : "Load Average (15 Minutes)",
"unit" : "%",
"metric" : "load_longterm"
},
{
"desc" : "Blocked Processes",
"metric" : "processes_blocked",
"unit" : "INT"
},
{
"metric" : "processes_paging",
"unit" : "INT",
"desc" : "Paging Processes"
},
{
"unit" : "INT",
"metric" : "processes_running",
"desc" : "Running Processes"
},
{
"desc" : "Sleeping Processes",
"metric" : "processes_sleeping",
"unit" : "INT"
},
{
"metric" : "processes_stopped",
"unit" : "INT",
"desc" : "Stopped Processes"
},
{
"unit" : "INT",
"metric" : "processes_zombie",
"desc" : "Zombie Processes"
}
]
},
{
"id" : "vdu4",
"monitoring_parameters" : [
{
"desc" : "CPU Idle",
"metric" : "cpuidle",
"unit" : "%"
},
{
"unit" : "%",
"metric" : "cpu_util",
"desc" : "CPU Utilization"
},
{
"desc" : "Free Storage",
"metric" : "fsfree",
"unit" : "GB"
},
{
"desc" : "Free Memory",
"metric" : "memfree",
"unit" : "MB"
},
{
"unit" : "Mbps",
"metric" : "network_incoming",
"desc" : "Network Incoming"
},
{
"desc" : "Network Outgoing",
"metric" : "network_outgoing",
"unit" : "Mbps"
},
{
"desc" : "Load Average (1 Minute)",
"metric" : "load_shortterm",
"unit" : "%"
},
{
"desc" : "Load Average (5 Minutes)",
"metric" : "load_midterm",
"unit" : "%"
},
{
"desc" : "Load Average (15 Minutes)",
"metric" : "load_longterm",
"unit" : "%"
},
{
"unit" : "INT",
"metric" : "processes_blocked",
"desc" : "Blocked Processes"
},
{
"metric" : "processes_paging",
"unit" : "INT",
"desc" : "Paging Processes"
},
{
"desc" : "Running Processes",
"metric" : "processes_running",
"unit" : "INT"
},
{
"desc" : "Sleeping Processes",
"metric" : "processes_sleeping",
"unit" : "INT"
},
{
"metric" : "processes_stopped",
"unit" : "INT",
"desc" : "Stopped Processes"
},
{
"metric" : "processes_zombie",
"unit" : "INT",
"desc" : "Zombie Processes"
}
],
"networking_resources" : "",
"controller" : false,
"resource_requirements" : {
"memory_unit" : "GB",
"vcpus" : 1,
"platform_pcie_parameters" : {
"device_pass_through" : true,
"SR-IOV" : true
},
"data_processing_acceleration_library" : "",
"memory" : 2,
"vswitch_capabilities" : {
"version" : "2.0",
"type" : "ovs",
"overlay_tunnel" : "GRE"
},
"network_interface_card_capabilities" : {
"mirroring" : false,
"SR-IOV" : true
},
"memory_parameters" : {
"numa_allocation_policy" : "",
"large_pages_required" : false
},
"network_interface_bandwidth_unit" : "",
"hypervisor_parameters" : {
"type" : "QEMU-KVM",
"version" : "10002|12001|2.6.32-358.el6.x86_64"
},
"network_interface_bandwidth" : "",
"storage" : {
"persistence" : false,
"size_unit" : "GB",
"size" : 8
},
"cpu_support_accelerator" : "AES-NI"
},
"scale_in_out" : {
"minimum" : 1,
"maximum" : 1
},
"vm_image" : "cirros-0.3.4-x86_64-disk.img",
"alias" : "CDN-2",
"connection_points" : [
{
"id" : "CPh66u",
"vlink_ref" : "vl0"
}
]
}
],
"release" : "T-NOVA",
"vlinks" : [
{
"connectivity_type" : "E-LAN",
"connection_points_reference" : [
"CP1kar",
"CPt800",
"CPe1vn",
"CPmttd",
"CPh66u",
"CP1kar",
"CPt800",
"CPe1vn",
"CPmttd",
"CPh66u",
"CP1kar",
"CPt800",
"CPe1vn",
"CPmttd",
"CPh66u",
"CP1kar",
"CPt800",
"CPe1vn",
"CPmttd",
"CPh66u",
"CP1kar",
"CPt800",
"CPe1vn",
"CPmttd",
"CPh66u",
"CP1kar",
"CPt800",
"CPe1vn",
"CPmttd",
"CPh66u",
"CP1kar",
"CPt800",
"CPe1vn",
"CPmttd",
"CPh66u",
"CP1kar",
"CPt800",
"CPe1vn",
"CPmttd",
"CPh66u",
"CP1kar",
"CPt800",
"CPe1vn",
"CPmttd",
"CPh66u",
"CP1kar",
"CPt800",
"CPe1vn",
"CPmttd",
"CPh66u",
"CP1kar",
"CPt800",
"CPe1vn",
"CPmttd",
"CPh66u"
],
"leaf_requirement" : "Unlimeted",
"external_access" : false,
"root_requirement" : "Unlimeted",
"id" : "vl0",
"vdu_reference" : [
"vdu0",
"vdu1",
"vdu2",
"vdu3",
"vdu4"
],
"access" : false,
"alias" : "mgt",
"qos" : "",
"dhcp" : true
},
{
"leaf_requirement" : "Unlimeted",
"connection_points_reference" : [
"CPxtaa",
"CPxtaa",
"CPxtaa",
"CPxtaa",
"CPxtaa",
"CPxtaa",
"CPxtaa",
"CPxtaa",
"CPxtaa",
"CPxtaa",
"CPxtaa"
],
"connectivity_type" : "E-LINE",
"id" : "vl1",
"root_requirement" : "Unlimeted",
"external_access" : true,
"access" : true,
"alias" : "box2user",
"vdu_reference" : [
"vdu1"
],
"dhcp" : true,
"qos" : ""
},
{
"alias" : "cnd2user",
"access" : true,
"vdu_reference" : [],
"qos" : "",
"dhcp" : true,
"leaf_requirement" : "Unlimeted",
"connectivity_type" : "E-LINE",
"connection_points_reference" : [],
"root_requirement" : "Unlimeted",
"external_access" : true,
"id" : "vl2"
}
],
"trade" : false,
"billing_model" : {
"model" : "PAYG",
"period" : {
"period" : "D",
"value" : 1
},
"price" : {
"unit" : "EUR",
"setup" : null,
"max_per_period" : null,
"min_per_period" : null
}
},
"descriptor_version" : "0.0.1",
"name" : "viotech vHG",
"type" : "vHG",
"vnf_lifecycle_events" : [
{
"authentication_username" : "root",
"authentication_type" : "PubKeyAuthentication",
"events" : {
"start" : {
"command" : "/home/root/start.sh"
},
"restart" : {
"command" : "/home/root/restart.sh"
},
"stop" : {
"command" : "/home/root/stop.sh"
}
},
"flavor_id_ref" : "flavor0",
"driver" : "ssh"
}
],
"deployment_flavours" : [
{
"id" : "flavor0",
"assurance_parameters" : [
{
"violation" : [
{
"interval" : 360,
"breaches_count" : 2
}
],
"value" : 80,
"id" : "cpuidle",
"rel_id" : "param0",
"penalty" : {
"expression" : 10,
"unit" : "%",
"validity" : "1PD",
"type" : "Discount"
},
"unit" : "%",
"formula" : "cpuidle LT 80"
}
],
"constraint" : "",
"flavour_key" : "gold",
"vdu_reference" : [
"vdu0",
"vdu1",
"vdu2",
"vdu3",
"vdu4"
],
"vlink_reference" : [
"vl0",
"vl1",
"vl2"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment