Browse Source

adding dellos10 support to the abstraction role

Change-Id: I9122e8481fddbf0ff81bac0baacf74af920c6c3c
Dan Radez 3 months ago
parent
commit
7a452237f3

+ 13
- 13
README.rst View File

@@ -46,19 +46,19 @@ invocation in python independant of a running OpenStack deployment.
46 46
 API Features
47 47
 ------------
48 48
 The following matrix indicates which features have been implmented.
49
-+--------------------+-------------+-------+------+-----+---------+
50
-|                    | openvswitch | junos | nxos | eos | cumulus |
51
-+--------------------+-------------+-------+------+-----+---------+
52
-| Create VLAN        |     N/A     |   Y   |  Y   |  Y  |    Y    |
53
-+--------------------+-------------+-------+------+-----+---------+
54
-| Delete VLAN        |     N/A     |   Y   |  Y   |  Y  |    Y    |
55
-+--------------------+-------------+-------+------+-----+---------+
56
-| Delete Port        |      Y      |   Y   |  Y   |  Y  |    Y    |
57
-+--------------------+-------------+-------+------+-----+---------+
58
-| Config Access Port |      Y      |   Y   |  Y   |  Y  |    Y    |
59
-+--------------------+-------------+-------+------+-----+---------+
60
-| Config Trunk Port  |      N      |   Y   |  N   |  N  |    N    |
61
-+--------------------+-------------+-------+------+-----+---------+
49
++--------------------+-------------+-------+------+-----+---------+----------+
50
+|                    | openvswitch | junos | nxos | eos | cumulus | dellos10 |
51
++--------------------+-------------+-------+------+-----+---------+----------+
52
+| Create VLAN        |     N/A     |   Y   |  Y   |  Y  |    Y    |    Y     |
53
++--------------------+-------------+-------+------+-----+---------+----------+
54
+| Delete VLAN        |     N/A     |   Y   |  Y   |  Y  |    Y    |    Y     |
55
++--------------------+-------------+-------+------+-----+---------+----------+
56
+| Delete Port        |      Y      |   Y   |  Y   |  Y  |    Y    |    Y     |
57
++--------------------+-------------+-------+------+-----+---------+----------+
58
+| Config Access Port |      Y      |   Y   |  Y   |  Y  |    Y    |    Y     |
59
++--------------------+-------------+-------+------+-----+---------+----------+
60
+| Config Trunk Port  |      N      |   Y   |  N   |  N  |    N    |    N     |
61
++--------------------+-------------+-------+------+-----+---------+----------+
62 62
 
63 63
 ML2 Implimentation Mapping
64 64
 --------------------------

+ 3
- 0
etc/ansible/roles/openstack-ml2/providers/dellos10/conf_trunk_port.yaml View File

@@ -0,0 +1,3 @@
1
+---
2
+- fail:
3
+    msg: Trunk port configuration is not implimented for dellos10

+ 9
- 0
etc/ansible/roles/openstack-ml2/providers/dellos10/create_vlan.yaml View File

@@ -0,0 +1,9 @@
1
+---
2
+- name: "dellos10: run create vlan using network_cli"
3
+  dellos10_config:
4
+    lines:
5
+      - "description {{ _vlan_name }}"
6
+    parents:
7
+      - "interface vlan {{ _vlan_id }}"
8
+  connection: network_cli
9
+

+ 3
- 0
etc/ansible/roles/openstack-ml2/providers/dellos10/defaults.yaml View File

@@ -0,0 +1,3 @@
1
+---
2
+_vlan_id: "{{ vlan_id | default(1, True)}}"
3
+_vlan_name: '{{ vlan_name if vlan_name else "default" if vlan_id|string == "1" else "vlan"+vlan_id|string }}'

+ 9
- 0
etc/ansible/roles/openstack-ml2/providers/dellos10/delete_port.yaml View File

@@ -0,0 +1,9 @@
1
+---
2
+- name: "dellos10: remove port configuration"
3
+  dellos10_config:
4
+    lines: "default interface {{ port_name }}"
5
+
6
+- name: "dellos10: administratively disable the port"
7
+  dellos10_config:
8
+    lines: "shutdown"
9
+    parents: ["interface {{ port_name }}"]

+ 6
- 0
etc/ansible/roles/openstack-ml2/providers/dellos10/delete_vlan.yaml View File

@@ -0,0 +1,6 @@
1
+---
2
+- name: "dellos10: run delete vlan using network_cli"
3
+  dellos10_config:
4
+    lines: "no interface vlan {{ _vlan_id }}"
5
+  connection: network_cli
6
+

+ 17
- 0
etc/ansible/roles/openstack-ml2/providers/dellos10/update_access_port.yaml View File

@@ -0,0 +1,17 @@
1
+---
2
+- name: "dellos10: set the switchport mode to access"
3
+  dellos10_config:
4
+    lines: "switchport mode access"
5
+    parents: ["interface {{ port_name }}"]
6
+
7
+- name: "dellos10: configure port settings"
8
+  dellos10_config:
9
+    lines:
10
+      - "description {{ port_description }}"
11
+      - "switchport access vlan {{ _vlan_id }}"
12
+    parents: ["interface {{ port_name }}"]
13
+
14
+- name: "dellos10: administratively enable the port"
15
+  dellos10_config:
16
+    lines: "no shutdown"
17
+    parents: ["interface {{ port_name }}"]

Loading…
Cancel
Save