Basic plugin UI added

Change-Id: I8406b7daa5fc667edbe827f65de2d71aed629abe
This commit is contained in:
Nikita Koshikov 2015-02-09 17:19:28 +02:00
parent f2a5129960
commit 8c8eb4bb44
6 changed files with 147 additions and 0 deletions

115
environment_config.yaml Normal file
View File

@ -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

21
metadata.yaml Normal file
View File

@ -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'

0
pre_build_hook Executable file
View File

View File

View File

11
tasks.yaml Normal file
View File

@ -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