From 39ec12f3957dec36420dc742214eb5bf721b8bbe Mon Sep 17 00:00:00 2001 From: Jackson Isaac Date: Sat, 7 Jul 2018 01:03:16 +0530 Subject: [PATCH] junos/junos_config.py: Add RVI Example (#41867) --- lib/ansible/modules/network/junos/junos_config.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/ansible/modules/network/junos/junos_config.py b/lib/ansible/modules/network/junos/junos_config.py index 3ef3467b5dd..7d13221a056 100644 --- a/lib/ansible/modules/network/junos/junos_config.py +++ b/lib/ansible/modules/network/junos/junos_config.py @@ -149,6 +149,13 @@ EXAMPLES = """ - set vlans vlan01 description "Test vlan" comment: update config +- name: Set routed VLAN interface (RVI) IPv4 address + junos_config: + lines: + - set vlans vlan01 vlan-id 1 + - set interfaces irb unit 10 family inet address 10.0.0.1/24 + - set vlans vlan01 l3-interface irb.10 + - name: rollback the configuration to id 10 junos_config: rollback: 10