�
�Udac @` s� d d l m Z m Z m Z e Z i d d 6d g d 6d d 6Z d Z d Z d
Z d d l
m Z d d l m
Z
d
� Z e d k r� e � n d S( i ( t absolute_importt divisiont print_functions 1.1t metadata_versiont previewt statust networkt supported_bys�
---
module: skydive_node
version_added: "2.8"
author:
- "Sumit Jaiswal (@sjaiswal)"
short_description: Module which add nodes to Skydive topology
description:
- This module handles adding node to the Skydive topology.
requirements:
- skydive-client
extends_documentation_fragment: skydive
options:
name:
description:
- To define name for the node.
required: true
node_type:
description:
- To define type for the node.
required: true
host:
description:
- To define host for the node.
required: false
seed:
description:
- used to generate the UUID of the node
default: ""
metadata:
description:
- To define metadata for the node.
required: false
state:
description:
- State of the Skydive Node. If value is I(present) new node
will be created else if it is I(absent) it will be deleted.
default: present
choices:
- present
- update
- absent
s�
- name: create tor node
skydive_node:
name: TOR
node_type: fabric
seed: TOR1
metadata:
Model: Cisco 5300
state: present
provider:
endpoint: localhost:8082
username: admin
password: admin
- name: update tor node
skydive_node:
name: TOR
node_type: host
seed: TOR1
metadata:
Model: Cisco 3400
state: update
provider:
endpoint: localhost:8082
username: admin
password: admin
- name: Delete the tor node
skydive_node:
name: TOR
node_type: host
seed: TOR1
metadata:
Model: Cisco 3400
state: absent
provider:
endpoint: localhost:8082
username: admin
password: admin
s # ( t
AnsibleModule( t skydive_nodec C` s t d t d t d t � d t d t d t � d t d t d t d d � d t d t d t d d � d t d t d t d t � � � } t d
t d t � d t d d d
d d d g � � } | j | � | j t j � t d | d t � } t | � } | j � } | j | � d S( s+ Main entry point for module execution
t namet requiredt ib_reqt node_typet hostt defaultt t seedt metadatat providert statet presentt choicest updatet absentt
argument_spect supports_check_modeN( t dictt Truet FalseR R t
provider_specR t runt exit_json( t ib_specR t modulet skydive_objt result( ( sP /usr/lib/python2.7/site-packages/ansible/modules/network/skydive/skydive_node.pyt mainj s !!
t __main__N( t
__future__R R R t typet
__metaclass__t ANSIBLE_METADATAt
DOCUMENTATIONt EXAMPLESt RETURNt ansible.module_utils.basicR t( ansible.module_utils.network.skydive.apiR R% t __name__( ( ( sP /usr/lib/python2.7/site-packages/ansible/modules/network/skydive/skydive_node.pyt <module> s
,)
Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]