Add intent arguments for ios and iosxr interface modules (#28018)

* Add intent arguments for ios_interface

*  Intent argument support
*  Integration test case for intent arguments

* Fix ci issue

* Add intent arguments for iosxr_interface

*  Add intent check support for iosxr_interface
*  Integration test for intent + configuration

* Fix ci failure
This commit is contained in:
Ganesh Nalawade 2017-08-15 19:20:28 +05:30 committed by GitHub
parent 38c0b581c3
commit a12e9807ba
11 changed files with 577 additions and 87 deletions

View file

@ -46,10 +46,15 @@ options:
choices: ['full', 'half', 'auto']
tx_rate:
description:
- Transmit rate
- Transmit rate.
rx_rate:
description:
- Receiver rate
- Receiver rate.
delay:
description:
- Time in seconds to wait before checking for the operational state on remote
device. This wait is applicable for operational state argument which are
I(state) with values C(up)/C(down), I(tx_rate) and I(rx_rate).
aggregate:
description: List of Interfaces definitions.
purge:
@ -105,6 +110,19 @@ EXAMPLES = """
- name: ge-0/0/1
- name: ge-0/0/2
state: absent
- name: Check intent arguments
net_interface:
name: fxp0
state: up
tx_rate: ge(0)
rx_rate: le(0)
- name: Config + intent
net_interface:
name: fxp0
enabled: False
state: down
"""
RETURN = """