-
Notifications
You must be signed in to change notification settings - Fork 46
Resolving dcnm vpc pair keyError with ipAddress #460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
mikewiebe
merged 4 commits into
CiscoDevNet:develop
from
sivakasi-cisco:keyError_fix_for_dcnm_vpc_pair
Jul 15, 2025
Merged
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
c7b1e47
Resolving dcnm vpc pair keyError with ipAddress
sivakasi-cisco 2d73465
Integration test changes for dcnm vpc_pair
sivakasi-cisco aa35c0b
Correcting IT changes and resolving useVirtualPeerLink unanimous valuing
sivakasi-cisco b6480c4
Changes from PR comments
sivakasi-cisco File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
all: | ||
vars: | ||
ansible_user: "admin" | ||
ansible_password: "password-secret" | ||
ansible_python_interpreter: python | ||
ansible_httpapi_validate_certs: False | ||
ansible_httpapi_use_ssl: True | ||
children: | ||
dcnm: | ||
vars: | ||
ansible_it_fabric: fabric-stage | ||
ansible_connection: ansible.netcommon.httpapi | ||
ansible_network_os: cisco.dcnm.dcnm | ||
ansible_httpapi_validate_certs: no | ||
hosts: | ||
nac-ndfc1: | ||
ansible_host: 10.10.5.1 | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
--- | ||
# This playbook can be used to execute integration tests for | ||
# the role located in: | ||
# | ||
# tests/integration/targets/dcnm_image_policy | ||
# | ||
# Modify the hosts and vars sections with details for your testing | ||
# setup and uncomment the testcase you want to run. | ||
# | ||
- hosts: dcnm | ||
gather_facts: no | ||
connection: ansible.netcommon.httpapi | ||
|
||
vars: | ||
switch_username: admin | ||
switch_password: "password-secret" | ||
ansible_it_fabric: fabric-stage | ||
ansible_switch1: 192.168.1.1 | ||
ansible_switch2: 192.168.1.2 | ||
ansible_peer1_ip: 192.168.1.1 | ||
ansible_peer2_ip: 192.168.1.2 | ||
ansible_vxlan_vpc_domain_id: 1000 | ||
|
||
config: | ||
- peerOneId: "{{ ansible_switch1 }}" | ||
peerTwoId: "{{ ansible_switch2 }}" | ||
templateName: "vpc_pair" # Using the correct template name | ||
profile: | ||
# Required fields for VPC template | ||
ADMIN_STATE: true | ||
ALLOWED_VLANS: "all" | ||
DOMAIN_ID: "{{ ansible_vxlan_vpc_domain_id }}" | ||
FABRIC_NAME: "{{ ansible_it_fabric }}" | ||
KEEP_ALIVE_HOLD_TIMEOUT: 3 | ||
KEEP_ALIVE_VRF: "management" | ||
PC_MODE: "active" | ||
PEER1_KEEP_ALIVE_LOCAL_IP: "{{ ansible_peer1_ip }}" | ||
PEER1_MEMBER_INTERFACES: "eth1/1" | ||
PEER1_PCID: 1 | ||
PEER2_KEEP_ALIVE_LOCAL_IP: "{{ ansible_peer2_ip }}" | ||
PEER2_MEMBER_INTERFACES: "eth1/1" | ||
PEER2_PCID: 2 | ||
|
||
# Additional required fields | ||
peer1Ip: "{{ ansible_peer1_ip }}" | ||
peer2Ip: "{{ ansible_peer2_ip }}" | ||
vpcDomainId: "{{ ansible_vxlan_vpc_domain_id }}" | ||
adminState: true | ||
keepAliveVrf: "management" | ||
keepAliveHoldTimeout: 3 | ||
keepAliveLocalIp: "{{ ansible_peer1_ip }}" | ||
keepAliveRemoteIp: "{{ ansible_peer2_ip }}" | ||
|
||
# Template specific fields | ||
templateName: "vpc_pair" | ||
templatePropId: "" | ||
templatePropName: "vpc_pair" | ||
templatePropDescription: "VPC Template" | ||
templatePropDataType: "JSON" | ||
templatePropDefaultValue: "" | ||
templatePropDisplayName: "VPC Configuration" | ||
templatePropIsMandatory: true | ||
templatePropIsMultiSelect: false | ||
templatePropIsPassword: false | ||
templatePropIsReadOnly: false | ||
templatePropIsRequired: true | ||
templatePropIsSecure: false | ||
templatePropIsSortable: false | ||
templatePropIsVisible: true | ||
templatePropOptions: [] | ||
templatePropRange: [] | ||
templatePropValue: "" | ||
templatePropValueType: "STRING" | ||
templateIPAddress: "{{ ansible_peer1_ip }}" | ||
|
||
|
||
roles: | ||
- dcnm_vpc_pair |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.