Howdy out there in automation land! You might be wondering... where have I been!!!?? It's been 2 months since the last blog.... well we moved and with all that comes a delay in blogging. But we are pretty stable and I am back now! This blog is to talk about the other methods that I built into the List class for CPO. These include the following methods..
1) Destroy() - > destroys the list and it's run time user
2) Extend(L) -> this takes a List Name "L" and adds it to the list you invoked it on
3) Pop(i) -> this takes an optional index i and pops/removes the item from the list at that index. If "i" is not given, it pops off the last item in the list. It returns the item value as output
4) Index(item) -> this returns the first index of a item given. If no index, it errors
5) Get(index) -> this is like doing Array[Index] in a programming language. It returns the value of the item at the given index
6) Remove(item) -> this removes all items that are the same as the given item
These methods combined with the ones from before give a decently complete list class to help you in your coding. The only drawback is a little added overhead, but as I have said in the recordings, much of this is academic and meant to show you the power of target types and service oriented programming which is CPO's version of Object Oriented Programming. This blog will be short from a writing standpoint and the VOD is shorter. I'm trying to reduce the time so more will watch and be able to enjoy the full things!
I plan to do upcoming blogs on Strings, Conditionals, and more!!!
You can find the previous blog to this one at https://supportforums.cisco.com/blog/12550451/pondering-automation-creating-list-and-checking-it-twice
No questions this month! Hopefully we'll get some in to answer for next time!
Every month I will pick a handful of questions from you, the reading CPO public, to answer in this part of the blog. Please post comments/questions below. I will no longer be using the external e-mail from previous blogs.
Please also let me know if you like the format of this blog and what else you would like to see/know about. Feel free to give any ideas as to future blog posts, etc and I will be happy to post them. I hope to do more how-tos, best practices, tips, tricks, and hopefully some interviews of the important people behind the scenes of CPO.
AUTOMATION BLOG DISCLAIMER: As always, this is a blog and my (Shaun Roberts) thoughts on CPO and automation, my thoughts on best practices, and my experiences with the product and customers. The above views are in no way representative of Cisco or any of it's partners, etc. None of these views, etc are supported and this is not a place to find standard product support. If you need standard product support please do so via the current call in numbers on Cisco.com or email email@example.com
Hello,We have one fabric composed by only 1 MDS 9148 switches, and now, we want to add a new 9148 S MDS switch to this fabric.one VSAN (100) and one zone set activated on this switch.Now, we need to add a new switch in fabric. This new switch is also one ...
Hi All, Spine Leaf designs I have seen so far show a single link from Leaf to each Spine and the recommended solution to increase aggregate fabric throughput is to add another Spine. Is it a valid design to have multiple links from Leaf to Spine to a...
I found two different theory to handle l3 traffic for unknown IP in ACI one is stated below which is from White Paper 739989 and in other cisco live document I have seen that this will be treated via spine proxy method. "For (L3) routed traffic to an...
I found below note in cisco white paper i.e 739989 - end point learning but unable to understand it. "An exception exists for remote MAC address learning when a packet is incoming from L3Out to Cisco ACI. If ARP traffic is coming from an L3Out SVI ra...
Dears ,Please check as the ACI sandbox does not accept any simple action on it from yesterday ? even creation of a tenant returns "Error: 400 - the messaging layer was unable to deliver the stimulus (connection error, Connection refused)"