Handling the Removal of the 'ip' Key in the 'fvCEp' Object for ACI 5.1#374
Handling the Removal of the 'ip' Key in the 'fvCEp' Object for ACI 5.1#374timway wants to merge 1 commit intodatacenter:masterfrom timway:fvIp
Conversation
Addresses the Dec 15, 2020 remark in https://www.cisco.com/c/en/us/td/docs/dcn/aci/apic/5x/release-notes/cisco-apic-release-notes-511.html * In ACI 5.1 the fvCEp object no longer contains a key for IP * The replacement code tries the original assignment and if that fails grabs the first fvIp object and uses that 'addr' * Because a fvCEp object can contain multiple fvIp objects it may be ideal to be more selective on which IP is grabbed or a way to handle an endpoint having multiple IPs.
|
Disclaimer: I've not worked on or with this library, but I'm working with ACI a lot so I sometimes come here to check what's up.
Being deprecated shouldn't mean that it no longer exist, but I can see in #373 that it does. Bad wording on Cisco's part.
This don't really go well with this:
So in my opinion the |
|
Thank you for the reply, I left it as a single IP since that's what it would return in the older versions (and that might be depended on). I wasn't clear on the logic as far as how ACI chose the IP that was present in that field so I just picked the first valid IP I found (v4 or v6). I agree that a larger change should be considered to include handling a fvCEp with more than 1 IP. Changing the We also could do something regarding versioning instead of a try / catch to more deliberate that we're targeting this change. |
|
not to bring this issue out of the grave, but why was this issues resolution not merged into the toolkit master. |
Addresses the Dec 15, 2020 remark in
https://www.cisco.com/c/en/us/td/docs/dcn/aci/apic/5x/release-notes/cisco-apic-release-notes-511.html
grabs the first fvIp object and uses that 'addr'
ideal to be more selective on which IP is grabbed or a way to handle
an endpoint having multiple IPs.
Let me know if there is a better way we should think about detecting and managing version incompatibilities or if we want to address handling multiple fvIps.
WIP solution for #373