Browse Source

Basic plugin UI added

Change-Id: I8406b7daa5fc667edbe827f65de2d71aed629abe
changes/04/171604/1
Nikita Koshikov 4 years ago
parent
commit
8c8eb4bb44
6 changed files with 147 additions and 0 deletions
  1. 115
    0
      environment_config.yaml
  2. 21
    0
      metadata.yaml
  3. 0
    0
      pre_build_hook
  4. 0
    0
      repositories/centos/.gitkeep
  5. 0
    0
      repositories/ubuntu/.gitkeep
  6. 11
    0
      tasks.yaml

+ 115
- 0
environment_config.yaml View File

@@ -0,0 +1,115 @@
1
+attributes:
2
+  install_type:
3
+    type: "radio"
4
+    weight: 20
5
+    value: "apic"
6
+    label: "Cisco SDN install type"
7
+    values:
8
+      - data: "apic"
9
+        label: "Generic APIC ML2 driver"
10
+        description: "Core Cisco ML2 Neutron plugin"
11
+      - data: "gbp"
12
+        label: "GBP module and Mapping driver"
13
+        description: "Description ...."
14
+      - data: "apic_with_gbp"
15
+        label: "GBP module and APIC driver"
16
+        description: "Description ..."
17
+  apic_hosts:
18
+    value: '10.0.0.100'
19
+    label: 'APIC Host'
20
+    description: 'Comma­separated list of Cisco APIC IP addresses'
21
+    weight: 31
22
+    type: "text"
23
+  apic_username:
24
+    value: 'admin'
25
+    label: 'APIC Username'
26
+    description: 'Username for Cisco APIC; usually admin is used to allow configuration for multiple tenants'
27
+    weight: 32
28
+    type: "text"
29
+    regex:
30
+      source: '\S'
31
+      error: "Error field cannot be empty"
32
+  apic_password:
33
+    value: 'password'
34
+    label: 'APIC Password'
35
+    description: 'Password for the Cisco APIC user identified by the username'
36
+    weight: 33
37
+    type: "password"
38
+    regex:
39
+      source: '\S'
40
+      error: "Error field cannot be empty"
41
+  use_lldp:
42
+    type: "checkbox"
43
+    weight: 40
44
+    value: true
45
+    label: "Use lldp"
46
+    description: "Try to automatically discover hosts"
47
+    restrictions:
48
+        #- condition: "settings:cisco_aci.install_type.value != \"apic\""
49
+        # action: disable
50
+  static_config:
51
+    type: "textarea"
52
+    weight: 41
53
+    value: ""
54
+    label: "Static config"
55
+    description: "Example:\n[apic_switch:201]\ncompute11,compute21=1/10\ncompute12=1/11\n"
56
+    restrictions:
57
+        - condition: "settings:cisco_aci.use_lldp.value != false"
58
+          action: disable
59
+  additional_config:
60
+    type: "textarea"
61
+    weight: 42
62
+    value: ""
63
+    label: "Additional config"
64
+    description: "Example:\n[DEFAULT]\napic_vpc_pairs=201:202,203:204"
65
+  create_ext_net:
66
+    type: "checkbox"
67
+    weight: 70
68
+    value: false
69
+    label: "Configure external network"
70
+    description: "Create external neutron network"
71
+  ext_net_name:
72
+    type: "text"
73
+    weight: 71
74
+    value: "myextnet"
75
+    label: "Network name:"
76
+    description: "External network name"
77
+    restrictions:
78
+        - condition: "settings:cisco_aci.create_ext_net.value == false"
79
+          action: hide
80
+  ext_net_subnet:
81
+    type: "text"
82
+    weight: 72
83
+    value: "10.0.0.0/24"
84
+    label: "Subnet range:"
85
+    description: "CIDR for external network"
86
+    restrictions:
87
+        - condition: "settings:cisco_aci.create_ext_net.value == false"
88
+          action: hide
89
+  ext_net_gateway:
90
+    type: "text"
91
+    weight: 73
92
+    value: "10.0.0.1"
93
+    label: "Gateway IP:"
94
+    description: "IP address of the external gateway"
95
+    restrictions:
96
+        - condition: "settings:cisco_aci.create_ext_net.value == false"
97
+          action: hide
98
+  ext_net_switch:
99
+    type: "text"
100
+    weight: 74
101
+    value: "203"
102
+    label: "Switch ID:"
103
+    description: "Switch ID from Cisco APIC"
104
+    restrictions:
105
+        - condition: "settings:cisco_aci.create_ext_net.value == false"
106
+          action: hide
107
+  ext_net_port:
108
+    type: "text"
109
+    weight: 75
110
+    value: "1/34"
111
+    label: "Port ID:"
112
+    description: "Switch port to which the external router is connected"
113
+    restrictions:
114
+        - condition: "settings:cisco_aci.create_ext_net.value == false"
115
+          action: hide

+ 21
- 0
metadata.yaml View File

@@ -0,0 +1,21 @@
1
+# Plugin name
2
+name: cisco_aci
3
+# Human-readable name for your plugin
4
+title: Cisco APIC Plugin support
5
+# Plugin version
6
+version: 1.0.0
7
+# Description
8
+description: Enable to use Cisco SDN solutions for Neutron
9
+# Required fuel version
10
+fuel_version: ['6.0']
11
+
12
+# The plugin is compatible with releases in the list
13
+releases:
14
+  - os: ubuntu
15
+    version: 2014.2-6.0
16
+    mode: ['ha', 'multinode']
17
+    deployment_scripts_path: deployment_scripts/
18
+    repository_path: repositories/ubuntu
19
+
20
+# Version of plugin package
21
+package_version: '1.0.0'

+ 0
- 0
pre_build_hook View File


+ 0
- 0
repositories/centos/.gitkeep View File


+ 0
- 0
repositories/ubuntu/.gitkeep View File


+ 11
- 0
tasks.yaml View File

@@ -0,0 +1,11 @@
1
+# This tasks will be applied on controller nodes,
2
+# here you can also specify several roles, for example
3
+# ['cinder', 'compute'] will be applied only on
4
+# cinder and compute nodes
5
+- role: ['controller','compute']
6
+  stage: post_deployment
7
+  type: puppet
8
+  parameters:
9
+    puppet_manifest: puppet/site.pp
10
+    puppet_modules: puppet/modules/
11
+    timeout: 42

Loading…
Cancel
Save