Nicolas Leiva's Avatar

Nicolas Leiva

@nleiva.com

Proud dad • Senior Cloud Network Architect, CTO Office @Bloomberg. Opinions are my own. Networking, Cloud & Automation.

212
Followers
72
Following
37
Posts
27.09.2023
Joined
Posts Following

Latest posts by Nicolas Leiva @nleiva.com

Preview
Add NAT model by nleiva · Pull Request #1335 · openconfig/public Change Scope This PR introduces a new YANG data model for Network Address Translation (NAT). This is a new model, so the change is backward compatible. We use NAT instances to stay in line with R...

How ironic… After spending the last 10 years boring everyone to death about IPv6 being the future and NAT being evil… my first OpenConfig YANG model contribution is for… checks notes …Network Address Translation 🤦‍♂️

Go ahead, throw your tomatoes.

github.com/openconfig/p...

02.09.2025 22:30 👍 4 🔁 0 💬 1 📌 0

Great session. Looking forward to TypeScript 7.

27.08.2025 23:23 👍 3 🔁 0 💬 0 📌 0
Preview
How to Build a ChatGPT Clone in Go: Cost, Context, and Lessons Learn how to build a ChatGPT clone in Go with Fiber, HTMX, and Templ. Covers costs, context handling, and lessons learned.

LLMs feel like a black box, so I built my own ChatGPT clone in Go. Learned about cost, context, and control along the way. Full write-up: bit.ly/ChatGPT-clone

25.08.2025 13:19 👍 1 🔁 0 💬 0 📌 0
I Can’t Stop Eating This Protein Cheesecake
I Can’t Stop Eating This Protein Cheesecake YouTube video by Exercise4CheatMeals

Recipe: youtu.be/PW-FQGj37oY?...

08.08.2025 14:38 👍 0 🔁 0 💬 0 📌 0
Post image

Just nailed my first homemade cheesecake with half the calories, double the protein!

08.08.2025 14:38 👍 0 🔁 0 💬 1 📌 0
🔧 Golang installation and management in 2025 🚀 A comprehensive macOS and Linux approach to setting up and managing your Go development environment

Sooooo I haven't started a new golang project from scratch in a few years and had to dig into it today.

Def going to integrate this work into Konductor devcontainer next, but I really enjoyed learning about some of the new tooling making code chores a lot easier.

Blog for giggles.

13.05.2025 07:45 👍 24 🔁 5 💬 3 📌 1
Post image

🫣Spotted in a great book by @jeffiel.com

09.07.2025 14:43 👍 0 🔁 0 💬 0 📌 0
Preview
Practical YANG Data Modeling with Go YANG Model definition, Go code generation, crafting message payloads, and data validation for Cisco, Juniper, Arista, and Nokia devices.

No one loves YANG, but we are stuck with it. nleiva.medium.com/yang-data-mo...

09.07.2025 11:35 👍 1 🔁 0 💬 0 📌 0
Preview
Senior Software Engineer - Network Production Engineer

Network Automation role open! A team I work closely with at Bloomberg is hiring a Senior Software Engineer (Network Production Engineering) in London: bloomberg.avature.net/careers/JobD...

03.07.2025 12:28 👍 0 🔁 0 💬 0 📌 0
Preview
GitHub - nleiva/gnmi-query Contribute to nleiva/gnmi-query development by creating an account on GitHub.

Continuously monitor and enforce desired state with gNMI: github.com/nleiva/gnmi-...

02.07.2025 19:44 👍 2 🔁 0 💬 0 📌 0

Thank you for your valuable feedback! 🤖 Here are 3 fun and engaging ways to enjoy AI-generated content —
1️⃣ Lower your expectations 🪂
2️⃣ Embrace the uncanny phrasing 🤹
3️⃣ Pretend it’s avant-garde art 🎨
We appreciate your continued tolerance — optimizing for delight one awkward sentence at a time! ✨📊

15.06.2025 20:15 👍 1 🔁 0 💬 0 📌 0
Preview
Bloomberg Message Bloomberg’s most valuable application wasn’t proposed by senior management or product managers. It wasn’t part of a strategic plan. It wasn’t conceived as a killer app. It was pitched and built by …

Bloomberg Message (and its offspring, Instant Bloomberg) backstory: ted-merz.com/2023/05/09/b...

12.06.2025 01:48 👍 0 🔁 0 💬 0 📌 0
Post image

This diagram in the deck is a gem:

26.05.2025 23:02 👍 2 🔁 0 💬 0 📌 0

It’s crazy the world didn’t get to see it played live 😢

