I first wrote this blog post about automation leveraging the NSX REST API on the VMware NSX Network Virtualization Blog on June 21, 2016. The full blog post is provided below and can also be seen on the VMware NSX Network Virtualization Blog site. (more…)
Posts Tagged ‘Python’
My latest post on the VMware NSX Network Virtualization Blog, Automating Security Group and Policy Creation with NSX REST API, describes using NSX REST API with some code for a simple yet realistic use case focused around security where automation can help. In this example I use Python. (more…)
If you haven’t already, checkout my post on the VMware Network Virtualization blog where I describe and show a demo of how Splunk can be used to monitor the VMware NSX distributed firewall (DFW), and, with a little Python code, help automate the creation of DFW rules: Automating VMware NSX Security Rules Creation using Splunk and Some Code.
I’ve been playing with the VMware NSX-V 6.2 REST API using both a browser based REST API client and Python. While I was exploring different methods, I deleted the default NSX-V Distributed Firewall (DFW) L3 section via REST API call within Python. Unfortunately, this prevents me from being able to add any rules to the NSX-V DFW, since rules must be added to a section, and I deleted the default DFW L3 section. The only way to add another section through the VMware vSphere web client is to right click an existing section and select “Add section,” however since I only had the default section which I deleted, this is no longer an option. (more…)
One of my favorite development tools at an unbelievably low price – FREE! Can’t get much better than that. Download ‘Eclipse IDE for Java EE Developers’ and give it a try. If you are not much of a Java/J2EE programmer, that’s ok – just download one of the many plugins available for C/C++, Perl, Python, etc. The latest Eclipse release is Eclipse Juno (4.2) SR2. For more information, see the Eclipse website at http://www.eclipse.org/. (more…)
Below is a link to the slide deck for a presentation I gave to some friends/colleagues for a Berkeley Virtualization and Cloud Computing certification course I took in early 2012. For my final project I did a XenServer, Hyper-V, and ESXi hypervisor comparison in regards to market share, architecture/installation, and APIs/coding. The project involved not only a presentation but coding for all three hypervisors – XenServer, Hyper-V, and ESXi. Technical details, demos, and coding examples are provided in the presentation. You can also download all code from either the download section of this site or for the latest code updates download from GitHub. (more…)
In this blog I demonstrate how you can implement and take advantage of caching in your Python scripts/applications.
Caching allows you to complete tasks more rapidly by storing and reusing results for repeated operations using the same criteria. For example, consider a function that takes several arguments and performs a complex calculation. What if you passed the same arguments to this function ten times; well, without caching, the same operation and complex calculation will be performed ten times. (more…)