SlideShare uma empresa Scribd logo
1 de 21
Baixar para ler offline
Hank Preston,Principal Engineer
Sandbox Architectureand Automation
May 19, 2020
NetBox as the Source of Truth for Cisco
NSO Configurations
Twitter: @hfpreston
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
• ConfigurationManagement
with Cisco NSO
• NetBox as Source of Truth for
Cisco NSO
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com
• “Multi-Tenant”segmentation
• Internal Trusted Admin Tenant
• Many UntrustedCustomer Tenants
• Built on sharedphysical network
Basic Logical Network Topology
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com
• ”Typical” data center network
• Layer 2 segmentation with VLANs
• Layer 3 segmentation with VRF and
firewalls
Moving to Physical Network
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com
• Layer 2 domains are VLAN Fabrics
• Single VLAN “scope”
• Composed of multiple “switches”
• Nexus, VMware, UCS
Putting “Logical” on ”Physical”
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com
• Layer 3 domains are “VLAN Tenants”
• Unique layer 3 IP space
• Security boundary at firewalls
Putting “Logical” on ”Physical”
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com
Initial Services Built
• vlan-fabric: Physical underlay
• MLAG domains & interswitch trunks
• vlan-tenant: Overlay tenants
• L2 and L3 domains
• Physical network attachments
• firewall: Simplify and Consistency
• Interfaces, Access Lists, Public Services, VPN
management
Cisco NSO and Network Service Based Automation
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com
vlan-fabric
• Describe underlay connectivity
• Cover “traditional” switches as well
as “non-traditional”ones
vlan-fabric internal
switch-pair leaf01
layer3 true
primary leaf01-1
secondary leaf01-2
vpc-peerlink id 1
vpc-peerlink interface 1/53
vpc-peerlink interface 1/54
fabric-trunk 2
interface 1/49
interface 1/50
fabric-interconnect fi01
vnic-template-trunks myorg1 vm-network-a
vnic-template-trunks myorg2 esxi-vnic-a
vmware-dvs vcenter1 mydatacenter mydvs
8
Configuring a VLAN Fabric
Note: Configurations, templates, code, etc havebeen simplified
for this presentation.
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com
vlan-tenant
• Describe the L2/L3 environment
• Focus on unique details per
network
vlan-tenant admin
fabric internal
static-routes 0.0.0.0/0
gateway 172.23.250.4
network admin-containers
vlanid 25
network 172.23.4.0/23
layer3-on-fabric true
dhcp-relay-address 172.23.2.11
network admin-main
vlanid 11
network 172.23.2.0/23
layer3-on-fabric true
connections switch-pair leaf01
interface 1/33
description "Link to NUC ESXI"
9
Configuring a VLAN Tenant
Note: Configurations, templates, code, etc havebeen simplified
for this presentation.
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com
But what about NetBox?
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public
NetBox is our Source
of Truth
• The Cisco NSO CDB
(Configuration Database)
drives network state
• NetBox drives the CDB
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com
Mapping NetBox Data Model to Services
VLAN Fabric
VLAN Tenant
Network
Devices and
Interfaces
VLAN Group
Tenant and VRF
VLAN & Prefix
Devices and
Interfaces
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com
Mapping NetBox Data Model to Services
VLAN FabricVLAN Group
nso1# show running-config vlan-fabric
vlan-fabric dmz01
vlan-fabric dmz02
vlan-fabric edge
vlan-fabric internal
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com
Mapping NetBox Data Model to Services
VLAN TenantTenant and VRF
nso1# show running-config vlan-tenant
vlan-tenant admin
vlan-tenant admin-private
vlan-tenant dmz01
vlan-tenant dmz02
vlan-tenant edge
vlan-tenant pod-backdoor
vlan-tenant pod1
vlan-tenant pod10
vlan-tenant pod100
vlan-tenant pod101
vlan-tenant pod102
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com
Mapping NetBox Data Model to Services
NetworkVLAN & Prefix
vlan-tenant admin
network oobmgmt-transit
vlanid 5
network 10.17.251.0/29
network admin-fw-transit
vlanid 10
network 10.17.250.0/29
network admin-main
vlanid 11
network 10.17.2.0/23
network pod-fw-mgmt
vlanid 15
network 10.17.232.0/21
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com
Mapping NetBox Data Model to Services
Devices and
Interfaces
Devices and
Interfaces
vlan-tenant admin
network esxi-mgmt
connections switch-pair usw1-leaf01
interface 1/3
mode trunk
!
interface 1/4
mode trunk
!
interface 1/5
mode trunk
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com
Generating NSO Configurations from NetBox
python nso_tenant_config.py --tenantadmin
✅ Processing Tenant: admin
❌ Skipping Tenant: admin-privatebecauseit was NOTlisted in `tenant`
• Python script uses pynetbox to read all
tenants, vlan-groups, prefixes, etc
• Jinja2 templates used to create both
CLI and XML versions of NSO Service
Configuration
• Generated configurations “load
merged” into Cisco NSO
<config xmlns="http://tail-f.com/ns/config/1.0">
<vlan-tenant xmlns="http://example.com/vlan-tenant">
<name>admin</name>
<fabric>internal</fabric>
<network>
<name>oobmgmt-transit</name>
<vlanid>5</vlanid>
<network>10.17.251.0/29</network>
<layer3-on-fabric>true</layer3-on-fabric>
<build-route-neighbors>true</build-route-neighbors>
<connections>
<switch-pair>
<name>usw1-leaf01</name>
<port-channel>
<portchannel-id>100</portchannel-id>
<description>Routed link to OOB</description>
<mode>access</mode>
<interface>
<interface>1/48</interface>
</interface>
</port-channel>
</switch-pair>
</connections>
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com
<close-session />
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com
• Deeper Dive into Network Service
Automationin Sandbox from Cisco
Live Europe 2020
• Checkout the NSO Service Code and
NetBox Scripts
Explore it some more!
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com
Got more questions? Stay in touch!
hapresto@cisco.com
@hfpreston
hfpreston (Network to Code)
http://github.com/hpreston
@CiscoDevNet
facebook.com/ciscodevnet/
http://github.com/CiscoDevNet
Hank Preston developer.cisco.com
© 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com
https://developer.cisco.com/sandbox