19.05.2025 23:21 👍 1 🔁 0 💬 0 📌 0
OpenConfig - Schema paths

Glad to hear it helped. For OpenConfig schema paths, they use openconfig.net/projects/mod...

21.04.2025 13:24 👍 1 🔁 0 💬 0 📌 0
Preview
GitHub - nleiva/xr-gnmi: Collection of IOS XR gNMI examples Collection of IOS XR gNMI examples. Contribute to nleiva/xr-gnmi development by creating an account on GitHub.

It’s been a while, but hopefully these examples still work with XR: github.com/nleiva/xr-gn...

19.04.2025 13:37 👍 0 🔁 0 💬 1 📌 0
Preview
Humble Tech Book Bundle: Networking Mastery by Packt Your network is your networth—become a networking master with our latest tech bundle by Packt. Pay what you want & support charity!

20 networking books for $18 www.humblebundle.com/books/networ...

15.04.2025 00:29 👍 0 🔁 1 💬 0 📌 0
Preview
GitHub - nleiva/go-yang-basics Contribute to nleiva/go-yang-basics development by creating an account on GitHub.

Go YANG basics: github.com/nleiva/go-ya...

10.04.2025 20:30 👍 5 🔁 1 💬 0 📌 0
Post image

Today I'm proud to launch your new favourite Go book in early access!

This book will go to a depth not seen before in Go books, and the first three chapters are available right now:
www.bytesizego.com/books/anatom...

25.03.2025 06:28 👍 79 🔁 20 💬 2 📌 1

It wasn’t in my bucket list to become AI
cc: @networkop.bsky.social

20.03.2025 17:01 👍 0 🔁 0 💬 0 📌 0

Never mind, I believe I fixed it (looks like you need the ‘/‘ everywhere)

05.02.2025 17:59 👍 2 🔁 0 💬 1 📌 0
Preview
kne/srlinux.cfg at main · nleiva/kne Contribute to nleiva/kne development by creating an account on GitHub.

Thanks, that worked. One thing I have not been able to figure out is why my ‘network-instance default’ config section doesn’t get applied when providing the following startup cfg in KNE: github.com/nleiva/kne/b...

05.02.2025 03:21 👍 2 🔁 0 💬 1 📌 0
3. Configuration management

Thanks, I’ll give that a try. The documentation suggested that is for flat set config files. Crossing fingers infocenter.nokia.com/public/SRLIN...

04.02.2025 17:28 👍 2 🔁 0 💬 1 📌 0

How do you apply a config like this on the cli as is? ‘load json’ complains this is not actually json syntax.

04.02.2025 17:11 👍 0 🔁 0 💬 1 📌 0
Preview
kne/examples/multivendor/srlinux.cfg at main · openconfig/kne Contribute to openconfig/kne development by creating an account on GitHub.

Thanks! How do I merge that with what they have already? Can I paste the interface section at the bottom of that file? My apologies for the newbie question :-) github.com/openconfig/k...

28.01.2025 23:28 👍 0 🔁 0 💬 1 📌 0
Preview
kne/examples/multivendor at main · openconfig/kne Contribute to openconfig/kne development by creating an account on GitHub.

Hey @netdevops.me what would the SR Linux interface config look like for the KNE multivendor example? github.com/openconfig/k...

28.01.2025 23:04 👍 1 🔁 0 💬 1 📌 0

Got it. I’m ok either way, as long as the validation code is automatically generated for the user, so they don’t need to translate definitions (range, percentage, etc.) to code manually.

19.01.2025 17:41 👍 1 🔁 0 💬 0 📌 0

Thanks @netdevops.me, this looks awesome. Are you validating user defined types (e.g. vlan range)? That part feels like magic with ygot and vendor YANG models.

19.01.2025 15:27 👍 0 🔁 0 💬 1 📌 0
Preview
Network Automation with Go A book about automating network operations and building applications using the Go programming language

While I wouldn't claim to be an expert on writing advice, here's what worked for me: sharing the core purpose behind writing it, concise chapter breakdown, add some visuals of the actual book, and highlighted a few key reader reactions from social media. medium.com/@nleiva/netw...

04.01.2025 06:13 👍 1 🔁 0 💬 0 📌 0
Preview
Build your own market data analytics app in 5 minutes - PyQuant News PQN #040: Build your own market data analytics app in 5 minutes. When I turned 18, I made two choices that transformed my life.

This is a simplified version of www.pyquantnews.com/the-pyquant-.... It did however take me more than 5 minutes to make it work 😂

27.12.2024 18:10 👍 0 🔁 0 💬 0 📌 0