From edb5760723de2385275260669252a39ed5bc0e38 Mon Sep 17 00:00:00 2001 From: Trishna Guha Date: Sat, 5 Aug 2017 11:05:38 +0530 Subject: [PATCH] nxos_vpc doc update to handle confirmation prompt (#27796) Signed-off-by: Trishna Guha --- lib/ansible/modules/network/nxos/nxos_vpc.py | 22 ++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/network/nxos/nxos_vpc.py b/lib/ansible/modules/network/nxos/nxos_vpc.py index 71fc5ddb0db..4a77a409b1f 100644 --- a/lib/ansible/modules/network/nxos/nxos_vpc.py +++ b/lib/ansible/modules/network/nxos/nxos_vpc.py @@ -95,8 +95,8 @@ options: ''' EXAMPLES = ''' -# configure a simple asn -- nxos_vpc: +- name: configure a simple asn + nxos_vpc: domain: 100 role_priority: 1000 system_priority: 2000 @@ -104,6 +104,24 @@ EXAMPLES = ''' pkl_src: 10.1.100.20 peer_gw: true auto_recovery: true + +# peer-gateway might ask for confirmation to apply changes +# Device should be configured with terminal dont-ask that makes +# the device take default answer on confirmation prompt + +- name: Make device take default answer + nxos_command: + commands: terminal dont-ask + +- name: configure + nxos_vpc: + domain: 100 + role_priority: 32667 + system_priority: 2000 + peer_gw: true + pkl_src: 10.1.100.2 + pkl_dest: 192.168.100.4 + auto_recovery: true ''' RETURN = '''