junos_interface intent arguments (#27947)

* junos_interface intent arguments

*  Add check for intent argument in junos_interface
*  Integration test for intent arguments

* Minor type fixes

* Add delay only if config diff is present

* add enabled configuration argument

* net_interface test case changes

* Minor doc change
This commit is contained in:
Ganesh Nalawade 2017-08-13 13:18:15 +05:30 committed by GitHub
parent 6e7cf7377b
commit 21bd7bcbb0
6 changed files with 267 additions and 37 deletions

View file

@ -32,7 +32,7 @@ options:
- Description of Interface.
enabled:
description:
- Interface link status.
- Configure interface link status.
speed:
description:
- Interface link speed.
@ -59,8 +59,8 @@ options:
default: no
state:
description:
- State of the Interface configuration, C(up) means present and
operationally up and C(down) means present and operationally C(down)
- State of the Interface configuration, C(up) indicates present and
operationally up and C(down) indicates present and operationally C(down)
default: present
choices: ['present', 'absent', 'up', 'down']
"""
@ -80,13 +80,13 @@ EXAMPLES = """
net_interface:
name: ge-0/0/1
description: test-interface
state: up
enabled: True
- name: make interface down
net_interface:
name: ge-0/0/1
description: test-interface
state: down
enabled: False
"""
RETURN = """