-
Notifications
You must be signed in to change notification settings - Fork 3
Network interfaces role #1
Comments
@privateip is the model you have there the existing model? or the proposed new model? |
@caphrim007 I lifted this almost verbatim off `net_interface'. I re-arranged a couple of things such as organizing config and state into separate keys. |
@privateip ok thanks! |
Instead of
|
@ganeshrn overall i like the idea... not sure i understand the difference between |
@privateip In case of Example:
|
Ok, updated the mode to reflect the following changes:
|
How might vendor specific extensions be added to the role? There was some talk/demo of this at contributor summit, but is that decided for all network roles that are proposed? For example, F5 interfaces support settings that are not general across the breadth of network vendors. |
more changes to the overall data model to pass into the role. This shows how the model could be extended with platform specific key/value pairs. It also properly positions Here is an example playbook:
|
@caphrim007 would be interested to get your take on the |
@privateip +1 as I understood from contributor summit, the +2 if we adopt the pattern for all network roles going forward. I'm mostly impartial to the method. Much more concerned with the consistency across the portfolio. Thanks! |
@caphrim007 correct |
Interface management will be covered in a series of resource modules. closing this. |
Proposal: network_interfaces role
Author: Peter Sprygada <@privateip>
Date: 2018-10-08
Motivation
The interface manager role provides a platform agnostic implementation to declaratively manage the aggregate set of network interfaces on a remote device. This role is designed to effectively replace the
net_interface
module that is currently part of Ansible core.Problems
The current module is difficult to update and maintain across a wide spectrum of platforms. By moving the functionality into a role, platform specific implementations will be easier.
Solution proposal
Functions
noop by default
Perform all configuration activities
Perform all validation activites
Model
The text was updated successfully, but these errors were encountered: