mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 12:21:26 -07:00
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:
parent
6e7cf7377b
commit
21bd7bcbb0
6 changed files with 267 additions and 37 deletions
|
@ -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 = """
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue