Search
Brian Martin

A view of the network in the Hack Shack at HPE Discover Madrid 2018

December 14, 2018

Discover Madrid Stickers

#LETSHACKSHACKHowdy! Brian here, just back from the Hack Shack at HPE Discover Madrid. Hanging out with customers and partners was the best part of the show. Having fun helping them accelerate their cloud operational efficiency was icing on the cake. Yes, I said having fun. Having fun with code is a big part of the Hack Shack mantra and just one reason why I enjoy my job. Struggling with integration? Upgrade the API! Dealing with repetitive tasks? Automate! I code where I can make a difference and I have a great time doing it.

My colleagues and I, (Chris Young and Mark Parenti), had the opportunity of representing HPE Composable Fabric in the Hack Shack. We set out to do the impossible - ok, maybe just the highly improbable. Our mission: make network programming comprehensible and accessible. I know you must be chuckling about that mission statement but read on! You are about to embark on a journey of wonder and awe and see how truly simple your network can be.

HPE Composable Fabric Manager (fka: Plexxi) was designed and developed from the beginning to be fully API driven. The web-based user interface uses the same RESTful API available to everyone - no special endpoints or mysterious parameters - and fully documented with Swagger.

Plexxi Swagger Screenshot

To make programming even easier in the Hack Shack, we pulled together Python bindings for the API, and everyone’s favorite coding example, “hello world”. Several of the customers dropping by the Hack Shack with their laptops successfully programmed the Composable Fabric switches in just a few minutes. Let me show you how they were able to do so much in so little time.

The first component is a client class that wraps the Composable Fabric API in easy to access properties and methods. Initializing the client with authentication credentials and the address of the Composable Fabric Manager instance establishes a secure connection. Convenience methods offer easy access to fabric switches, switch ports, and more. For our exploration, getting switches and ports along with updating ports will suffice.

plexxi ss 01

Once we have the API client initialized, a call to the get_switches() method returns the fabric switches, and get_ports(switch_uuid) returns the ports for a given switch. We’ll use the port identifiers to update their status later with calls to update_ports().

plexxi ss 02

The "secret sauce” in our example is mapping the characters in “hello world” to switch ports in binary ASCII! Then it’s just a simple matter of administratively enabling or disabling the appropriate ports to send our message to the world. Sure, this example has limited applicability in your data center and only your geekiest friends will appreciate it, but it illustrates the simplicity of programming the Composable Fabric API, making even the most powerful operations simple and automate-able. In fact, many of the integrations in Composable Fabric Manager do exactly that - leverage internal and external APIs to automate network discover, configuration, and remediation.

The Hack Shack at Discover 2018 in Madrid was a great experience and I loved meeting all of you, hearing your ideas and inspiring you. I look forward to seeing you again next year. If you didn’t stop by this time, be sure to visit us at the Discover 2019 event in Vegas. Ask for me and let’s sit down and talk networking geek.

And don’t forget! Keep an eye out for the upcoming Python bindings on HPEDEV.IO.

Related

HPE DEV staff

Don’t miss it! HPE Discover Hack Shack offers something for everyone at every skill level!

Nov 26, 2018
Dale Rensing

HPE DEV Hack Shack attracts over 10K visitors at HPE Discover event

Aug 19, 2020
The HPE Developer Community

HPE Discover Hackathon Wrap-up: Top 10 list of what you should know

Jul 10, 2018
Didier Lalli, Distinguished Technologist

Hacking away at the Paris Technology and Solutions Summit (TSS)

Mar 28, 2019
By Frederic Passeron

Insights from a Hack Shack staffer's diary

Jul 21, 2022
HPE DEV staff

A behind the scenes look into the projects of the HPE Hackathon

May 24, 2018
Dale Rensing

Help Build the Hospital of the Future and Be Eligible for Prizes!

May 11, 2021
Dale Rensing

HPE community hackathon builds STEM excitement for middle school students

Apr 7, 2023

HPE Developer Newsletter

Stay in the loop.

Sign up for the HPE Developer Newsletter or visit the Newsletter Archive to see past content.

By clicking on “Subscribe Now”, I agree to HPE sending me personalized email communication about HPE and select HPE-Partner products, services, offers and events. I understand that my email address will be used in accordance with HPE Privacy Statement. You may unsubscribe from receiving HPE and HPE-Partner news and offers at any time by clicking on the Unsubscribe button at the bottom of the newsletter.

For more information on how HPE manages, uses, and protects your personal data please refer to HPE Privacy Statement.