Skip to content

Commit 1ee3763

Browse files
authored
Add L3VNI w/o VLAN option support for dcnm_vrf module, issue #337 (#435)
Co-authored-by: = <=>
1 parent 321b6da commit 1ee3763

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

plugins/modules/dcnm_vrf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,6 +1455,7 @@ def update_create_params(self, vrf, vlan_id=""):
14551455
"maxBgpPaths": vrf.get("max_bgp_paths", ""),
14561456
"maxIbgpPaths": vrf.get("max_ibgp_paths", ""),
14571457
"ipv6LinkLocalFlag": vrf.get("ipv6_linklocal_enable", True),
1458+
"enableL3VniNoVlan": vrf.get("l3vni_wo_vlan", False),
14581459
"trmEnabled": vrf.get("trm_enable", False),
14591460
"isRPExternal": vrf.get("rp_external", False),
14601461
"rpAddress": vrf.get("rp_address", ""),
@@ -1590,6 +1591,7 @@ def get_have(self):
15901591
"maxBgpPaths": json_to_dict.get("maxBgpPaths", 1),
15911592
"maxIbgpPaths": json_to_dict.get("maxIbgpPaths", 2),
15921593
"ipv6LinkLocalFlag": json_to_dict.get("ipv6LinkLocalFlag", True),
1594+
"enableL3VniNoVlan": json_to_dict.get("enableL3VniNoVlan", False),
15931595
"trmEnabled": json_to_dict.get("trmEnabled", False),
15941596
"isRPExternal": json_to_dict.get("isRPExternal", False),
15951597
"rpAddress": json_to_dict.get("rpAddress", ""),
@@ -2197,6 +2199,7 @@ def diff_merge_create(self, replace=False):
21972199
"maxBgpPaths": json_to_dict.get("maxBgpPaths"),
21982200
"maxIbgpPaths": json_to_dict.get("maxIbgpPaths"),
21992201
"ipv6LinkLocalFlag": json_to_dict.get("ipv6LinkLocalFlag"),
2202+
"enableL3VniNoVlan": json_to_dict.get("enableL3VniNoVlan"),
22002203
"trmEnabled": json_to_dict.get("trmEnabled"),
22012204
"isRPExternal": json_to_dict.get("isRPExternal"),
22022205
"rpAddress": json_to_dict.get("rpAddress"),
@@ -2487,6 +2490,7 @@ def format_diff(self):
24872490
found_c.update(
24882491
{"ipv6_linklocal_enable": json_to_dict.get("ipv6LinkLocalFlag", True)}
24892492
)
2493+
found_c.update({"l3vni_wo_vlan": json_to_dict.get("enableL3VniNoVlan", False)})
24902494
found_c.update({"trm_enable": json_to_dict.get("trmEnabled", False)})
24912495
found_c.update({"rp_external": json_to_dict.get("isRPExternal", False)})
24922496
found_c.update({"rp_address": json_to_dict.get("rpAddress", "")})
@@ -2964,6 +2968,7 @@ def push_diff_create(self, is_rollback=False):
29642968
"maxBgpPaths": json_to_dict.get("maxBgpPaths"),
29652969
"maxIbgpPaths": json_to_dict.get("maxIbgpPaths"),
29662970
"ipv6LinkLocalFlag": json_to_dict.get("ipv6LinkLocalFlag"),
2971+
"enableL3VniNoVlan": json_to_dict.get("enableL3VniNoVlan"),
29672972
"trmEnabled": json_to_dict.get("trmEnabled"),
29682973
"isRPExternal": json_to_dict.get("isRPExternal"),
29692974
"rpAddress": json_to_dict.get("rpAddress"),
@@ -3902,6 +3907,7 @@ def vrf_spec(self):
39023907

39033908
spec["ipv6_linklocal_enable"] = {"default": True, "type": "bool"}
39043909

3910+
spec["l3vni_wo_vlan"] = {"default": False, "type": "bool"}
39053911
spec["loopback_route_tag"] = {
39063912
"default": 12345,
39073913
"range_max": 4294967295,

0 commit comments

Comments
 (0)