From 0dc73e782278bf507a3e40898bda96e6c47c9b20 Mon Sep 17 00:00:00 2001 From: Sean Cavanaugh Date: Tue, 15 May 2018 15:07:23 -0400 Subject: [PATCH] add SVI example for Cisco IOS/IOS-XE platform (#40021) on networktocode slack there was a user that wanted an example of how to add a switch vlan interface. This will work and was tested on a 3850 cisco ios switch --- lib/ansible/modules/network/ios/ios_l3_interface.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/ansible/modules/network/ios/ios_l3_interface.py b/lib/ansible/modules/network/ios/ios_l3_interface.py index e21cc4db04e..59c1e7eaa82 100644 --- a/lib/ansible/modules/network/ios/ios_l3_interface.py +++ b/lib/ansible/modules/network/ios/ios_l3_interface.py @@ -72,6 +72,11 @@ EXAMPLES = """ ipv4: dhcp ipv6: dhcp +- name: Set interface Vlan1 (SVI) IPv4 address + ios_l3_interface: + name: Vlan1 + ipv4: 192.168.0.5/24 + - name: Set IP addresses on aggregate ios_l3_interface: aggregate: