We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8334758 commit db277e8Copy full SHA for db277e8
plugins/modules/dcnm_links.py
@@ -2396,7 +2396,7 @@ def dcnm_links_get_have(self):
2396
have = self.dcnm_links_get_links_info_from_dcnm(link)
2397
if (have != []) and (have not in self.have):
2398
# we do not get information about PEER_CONF, PEER_DESC, MTU from DCNM
2399
- if have["templateName"] == self.templates["int_pre_provision_intra_fabric_link"]:
+ if have.get("templateName") == self.templates["int_pre_provision_intra_fabric_link"]:
2400
have["nvPairs"]["PEER1_CONF"] = have["nvPairs"].get("PEER1_CONF", "")
2401
have["nvPairs"]["PEER2_CONF"] = have["nvPairs"].get("PEER2_CONF", "")
2402
have["nvPairs"]["MTU"] = have["nvPairs"].get("MTU", 1500)
0 commit comments