Mais conteúdo relacionado

Mais procurados

NSO: Network Service Orchestrator enabled by Tail-f Hands-on Lab
NSO: Network Service Orchestrator enabled by Tail-f Hands-on LabNSO: Network Service Orchestrator enabled by Tail-f Hands-on Lab
NSO: Network Service Orchestrator enabled by Tail-f Hands-on LabCisco Canada
 
Cisco Live! :: Carrier Ethernet 2.0 :: BRKSPG-2720 | Las Vegas July/2016
Cisco Live! :: Carrier Ethernet 2.0 :: BRKSPG-2720 | Las Vegas July/2016Cisco Live! :: Carrier Ethernet 2.0 :: BRKSPG-2720 | Las Vegas July/2016
Cisco Live! :: Carrier Ethernet 2.0 :: BRKSPG-2720 | Las Vegas July/2016Bruno Teixeira
 
Cilium - Fast IPv6 Container Networking with BPF and XDP
Cilium - Fast IPv6 Container Networking with BPF and XDPCilium - Fast IPv6 Container Networking with BPF and XDP
Cilium - Fast IPv6 Container Networking with BPF and XDPThomas Graf
 
Cisco Live Brksec 3032 - NGFW Clustering
Cisco Live Brksec 3032 - NGFW ClusteringCisco Live Brksec 3032 - NGFW Clustering
Cisco Live Brksec 3032 - NGFW Clusteringib_cims
 
Using eBPF for High-Performance Networking in Cilium
Using eBPF for High-Performance Networking in CiliumUsing eBPF for High-Performance Networking in Cilium
Using eBPF for High-Performance Networking in CiliumScyllaDB
 
DPDK IPSec Security Gateway Application
DPDK IPSec Security Gateway ApplicationDPDK IPSec Security Gateway Application
DPDK IPSec Security Gateway ApplicationMichelle Holley
 
[C16] インメモリ分散KVSの弱点。一貫性が崩れる原因と、それを克服する技術とは? by Taichi Umeda
[C16] インメモリ分散KVSの弱点。一貫性が崩れる原因と、それを克服する技術とは? by Taichi Umeda[C16] インメモリ分散KVSの弱点。一貫性が崩れる原因と、それを克服する技術とは? by Taichi Umeda
[C16] インメモリ分散KVSの弱点。一貫性が崩れる原因と、それを克服する技術とは? by Taichi UmedaInsight Technology, Inc.
 
NETCONF Call Home
NETCONF Call Home NETCONF Call Home
NETCONF Call Home ADVA
 
大規模サービスを支えるネットワークインフラの全貌
大規模サービスを支えるネットワークインフラの全貌大規模サービスを支えるネットワークインフラの全貌
大規模サービスを支えるネットワークインフラの全貌LINE Corporation
 
30分でRHEL6 High Availability Add-Onを超絶的に理解しよう!
30分でRHEL6 High Availability Add-Onを超絶的に理解しよう!30分でRHEL6 High Availability Add-Onを超絶的に理解しよう!
30分でRHEL6 High Availability Add-Onを超絶的に理解しよう!Etsuji Nakai
 
DPDKによる高速コンテナネットワーキング
DPDKによる高速コンテナネットワーキングDPDKによる高速コンテナネットワーキング
DPDKによる高速コンテナネットワーキングTomoya Hibi
 
Pushing Packets - How do the ML2 Mechanism Drivers Stack Up
Pushing Packets - How do the ML2 Mechanism Drivers Stack UpPushing Packets - How do the ML2 Mechanism Drivers Stack Up
Pushing Packets - How do the ML2 Mechanism Drivers Stack UpJames Denton
 
"SRv6の現状と展望" ENOG53@上越
"SRv6の現状と展望" ENOG53@上越"SRv6の現状と展望" ENOG53@上越
"SRv6の現状と展望" ENOG53@上越Kentaro Ebisawa
 
Dockerと外部ルータを連携させる仕組みを作ってみた
Dockerと外部ルータを連携させる仕組みを作ってみたDockerと外部ルータを連携させる仕組みを作ってみた
Dockerと外部ルータを連携させる仕組みを作ってみたnpsg
 
Introduction to DPDK
Introduction to DPDKIntroduction to DPDK
Introduction to DPDKKernel TLV
 
Application Centric Infrastructure (ACI), the policy driven data centre
Application Centric Infrastructure (ACI), the policy driven data centreApplication Centric Infrastructure (ACI), the policy driven data centre
Application Centric Infrastructure (ACI), the policy driven data centreCisco Canada
 
Faster packet processing in Linux: XDP
Faster packet processing in Linux: XDPFaster packet processing in Linux: XDP
Faster packet processing in Linux: XDPDaniel T. Lee
 

Mais procurados (20)

NSO: Network Service Orchestrator enabled by Tail-f Hands-on Lab
NSO: Network Service Orchestrator enabled by Tail-f Hands-on LabNSO: Network Service Orchestrator enabled by Tail-f Hands-on Lab
NSO: Network Service Orchestrator enabled by Tail-f Hands-on Lab
 
自宅vSphereからニフクラに引っ越ししてみた
自宅vSphereからニフクラに引っ越ししてみた自宅vSphereからニフクラに引っ越ししてみた
自宅vSphereからニフクラに引っ越ししてみた
 
Cisco Live! :: Carrier Ethernet 2.0 :: BRKSPG-2720 | Las Vegas July/2016
Cisco Live! :: Carrier Ethernet 2.0 :: BRKSPG-2720 | Las Vegas July/2016Cisco Live! :: Carrier Ethernet 2.0 :: BRKSPG-2720 | Las Vegas July/2016
Cisco Live! :: Carrier Ethernet 2.0 :: BRKSPG-2720 | Las Vegas July/2016
 
Cilium - Fast IPv6 Container Networking with BPF and XDP
Cilium - Fast IPv6 Container Networking with BPF and XDPCilium - Fast IPv6 Container Networking with BPF and XDP
Cilium - Fast IPv6 Container Networking with BPF and XDP
 
Cisco Live Brksec 3032 - NGFW Clustering
Cisco Live Brksec 3032 - NGFW ClusteringCisco Live Brksec 3032 - NGFW Clustering
Cisco Live Brksec 3032 - NGFW Clustering
 
macvlan and ipvlan
macvlan and ipvlanmacvlan and ipvlan
macvlan and ipvlan
 
Using eBPF for High-Performance Networking in Cilium
Using eBPF for High-Performance Networking in CiliumUsing eBPF for High-Performance Networking in Cilium
Using eBPF for High-Performance Networking in Cilium
 
DPDK IPSec Security Gateway Application
DPDK IPSec Security Gateway ApplicationDPDK IPSec Security Gateway Application
DPDK IPSec Security Gateway Application
 
[C16] インメモリ分散KVSの弱点。一貫性が崩れる原因と、それを克服する技術とは? by Taichi Umeda
[C16] インメモリ分散KVSの弱点。一貫性が崩れる原因と、それを克服する技術とは? by Taichi Umeda[C16] インメモリ分散KVSの弱点。一貫性が崩れる原因と、それを克服する技術とは? by Taichi Umeda
[C16] インメモリ分散KVSの弱点。一貫性が崩れる原因と、それを克服する技術とは? by Taichi Umeda
 
DPDK In Depth
DPDK In DepthDPDK In Depth
DPDK In Depth
 
NETCONF Call Home
NETCONF Call Home NETCONF Call Home
NETCONF Call Home
 
大規模サービスを支えるネットワークインフラの全貌
大規模サービスを支えるネットワークインフラの全貌大規模サービスを支えるネットワークインフラの全貌
大規模サービスを支えるネットワークインフラの全貌
 
30分でRHEL6 High Availability Add-Onを超絶的に理解しよう!
30分でRHEL6 High Availability Add-Onを超絶的に理解しよう!30分でRHEL6 High Availability Add-Onを超絶的に理解しよう!
30分でRHEL6 High Availability Add-Onを超絶的に理解しよう!
 
DPDKによる高速コンテナネットワーキング
DPDKによる高速コンテナネットワーキングDPDKによる高速コンテナネットワーキング
DPDKによる高速コンテナネットワーキング
 
Pushing Packets - How do the ML2 Mechanism Drivers Stack Up
Pushing Packets - How do the ML2 Mechanism Drivers Stack UpPushing Packets - How do the ML2 Mechanism Drivers Stack Up
Pushing Packets - How do the ML2 Mechanism Drivers Stack Up
 
"SRv6の現状と展望" ENOG53@上越
"SRv6の現状と展望" ENOG53@上越"SRv6の現状と展望" ENOG53@上越
"SRv6の現状と展望" ENOG53@上越
 
Dockerと外部ルータを連携させる仕組みを作ってみた
Dockerと外部ルータを連携させる仕組みを作ってみたDockerと外部ルータを連携させる仕組みを作ってみた
Dockerと外部ルータを連携させる仕組みを作ってみた
 
Introduction to DPDK
Introduction to DPDKIntroduction to DPDK
Introduction to DPDK
 
Application Centric Infrastructure (ACI), the policy driven data centre
Application Centric Infrastructure (ACI), the policy driven data centreApplication Centric Infrastructure (ACI), the policy driven data centre
Application Centric Infrastructure (ACI), the policy driven data centre
 
Faster packet processing in Linux: XDP
Faster packet processing in Linux: XDPFaster packet processing in Linux: XDP
Faster packet processing in Linux: XDP
 

Semelhante a NetBox as the Source of Truth for Cisco NSO Configurations

Brkdcn 2035 multi-x
Brkdcn 2035 multi-xBrkdcn 2035 multi-x
Brkdcn 2035 multi-xMason Mei
 
Presentation dc design for small and mid-size data center
Presentation   dc design for small and mid-size data centerPresentation   dc design for small and mid-size data center
Presentation dc design for small and mid-size data centerxKinAnx
 
Presentation cloud orchestration
Presentation   cloud orchestrationPresentation   cloud orchestration
Presentation cloud orchestrationxKinAnx
 
How to be a Network Engineer in a Programmable Age
How to be a Network Engineer in a Programmable AgeHow to be a Network Engineer in a Programmable Age
How to be a Network Engineer in a Programmable AgeHank Preston
 
Virtualizing the Network to enable a Software Defined Infrastructure (SDI)
Virtualizing the Network to enable a Software Defined Infrastructure (SDI)Virtualizing the Network to enable a Software Defined Infrastructure (SDI)
Virtualizing the Network to enable a Software Defined Infrastructure (SDI)Odinot Stanislas
 
Cisco SDN/NVF Innovations (SDN NVF Day ITB 2016)
Cisco SDN/NVF Innovations (SDN NVF Day ITB 2016)Cisco SDN/NVF Innovations (SDN NVF Day ITB 2016)
Cisco SDN/NVF Innovations (SDN NVF Day ITB 2016)SDNRG ITB
 
BRKDCN-2670 Day2 operations for Datacenter VxLAN EVPN fabrics.pdf
BRKDCN-2670 Day2 operations for Datacenter VxLAN EVPN fabrics.pdfBRKDCN-2670 Day2 operations for Datacenter VxLAN EVPN fabrics.pdf
BRKDCN-2670 Day2 operations for Datacenter VxLAN EVPN fabrics.pdfHarryH11
 
