??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
ó àUdac@sôidd6dgd6dd6ZdZdZdZd d lZd d lZd d lmZd d lm Z d d l m Z d dl m Z mZd dl mZmZd„Zd„Zd„Zd„Zd„Zd„Zedkrðeƒnd S(s1.1tmetadata_versiontpreviewtstatustnetworkt supported_bys1 --- module: eos_vrf version_added: "2.4" author: "Ricardo Carrillo Cruz (@rcarrillocruz)" short_description: Manage VRFs on Arista EOS network devices description: - This module provides declarative management of VRFs on Arista EOS network devices. notes: - Tested against EOS 4.15 options: name: description: - Name of the VRF. required: true rd: description: - Route distinguisher of the VRF interfaces: description: - Identifies the set of interfaces that should be configured in the VRF. Interfaces must be routed interfaces in order to be placed into a VRF. The name of interface should be in expanded format and not abbreviated. associated_interfaces: description: - This is a intent option and checks the operational state of the for given vrf C(name) for associated interfaces. If the value in the C(associated_interfaces) does not match with the operational state of vrf interfaces on device it will result in failure. version_added: "2.5" aggregate: description: List of VRFs definitions purge: description: - Purge VRFs not defined in the I(aggregate) parameter. default: no type: bool delay: description: - Time in seconds to wait before checking for the operational state on remote device. This wait is applicable for operational state arguments. default: 10 state: description: - State of the VRF configuration. default: present choices: ['present', 'absent'] extends_documentation_fragment: eos s - name: Create vrf eos_vrf: name: test rd: 1:200 interfaces: - Ethernet2 state: present - name: Delete VRFs eos_vrf: name: test state: absent - name: Create aggregate of VRFs with purge eos_vrf: aggregate: - { name: test4, rd: "1:204" } - { name: test5, rd: "1:205" } state: present purge: yes - name: Delete aggregate of VRFs eos_vrf: aggregate: - name: test2 - name: test3 - name: test4 - name: test5 state: absent sß commands: description: The list of configuration mode commands to send to the device returned: always type: list sample: - vrf definition test - rd 1:100 - interface Ethernet1 - vrf forwarding test iÿÿÿÿN(tdeepcopy(t AnsibleModule(tremove_default_spec(t load_configt run_commands(teos_argument_spect check_argscCs)x"|D]}|d|kr|SqWdS(Ntname((R tlstto((sG/usr/lib/python2.7/site-packages/ansible/modules/network/eos/eos_vrf.pytsearch_obj_in_list„s cCsŠtƒ}|\}}|jd}|jd}x |D]}|d}|d} t||ƒ} |dkrˆ| r7|jd|ƒq7q6|dkr6| s|jd|ƒ| dk rË|jd | ƒn|d r4x;|d D],} |jd | ƒ|jd |dƒqàWq4q7|ddk rg|d| dkrg|jd|dƒ|jd |dƒn|d r7| d s¹x³|d D],} |jd | ƒ|jd |dƒq†Wq4t|d ƒ| d kr4tt|d ƒt| d ƒƒ} x7| D],} |jd | ƒ|jd |dƒqþWq4q7q6q6W|r†xB|D]7} t| d|ƒ}|sH|jd| dƒqHqHWn|S( NtstatetpurgeR trdtabsentsno vrf definition %stpresentsvrf definition %ssrd %st interfacess interface %ssvrf forwarding %s(tlisttparamsRtappendtNonetset(tupdatestmoduletcommandstwantthaveRRtwR Rt obj_in_havetitmissing_interfacestht obj_in_want((sG/usr/lib/python2.7/site-packages/ansible/modules/network/eos/eos_vrf.pytmap_obj_to_commandsŠsN           $  $ & c CsÎg}t|idd6dd6ƒ}|djƒjƒd}t|ƒ}d}xx||krÉ||}|stqRntjd|jƒƒ}t|ƒdkr®|d7}qRntƒ}|d|d <|d|d s(   4      4 -   ;