networking fix cherry-pick (#35936)
* Add minor conditional checks to nxos_bgp sanity test (#35476) * Add minor conditional checks to nxos_bgp sanity test * Make ansibot happy (cherry picked from commit5a198e1e6a
) * fixing the removed_in_version to 2.6. (#35853) (cherry picked from commit73650cf854
) * fix eos_config second-level indent idempotece (#35588) * fix eos_config second-level indent idempotece Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> * address ganeshrn's comment - update doc Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> (cherry picked from commitb30f3b9f4d
) * update CHANGELOG Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
parent
458968ed00
commit
7c4e343864
4 changed files with 17 additions and 8 deletions
|
@ -42,6 +42,10 @@ Ansible Changes By Release
|
|||
(https://github.com/ansible/ansible/pull/35590)
|
||||
* Include dest i nthe results from file copy:
|
||||
https://github.com/ansible/ansible/pull/35702/
|
||||
* Fix eos_config second-level indent idempotece
|
||||
https://github.com/ansible/ansible/pull/35588
|
||||
* Fix the removed_in_version to 2.6 ios_config force option
|
||||
https://github.com/ansible/ansible/pull/35853
|
||||
|
||||
|
||||
<a id="2.4.3"></a>
|
||||
|
|
|
@ -62,6 +62,8 @@ options:
|
|||
or relative to the root of the implemented role or playbook.
|
||||
This argument is mutually exclusive with the I(lines) and
|
||||
I(parents) arguments. It can be a Jinja2 template as well.
|
||||
src file must have same indentation as a live switch config.
|
||||
Arista EOS device config has 3 spaces indentation.
|
||||
required: false
|
||||
default: null
|
||||
version_added: "2.2"
|
||||
|
@ -278,7 +280,7 @@ from ansible.module_utils.eos import check_args
|
|||
|
||||
|
||||
def get_candidate(module):
|
||||
candidate = NetworkConfig(indent=2)
|
||||
candidate = NetworkConfig(indent=3)
|
||||
if module.params['src']:
|
||||
candidate.load(module.params['src'])
|
||||
elif module.params['lines']:
|
||||
|
@ -297,7 +299,7 @@ def get_running_config(module, config=None):
|
|||
if module.params['defaults']:
|
||||
flags.append('all')
|
||||
contents = get_config(module, flags=flags)
|
||||
return NetworkConfig(indent=2, contents=contents)
|
||||
return NetworkConfig(indent=3, contents=contents)
|
||||
|
||||
|
||||
def main():
|
||||
|
@ -360,7 +362,7 @@ def main():
|
|||
|
||||
if module.params['backup'] or (module._diff and module.params['diff_against'] == 'running'):
|
||||
contents = get_config(module)
|
||||
config = NetworkConfig(indent=2, contents=contents)
|
||||
config = NetworkConfig(indent=3, contents=contents)
|
||||
if module.params['backup']:
|
||||
result['__backup__'] = contents
|
||||
|
||||
|
|
|
@ -122,7 +122,7 @@ options:
|
|||
without first checking if already configured.
|
||||
- Note this argument should be considered deprecated. To achieve
|
||||
the equivalent, set the C(match=none) which is idempotent. This argument
|
||||
will be removed in Ansible 2.7.
|
||||
will be removed in Ansible 2.6.
|
||||
required: false
|
||||
default: false
|
||||
type: bool
|
||||
|
@ -410,7 +410,7 @@ def main():
|
|||
save=dict(default=False, type='bool', removed_in_version='2.8'),
|
||||
|
||||
# force argument deprecated in ans2.2
|
||||
force=dict(default=False, type='bool', removed_in_version='2.7')
|
||||
force=dict(default=False, type='bool', removed_in_version='2.6')
|
||||
)
|
||||
|
||||
argument_spec.update(ios_argument_spec)
|
||||
|
|
|
@ -2,10 +2,13 @@
|
|||
- debug: msg="START TRANSPORT:{{ connection.transport }} nxos_bgp sanity test"
|
||||
|
||||
- set_fact: neighbor_down_fib_accelerate="true"
|
||||
when: not titanium
|
||||
when: (not titanium) and ((imagetag != 'N1') and (imagetag != 'D1'))
|
||||
|
||||
- set_fact: reconnect_interval="55"
|
||||
when: not titanium
|
||||
when: (not titanium) and ((imagetag != 'N1') and (imagetag != 'D1'))
|
||||
|
||||
- set_fact: isolate="false"
|
||||
when: platform is not match("N35")
|
||||
|
||||
- name: "Enable feature BGP"
|
||||
nxos_feature:
|
||||
|
@ -75,7 +78,7 @@
|
|||
graceful_restart_helper: true
|
||||
graceful_restart_timers_restart: 130
|
||||
graceful_restart_timers_stalepath_time: 310
|
||||
isolate: false
|
||||
isolate: "{{isolate|default(omit)}}"
|
||||
log_neighbor_changes: true
|
||||
maxas_limit: 50
|
||||
neighbor_down_fib_accelerate: "{{neighbor_down_fib_accelerate|default(omit)}}"
|
||||
|
|
Loading…
Reference in a new issue