Brkaci 1002
Brkaci 1002Brkaci 1002
Brkaci 1002ccherel
 
Presentation cisco data center security deep dive
Presentation   cisco data center security deep divePresentation   cisco data center security deep dive
Presentation cisco data center security deep divexKinAnx
 
Network Function Virtualisation (NFV) BoF
Network Function Virtualisation (NFV) BoFNetwork Function Virtualisation (NFV) BoF
Network Function Virtualisation (NFV) BoFAPNIC
 
EMEAR_Security_TAC_2021_IPSec_Site_to_Site_VPNs_on_FTD_Overview.pdf
EMEAR_Security_TAC_2021_IPSec_Site_to_Site_VPNs_on_FTD_Overview.pdfEMEAR_Security_TAC_2021_IPSec_Site_to_Site_VPNs_on_FTD_Overview.pdf
EMEAR_Security_TAC_2021_IPSec_Site_to_Site_VPNs_on_FTD_Overview.pdfjawed29
 
Luca Relandini - Microservices and containers networking: Contiv, deep dive a...
Luca Relandini - Microservices and containers networking: Contiv, deep dive a...Luca Relandini - Microservices and containers networking: Contiv, deep dive a...
Luca Relandini - Microservices and containers networking: Contiv, deep dive a...Codemotion
 
Understanding and Troubleshooting ASA NAT
Understanding and Troubleshooting ASA NATUnderstanding and Troubleshooting ASA NAT
Understanding and Troubleshooting ASA NATCisco Russia
 
Data Center Security
Data Center SecurityData Center Security
Data Center SecurityCisco Canada
 
Data Centre Design for Canadian Small & Medium Sized Businesses
Data Centre Design for Canadian Small & Medium Sized BusinessesData Centre Design for Canadian Small & Medium Sized Businesses
Data Centre Design for Canadian Small & Medium Sized BusinessesCisco Canada
 
The Data Center Network Evolution
The Data Center Network EvolutionThe Data Center Network Evolution
The Data Center Network EvolutionCisco Canada
 
Brkarc 2035-cat-9 k
Brkarc 2035-cat-9 kBrkarc 2035-cat-9 k
Brkarc 2035-cat-9 knasiapsi
 
Exercise 4c stp rapid pvst+ question
Exercise 4c   stp rapid pvst+ questionExercise 4c   stp rapid pvst+ question
Exercise 4c stp rapid pvst+ questionsufi1248
 

Semelhante a NetBox as the Source of Truth for Cisco NSO Configurations (20)

BRKCRS-2110.pdf
BRKCRS-2110.pdfBRKCRS-2110.pdf
BRKCRS-2110.pdf
 
CISCO DCNM.pdf
CISCO DCNM.pdfCISCO DCNM.pdf
CISCO DCNM.pdf
 
Brkdcn 2035 multi-x
Brkdcn 2035 multi-xBrkdcn 2035 multi-x
Brkdcn 2035 multi-x
 
Presentation dc design for small and mid-size data center
Presentation   dc design for small and mid-size data centerPresentation   dc design for small and mid-size data center
Presentation dc design for small and mid-size data center
 
Presentation cloud orchestration
Presentation   cloud orchestrationPresentation   cloud orchestration
Presentation cloud orchestration
 
How to be a Network Engineer in a Programmable Age
How to be a Network Engineer in a Programmable AgeHow to be a Network Engineer in a Programmable Age
How to be a Network Engineer in a Programmable Age
 
Virtualizing the Network to enable a Software Defined Infrastructure (SDI)
Virtualizing the Network to enable a Software Defined Infrastructure (SDI)Virtualizing the Network to enable a Software Defined Infrastructure (SDI)
Virtualizing the Network to enable a Software Defined Infrastructure (SDI)
 
Cisco SDN/NVF Innovations (SDN NVF Day ITB 2016)
Cisco SDN/NVF Innovations (SDN NVF Day ITB 2016)Cisco SDN/NVF Innovations (SDN NVF Day ITB 2016)
Cisco SDN/NVF Innovations (SDN NVF Day ITB 2016)
 
BRKDCN-2670 Day2 operations for Datacenter VxLAN EVPN fabrics.pdf
BRKDCN-2670 Day2 operations for Datacenter VxLAN EVPN fabrics.pdfBRKDCN-2670 Day2 operations for Datacenter VxLAN EVPN fabrics.pdf
BRKDCN-2670 Day2 operations for Datacenter VxLAN EVPN fabrics.pdf
 
