mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Devel ios vrf submode (#41659)
* add submode features ipv4/ipv6 * add tests for submode * the parameters both_ * were not idempotent, in what is read in the configuration we have a list with 2 entries (import, export) while the input parameter has only one parameter which will be applied twice * add docstring to the ios_vrf module + provide a fix for: https://github.com/ansible/ansible/issues/41581 * complete tests * add missing description * fix KeyError for address-family ipv* * fix both_* tests * fix E231, W292, W293 * fix W293 * remove set has it doesn't preserve order of routes * fix E106 * remove ImportError: cannot import name OrderedDict * We should be able to mix the parameters for the routes targets , while remaining imdepotent. During the first implementation we did not take this into account, which did not correspond to the reality of the needs in production (to be able to use each parameter indifemently together) * remove epdb reference * FIX E111, E106 * FIX E302 * using loop produce a result who was not imdepotent * FIX E241 * fix: used pass intead of list
This commit is contained in:
committed by
Ganesh Nalawade
parent
2038ff5569
commit
7c97bb5077
@@ -8,6 +8,70 @@ vrf definition test_2
|
||||
!
|
||||
vrf definition test_3
|
||||
!
|
||||
vrf definition test_17
|
||||
rd 2:100
|
||||
!
|
||||
address-family ipv4
|
||||
exit-address-family
|
||||
!
|
||||
address-family ipv6
|
||||
route-target export 168.0.0.15:100
|
||||
route-target export 4:100
|
||||
route-target export 2:100
|
||||
route-target export 168.0.0.13:100
|
||||
route-target import 168.0.0.14:100
|
||||
route-target import 2:100
|
||||
route-target import 168.0.0.13:100
|
||||
exit-address-family
|
||||
!
|
||||
vrf definition test_18
|
||||
rd 168.0.0.9:100
|
||||
!
|
||||
address-family ipv4
|
||||
route-target export 168.0.0.10:100
|
||||
route-target export 168.0.0.9:100
|
||||
route-target export 3:100
|
||||
route-target import 168.0.0.9:100
|
||||
route-target import 3:100
|
||||
route-target import 168.0.0.10:600
|
||||
exit-address-family
|
||||
!
|
||||
address-family ipv6
|
||||
exit-address-family
|
||||
!
|
||||
vrf definition test_19
|
||||
rd 10:700
|
||||
route-target export 2:102
|
||||
route-target export 2:103
|
||||
route-target export 2:100
|
||||
route-target export 2:101
|
||||
route-target import 2:104
|
||||
route-target import 2:105
|
||||
route-target import 2:100
|
||||
route-target import 2:101
|
||||
!
|
||||
address-family ipv4
|
||||
route-target export 2:102
|
||||
route-target export 2:103
|
||||
route-target export 2:100
|
||||
route-target export 2:101
|
||||
route-target import 2:104
|
||||
route-target import 2:105
|
||||
route-target import 2:100
|
||||
route-target import 2:101
|
||||
exit-address-family
|
||||
!
|
||||
address-family ipv6
|
||||
route-target export 2:102
|
||||
route-target export 2:103
|
||||
route-target export 2:100
|
||||
route-target export 2:101
|
||||
route-target import 2:104
|
||||
route-target import 2:105
|
||||
route-target import 2:100
|
||||
route-target import 2:101
|
||||
exit-address-family
|
||||
!
|
||||
interface Ethernet1
|
||||
ip address 1.2.3.4/5
|
||||
!
|
||||
|
||||
Reference in New Issue
Block a user