12 Commits

Author SHA1 Message Date
Zuul
aff618d0cb Merge "Add support for Mellanox switches running MLNX-OS" 2018-08-02 17:03:11 +00:00
Mark Goddard
c175b078e5 Fix handling of switch_type variable in Ansible 2.5
In Ansible, playbook group variables take precedence over inventory
group variables. Typically in a kayobe-config we might specify the
switch_type variable for a group containing switches using inventory
group_vars. This seemed to work in Ansible 2.3, but since Ansible 2.4
the default value of None in kayobe's playbook group_vars takes
precedence. This behaviour is as documented, not sure why it worked
previously.

This change removes the default value of None set in the playbook
group_vars.

Change-Id: I042ad8d115cdc0dd57a116e1be9d397ef4d216ae
Story: 2002903
Task: 22870
2018-07-09 15:30:44 +01:00
Mark Goddard
abded1e472 Add support for Mellanox switches running MLNX-OS
Mellanox switches running MLNX-OS cannot be managed using the Ansible onyx*
modules, as the OS is too old. This change uses the stackhpc.mellanox-switch
Ansible role to configure these devices using the Ansible expect module.

Change-Id: I86f654c95be05e3a82d6015e4c89093127553408
Story: 2002687
Task: 22512
2018-06-25 16:25:38 +01:00
Mark Goddard
920d9e0eee Add Dell PowerConnect switch support
PowerConnect switches do not support the dellos Ansible modules, since
they are based on DellOS version 4. This role uses the expect module to
perform simple switch configuration.

Change-Id: Icb59aaff75f9faf089423610fecb06598f75e35e
Story: 2002106
Task: 19784
2018-06-22 15:12:29 +01:00
Mark Goddard
c7bcdf2cf9 Remove default filter from junos switch timeout
In ansible 2.3, the default filter appears to make the timeout be interpreted as a
string rather than a number, which causes the netconf client ncclient to barf.
As we always define a timeout, this default seems unnecessary anyway so let's
remove it.
2017-10-11 16:34:50 +00:00
Mark Goddard
9b694aadff Fix typo in junos switch provider for SSH private key file
This prevented a user from using their own username and SSH key to
configure a switch.
2017-08-10 10:35:05 +00:00
Mark Goddard
da82044a84 Updates to juniper switch configuration
Role renamed to junos-switch. Python dependencies are installed. Support for
multiple configuration types, including 'set', 'text', and 'json'.
2017-08-09 11:35:49 +00:00
Mark Goddard
b9e1243d7d Add support for configuration of Juniper switches
Support for Juniper switches is added via the Ansible junos_* modules.
This affects the following command:

kayobe physical network configure
2017-08-07 12:08:41 +00:00
Mark Goddard
65ed0da197 Separate physical configuration for discovery
After discovery Neutron needs to own the control of ports for the baremetal compute
nodes. We separate the interface configuration and add an --enable-discovery flag
to kayobe physical network configure
2017-04-03 12:10:47 +01:00
Mark Goddard
17ce724fa4 Move Dell switch configuration to a dell-switch role
This encapsulates the differences between switch OS modules. Also add support
for global switch configuration.
2017-03-24 15:11:32 +00:00
Mark Goddard
3ca08afd93 Add kayobe CLI command to configure the physical network
Currently this can configure interfaces on DellOS6 switches only but can be
extended to support other makes and models.
2017-03-16 11:02:53 +00:00
Mark Goddard
08d34db3d1 Add initial work on network configuration for management network
Currently supports configuration of network interfaces
2017-03-15 10:19:41 +00:00