From 83a0a698dcfb58ca513e9ecc532c3cbaeacd0888 Mon Sep 17 00:00:00 2001 From: Nikita Koshikov Date: Mon, 9 Feb 2015 17:19:28 +0200 Subject: [PATCH] Basic plugin UI added --- environment_config.yaml | 115 +++++++++++++++++++++++++++++++++++ metadata.yaml | 21 +++++++ pre_build_hook | 0 repositories/centos/.gitkeep | 0 repositories/ubuntu/.gitkeep | 0 tasks.yaml | 11 ++++ 6 files changed, 147 insertions(+) create mode 100644 environment_config.yaml create mode 100644 metadata.yaml create mode 100755 pre_build_hook create mode 100644 repositories/centos/.gitkeep create mode 100644 repositories/ubuntu/.gitkeep create mode 100644 tasks.yaml diff --git a/environment_config.yaml b/environment_config.yaml new file mode 100644 index 0000000..0cfe1a9 --- /dev/null +++ b/environment_config.yaml @@ -0,0 +1,115 @@ +attributes: + install_type: + type: "radio" + weight: 20 + value: "apic" + label: "Cisco SDN install type" + values: + - data: "apic" + label: "Generic APIC ML2 driver" + description: "Core Cisco ML2 Neutron plugin" + - data: "gbp" + label: "GBP module and Mapping driver" + description: "Description ...." + - data: "apic_with_gbp" + label: "GBP module and APIC driver" + description: "Description ..." + apic_hosts: + value: '10.0.0.100' + label: 'APIC Host' + description: 'Comma­separated list of Cisco APIC IP addresses' + weight: 31 + type: "text" + apic_username: + value: 'admin' + label: 'APIC Username' + description: 'Username for Cisco APIC; usually admin is used to allow configuration for multiple tenants' + weight: 32 + type: "text" + regex: + source: '\S' + error: "Error field cannot be empty" + apic_password: + value: 'password' + label: 'APIC Password' + description: 'Password for the Cisco APIC user identified by the username' + weight: 33 + type: "password" + regex: + source: '\S' + error: "Error field cannot be empty" + use_lldp: + type: "checkbox" + weight: 40 + value: true + label: "Use lldp" + description: "Try to automatically discover hosts" + restrictions: + #- condition: "settings:cisco_aci.install_type.value != \"apic\"" + # action: disable + static_config: + type: "textarea" + weight: 41 + value: "" + label: "Static config" + description: "Example:\n[apic_switch:201]\ncompute11,compute21=1/10\ncompute12=1/11\n" + restrictions: + - condition: "settings:cisco_aci.use_lldp.value != false" + action: disable + additional_config: + type: "textarea" + weight: 42 + value: "" + label: "Additional config" + description: "Example:\n[DEFAULT]\napic_vpc_pairs=201:202,203:204" + create_ext_net: + type: "checkbox" + weight: 70 + value: false + label: "Configure external network" + description: "Create external neutron network" + ext_net_name: + type: "text" + weight: 71 + value: "myextnet" + label: "Network name:" + description: "External network name" + restrictions: + - condition: "settings:cisco_aci.create_ext_net.value == false" + action: hide + ext_net_subnet: + type: "text" + weight: 72 + value: "10.0.0.0/24" + label: "Subnet range:" + description: "CIDR for external network" + restrictions: + - condition: "settings:cisco_aci.create_ext_net.value == false" + action: hide + ext_net_gateway: + type: "text" + weight: 73 + value: "10.0.0.1" + label: "Gateway IP:" + description: "IP address of the external gateway" + restrictions: + - condition: "settings:cisco_aci.create_ext_net.value == false" + action: hide + ext_net_switch: + type: "text" + weight: 74 + value: "203" + label: "Switch ID:" + description: "Switch ID from Cisco APIC" + restrictions: + - condition: "settings:cisco_aci.create_ext_net.value == false" + action: hide + ext_net_port: + type: "text" + weight: 75 + value: "1/34" + label: "Port ID:" + description: "Switch port to which the external router is connected" + restrictions: + - condition: "settings:cisco_aci.create_ext_net.value == false" + action: hide diff --git a/metadata.yaml b/metadata.yaml new file mode 100644 index 0000000..7d4134c --- /dev/null +++ b/metadata.yaml @@ -0,0 +1,21 @@ +# Plugin name +name: cisco_aci +# Human-readable name for your plugin +title: Cisco APIC Plugin support +# Plugin version +version: 1.0.0 +# Description +description: Enable to use Cisco SDN solutions for Neutron +# Required fuel version +fuel_version: ['6.0'] + +# The plugin is compatible with releases in the list +releases: + - os: ubuntu + version: 2014.2-6.0 + mode: ['ha', 'multinode'] + deployment_scripts_path: deployment_scripts/ + repository_path: repositories/ubuntu + +# Version of plugin package +package_version: '1.0.0' diff --git a/pre_build_hook b/pre_build_hook new file mode 100755 index 0000000..e69de29 diff --git a/repositories/centos/.gitkeep b/repositories/centos/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/repositories/ubuntu/.gitkeep b/repositories/ubuntu/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/tasks.yaml b/tasks.yaml new file mode 100644 index 0000000..685f1c3 --- /dev/null +++ b/tasks.yaml @@ -0,0 +1,11 @@ +# This tasks will be applied on controller nodes, +# here you can also specify several roles, for example +# ['cinder', 'compute'] will be applied only on +# cinder and compute nodes +- role: ['controller','compute'] + stage: post_deployment + type: puppet + parameters: + puppet_manifest: puppet/site.pp + puppet_modules: puppet/modules/ + timeout: 42