nxos_evpn_vni check_mode (#46612)

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
(cherry picked from commit d69700b236)
pull/48175/head
Trishna Guha 6 years ago committed by Matt Clay
parent 349bdffd1a
commit b3318f2595

@ -275,8 +275,9 @@ def main():
candidate = CustomNetworkConfig(indent=3) candidate = CustomNetworkConfig(indent=3)
candidate.add(commands, parents=parents) candidate.add(commands, parents=parents)
candidate = candidate.items_text() candidate = candidate.items_text()
load_config(module, candidate) if not module.check_mode:
results['changed'] = True load_config(module, candidate)
results['changed'] = True
results['commands'] = candidate results['commands'] = candidate
else: else:
results['commands'] = [] results['commands'] = []

Loading…
Cancel
Save