Brkaci 1002
Brkaci 1002Brkaci 1002
Brkaci 1002
 
Presentation cisco data center security deep dive
Presentation   cisco data center security deep divePresentation   cisco data center security deep dive
Presentation cisco data center security deep dive
 
Network Function Virtualisation (NFV) BoF
Network Function Virtualisation (NFV) BoFNetwork Function Virtualisation (NFV) BoF
Network Function Virtualisation (NFV) BoF
 
EMEAR_Security_TAC_2021_IPSec_Site_to_Site_VPNs_on_FTD_Overview.pdf
EMEAR_Security_TAC_2021_IPSec_Site_to_Site_VPNs_on_FTD_Overview.pdfEMEAR_Security_TAC_2021_IPSec_Site_to_Site_VPNs_on_FTD_Overview.pdf
EMEAR_Security_TAC_2021_IPSec_Site_to_Site_VPNs_on_FTD_Overview.pdf
 
Luca Relandini - Microservices and containers networking: Contiv, deep dive a...
Luca Relandini - Microservices and containers networking: Contiv, deep dive a...Luca Relandini - Microservices and containers networking: Contiv, deep dive a...
Luca Relandini - Microservices and containers networking: Contiv, deep dive a...
 
Understanding and Troubleshooting ASA NAT
Understanding and Troubleshooting ASA NATUnderstanding and Troubleshooting ASA NAT
Understanding and Troubleshooting ASA NAT
 
Data Center Security
Data Center SecurityData Center Security
Data Center Security
 
Data Centre Design for Canadian Small & Medium Sized Businesses
Data Centre Design for Canadian Small & Medium Sized BusinessesData Centre Design for Canadian Small & Medium Sized Businesses
Data Centre Design for Canadian Small & Medium Sized Businesses
 
The Data Center Network Evolution
The Data Center Network EvolutionThe Data Center Network Evolution
The Data Center Network Evolution
 
Brkarc 2035-cat-9 k
Brkarc 2035-cat-9 kBrkarc 2035-cat-9 k
Brkarc 2035-cat-9 k
 
Exercise 4c stp rapid pvst+ question
Exercise 4c   stp rapid pvst+ questionExercise 4c   stp rapid pvst+ question
Exercise 4c stp rapid pvst+ question
 

Último

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 

Último (20)

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 

