Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruchip16 committed Dec 19, 2024
1 parent ed9c0b0 commit 43be029
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 104 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
based on the configuration.
"""

# from ansible.module_utils.six import iteritems

from ansible_collections.ansible.netcommon.plugins.module_utils.network.common import (
utils,
)
Expand All @@ -28,10 +28,6 @@
flatten_config,
)

# import debugpy
# debugpy.listen(3000)
# debugpy.wait_for_client()


class Vrf_address_familyFacts(object):
""" The ios vrf_address_family facts class
Expand Down Expand Up @@ -63,8 +59,6 @@ def populate_facts(self, connection, ansible_facts, data=None):
if not data:
data = self.get_config(connection)

# export_data = flatten_config(data, "export")
# import_data = flatten_config(export_data, "import")
address_data = flatten_config(data, "address-family")
data = flatten_config(address_data, "vrf")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
- no vrf definition VRF6
- no vrf definition VRF7
- no vrf definition test
- no vrf definition test1
register: result
Original file line number Diff line number Diff line change
Expand Up @@ -16,34 +16,25 @@
next_hop:
loopback: 40
export:
# ipv4:
# multicast:
# map: "single"
# prefix: 345
# unicast:
# allow_evpn: true
# map: "test-map"
# prefix: 67
ipv4:
multicast:
map: "single"
prefix: 345
unicast:
allow_evpn: true
map: "test-map"
prefix: 67
map: "testing-map"
import_config:
# ipv4:
# multicast:
# map: "import-map"
# prefix: 89
# unicast:
# allow_evpn: true
# limit: 12
# map: "ran-map"
ipv4:
multicast:
map: "import-map"
prefix: 89
unicast:
allow_evpn: true
limit: 12
map: "ran-map"
map: "import-map"
# inter_as_hybrid:
# csc:
# next_hop: "1.2.3.4"
# next_hop: "1.0.0.0"
# maximum:
# routes:
# limit: 2
# warning_only: true
state: merged
register: result

- name: Assert that correct set of commands were generated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,33 +18,25 @@
next_hop:
loopback: 56
export:
# ipv4:
# multicast:
# map: "single"
# prefix: 345
# unicast:
# allow_evpn: true
# map: "test-map"
# prefix: 67
ipv4:
multicast:
map: "single"
prefix: 345
unicast:
allow_evpn: true
map: "test-map"
prefix: 67
map: "testing-map"
import_config:
# ipv4:
# multicast:
# map: "import-map"
# prefix: 89
# unicast:
# allow_evpn: true
# limit: 12
# map: "ran-map"
ipv4:
multicast:
map: "import-map"
prefix: 89
unicast:
allow_evpn: true
limit: 12
map: "ran-map"
map: "import-map"
# inter_as_hybrid:
# csc:
# next_hop: "1.2.3.4"
# next_hop: "1.0.0.0"
# maximum:
# routes:
# limit: 2
# warning_only: true
state: overridden
register: result

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,33 +15,25 @@
next_hop:
loopback: 40
export:
# ipv4:
# multicast:
# map: "single"
# prefix: 345
# unicast:
# allow_evpn: true
# map: "test-map"
# prefix: 67
ipv4:
multicast:
map: "single"
prefix: 345
unicast:
allow_evpn: true
map: "test-map"
prefix: 67
map: "testing-map"
import_config:
# ipv4:
# multicast:
# map: "import-map"
# prefix: 89
# unicast:
# allow_evpn: true
# limit: 12
# map: "ran-map"
ipv4:
multicast:
map: "import-map"
prefix: 89
unicast:
allow_evpn: true
limit: 12
map: "ran-map"
map: "import-map"
# inter_as_hybrid:
# csc:
# next_hop: "1.2.3.4"
# next_hop: "1.0.0.0"
# maximum:
# routes:
# limit: 2
# warning_only: true
state: rendered
register: result

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,33 +18,25 @@
next_hop:
loopback: 40
export:
# ipv4:
# multicast:
# map: "single"
# prefix: 345
# unicast:
# allow_evpn: true
# map: "test-map"
# prefix: 67
ipv4:
multicast:
map: "single"
prefix: 345
unicast:
allow_evpn: true
map: "test-map"
prefix: 67
map: "testing-map"
import_config:
# ipv4:
# multicast:
# map: "import-map"
# prefix: 89
# unicast:
# allow_evpn: true
# limit: 12
# map: "ran-map"
ipv4:
multicast:
map: "import-map"
prefix: 89
unicast:
allow_evpn: true
limit: 12
map: "ran-map"
map: "import-map"
# inter_as_hybrid:
# csc:
# next_hop: "1.2.3.4"
# next_hop: "1.0.0.0"
# maximum:
# routes:
# limit: 2
# warning_only: true
state: replaced
register: result

Expand Down

0 comments on commit 43be029

Please sign in to comment.