Skip to content

Commit 23ee8a6

Browse files
committed
add support for IPv6 redistribute route-map
1 parent cfbb0d8 commit 23ee8a6

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

docs/cisco.dcnm.dcnm_vrf_module.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -870,6 +870,23 @@ Parameters
870870
<div>Can be configured only when TRM is enabled</div>
871871
</td>
872872
</tr>
873+
<tr>
874+
<td class="elbow-placeholder"></td>
875+
<td colspan="4">
876+
<div class="ansibleOptionAnchor" id="parameter-"></div>
877+
<b>v6_redist_direct_rmap</b>
878+
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
879+
<div style="font-size: small">
880+
<span style="color: purple">string</span>
881+
</div>
882+
</td>
883+
<td>
884+
<b>Default:</b><br/><div style="color: blue">"FABRIC-RMAP-REDIST-SUBNET"</div>
885+
</td>
886+
<td>
887+
<div>IPv6 Redistribute Direct Route Map</div>
888+
</td>
889+
</tr>
873890
<tr>
874891
<td class="elbow-placeholder"></td>
875892
<td colspan="4">

plugins/modules/dcnm_vrf.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,12 @@
116116
type: str
117117
required: false
118118
default: 'FABRIC-RMAP-REDIST-SUBNET'
119+
v6_redist_direct_rmap:
120+
description:
121+
- IPv6 Redistribute Direct Route Map
122+
type: str
123+
required: false
124+
default: 'FABRIC-RMAP-REDIST-SUBNET'
119125
max_bgp_paths:
120126
description:
121127
- Max BGP Paths
@@ -1460,6 +1466,7 @@ def update_create_params(self, vrf, vlan_id=""):
14601466
"mtu": vrf.get("vrf_int_mtu", ""),
14611467
"tag": vrf.get("loopback_route_tag", ""),
14621468
"vrfRouteMap": vrf.get("redist_direct_rmap", ""),
1469+
"v6VrfRouteMap": vrf.get("v6_redist_direct_rmap", ""),
14631470
"maxBgpPaths": vrf.get("max_bgp_paths", ""),
14641471
"maxIbgpPaths": vrf.get("max_ibgp_paths", ""),
14651472
"ipv6LinkLocalFlag": vrf.get("ipv6_linklocal_enable", True),
@@ -1596,6 +1603,7 @@ def get_have(self):
15961603
"mtu": json_to_dict.get("mtu", 9216),
15971604
"tag": json_to_dict.get("tag", 12345),
15981605
"vrfRouteMap": json_to_dict.get("vrfRouteMap", ""),
1606+
"v6VrfRouteMap": json_to_dict.get("v6VrfRouteMap", ""),
15991607
"maxBgpPaths": json_to_dict.get("maxBgpPaths", 1),
16001608
"maxIbgpPaths": json_to_dict.get("maxIbgpPaths", 2),
16011609
"ipv6LinkLocalFlag": json_to_dict.get("ipv6LinkLocalFlag", True),
@@ -2204,6 +2212,7 @@ def diff_merge_create(self, replace=False):
22042212
"mtu": json_to_dict.get("mtu"),
22052213
"tag": json_to_dict.get("tag"),
22062214
"vrfRouteMap": json_to_dict.get("vrfRouteMap"),
2215+
"v6VrfRouteMap": json_to_dict.get("v6VrfRouteMap"),
22072216
"maxBgpPaths": json_to_dict.get("maxBgpPaths"),
22082217
"maxIbgpPaths": json_to_dict.get("maxIbgpPaths"),
22092218
"ipv6LinkLocalFlag": json_to_dict.get("ipv6LinkLocalFlag"),
@@ -2493,6 +2502,7 @@ def format_diff(self):
24932502
found_c.update({"vrf_int_mtu": json_to_dict.get("mtu", "")})
24942503
found_c.update({"loopback_route_tag": json_to_dict.get("tag", "")})
24952504
found_c.update({"redist_direct_rmap": json_to_dict.get("vrfRouteMap", "")})
2505+
found_c.update({"v6_redist_direct_rmap": json_to_dict.get("v6VrfRouteMap", "")})
24962506
found_c.update({"max_bgp_paths": json_to_dict.get("maxBgpPaths", "")})
24972507
found_c.update({"max_ibgp_paths": json_to_dict.get("maxIbgpPaths", "")})
24982508
found_c.update(
@@ -2973,6 +2983,7 @@ def push_diff_create(self, is_rollback=False):
29732983
"mtu": json_to_dict.get("mtu"),
29742984
"tag": json_to_dict.get("tag"),
29752985
"vrfRouteMap": json_to_dict.get("vrfRouteMap"),
2986+
"v6VrfRouteMap": json_to_dict.get("v6VrfRouteMap"),
29762987
"maxBgpPaths": json_to_dict.get("maxBgpPaths"),
29772988
"maxIbgpPaths": json_to_dict.get("maxIbgpPaths"),
29782989
"ipv6LinkLocalFlag": json_to_dict.get("ipv6LinkLocalFlag"),
@@ -3959,6 +3970,10 @@ def vrf_spec(self):
39593970
"default": "FABRIC-RMAP-REDIST-SUBNET",
39603971
"type": "str",
39613972
}
3973+
spec["v6_redist_direct_rmap"] = {
3974+
"default": "FABRIC-RMAP-REDIST-SUBNET",
3975+
"type": "str",
3976+
}
39623977
spec["rp_address"] = {"default": "", "type": "str"}
39633978
spec["rp_external"] = {"default": False, "type": "bool"}
39643979
spec["rp_loopback_id"] = {"default": "", "range_max": 1023, "type": "int"}

0 commit comments

Comments
 (0)