NetBox as the Source of Truth for Cisco NSO Configurations

  • 1. Hank Preston,Principal Engineer Sandbox Architectureand Automation May 19, 2020 NetBox as the Source of Truth for Cisco NSO Configurations Twitter: @hfpreston
  • 2. © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public • ConfigurationManagement with Cisco NSO • NetBox as Source of Truth for Cisco NSO
  • 3. © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com • “Multi-Tenant”segmentation • Internal Trusted Admin Tenant • Many UntrustedCustomer Tenants • Built on sharedphysical network Basic Logical Network Topology
  • 4. © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com • ”Typical” data center network • Layer 2 segmentation with VLANs • Layer 3 segmentation with VRF and firewalls Moving to Physical Network
  • 5. © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com • Layer 2 domains are VLAN Fabrics • Single VLAN “scope” • Composed of multiple “switches” • Nexus, VMware, UCS Putting “Logical” on ”Physical”
  • 6. © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com • Layer 3 domains are “VLAN Tenants” • Unique layer 3 IP space • Security boundary at firewalls Putting “Logical” on ”Physical”
  • 7. © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com Initial Services Built • vlan-fabric: Physical underlay • MLAG domains & interswitch trunks • vlan-tenant: Overlay tenants • L2 and L3 domains • Physical network attachments • firewall: Simplify and Consistency • Interfaces, Access Lists, Public Services, VPN management Cisco NSO and Network Service Based Automation
  • 8. © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com vlan-fabric • Describe underlay connectivity • Cover “traditional” switches as well as “non-traditional”ones vlan-fabric internal switch-pair leaf01 layer3 true primary leaf01-1 secondary leaf01-2 vpc-peerlink id 1 vpc-peerlink interface 1/53 vpc-peerlink interface 1/54 fabric-trunk 2 interface 1/49 interface 1/50 fabric-interconnect fi01 vnic-template-trunks myorg1 vm-network-a vnic-template-trunks myorg2 esxi-vnic-a vmware-dvs vcenter1 mydatacenter mydvs 8 Configuring a VLAN Fabric Note: Configurations, templates, code, etc havebeen simplified for this presentation.
  • 9. © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com vlan-tenant • Describe the L2/L3 environment • Focus on unique details per network vlan-tenant admin fabric internal static-routes 0.0.0.0/0 gateway 172.23.250.4 network admin-containers vlanid 25 network 172.23.4.0/23 layer3-on-fabric true dhcp-relay-address 172.23.2.11 network admin-main vlanid 11 network 172.23.2.0/23 layer3-on-fabric true connections switch-pair leaf01 interface 1/33 description "Link to NUC ESXI" 9 Configuring a VLAN Tenant Note: Configurations, templates, code, etc havebeen simplified for this presentation.
  • 10. © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com But what about NetBox?
  • 11. © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com© 2018 Cisco and/or its affiliates. All rights reserved. Cisco Public NetBox is our Source of Truth • The Cisco NSO CDB (Configuration Database) drives network state • NetBox drives the CDB
  • 12. © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com Mapping NetBox Data Model to Services VLAN Fabric VLAN Tenant Network Devices and Interfaces VLAN Group Tenant and VRF VLAN & Prefix Devices and Interfaces
  • 13. © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com Mapping NetBox Data Model to Services VLAN FabricVLAN Group nso1# show running-config vlan-fabric vlan-fabric dmz01 vlan-fabric dmz02 vlan-fabric edge vlan-fabric internal
  • 14. © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com Mapping NetBox Data Model to Services VLAN TenantTenant and VRF nso1# show running-config vlan-tenant vlan-tenant admin vlan-tenant admin-private vlan-tenant dmz01 vlan-tenant dmz02 vlan-tenant edge vlan-tenant pod-backdoor vlan-tenant pod1 vlan-tenant pod10 vlan-tenant pod100 vlan-tenant pod101 vlan-tenant pod102
  • 15. © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com Mapping NetBox Data Model to Services NetworkVLAN & Prefix vlan-tenant admin network oobmgmt-transit vlanid 5 network 10.17.251.0/29 network admin-fw-transit vlanid 10 network 10.17.250.0/29 network admin-main vlanid 11 network 10.17.2.0/23 network pod-fw-mgmt vlanid 15 network 10.17.232.0/21
  • 16. © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com Mapping NetBox Data Model to Services Devices and Interfaces Devices and Interfaces vlan-tenant admin network esxi-mgmt connections switch-pair usw1-leaf01 interface 1/3 mode trunk ! interface 1/4 mode trunk ! interface 1/5 mode trunk
  • 17. © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com Generating NSO Configurations from NetBox python nso_tenant_config.py --tenantadmin ✅ Processing Tenant: admin ❌ Skipping Tenant: admin-privatebecauseit was NOTlisted in `tenant` • Python script uses pynetbox to read all tenants, vlan-groups, prefixes, etc • Jinja2 templates used to create both CLI and XML versions of NSO Service Configuration • Generated configurations “load merged” into Cisco NSO <config xmlns="http://tail-f.com/ns/config/1.0"> <vlan-tenant xmlns="http://example.com/vlan-tenant"> <name>admin</name> <fabric>internal</fabric> <network> <name>oobmgmt-transit</name> <vlanid>5</vlanid> <network>10.17.251.0/29</network> <layer3-on-fabric>true</layer3-on-fabric> <build-route-neighbors>true</build-route-neighbors> <connections> <switch-pair> <name>usw1-leaf01</name> <port-channel> <portchannel-id>100</portchannel-id> <description>Routed link to OOB</description> <mode>access</mode> <interface> <interface>1/48</interface> </interface> </port-channel> </switch-pair> </connections>
  • 18. © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com <close-session />
  • 19. © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com • Deeper Dive into Network Service Automationin Sandbox from Cisco Live Europe 2020 • Checkout the NSO Service Code and NetBox Scripts Explore it some more!
  • 20. © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com Got more questions? Stay in touch! hapresto@cisco.com @hfpreston hfpreston (Network to Code) http://github.com/hpreston @CiscoDevNet facebook.com/ciscodevnet/ http://github.com/CiscoDevNet Hank Preston developer.cisco.com
  • 21. © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Twitter: @hfpreston | Email: hapresto@cisco.com https://developer.cisco.com/sandbox