Skip to content

Commit

Permalink
Migrate CSR 1000v module support into device features
Browse files Browse the repository at this point in the history
  • Loading branch information
ipspace committed Jul 4, 2023
1 parent 3f47d2e commit 9f2dd0b
Show file tree
Hide file tree
Showing 12 changed files with 35 additions and 29 deletions.
42 changes: 24 additions & 18 deletions netsim/devices/csr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,33 +16,39 @@ group_vars:
node:
min_mtu: 1500
features:
bgp:
local_as: True
vrf_local_as: True
local_as_ibgp: True
activate_af: True
initial:
ipv4:
unnumbered: True
unnumbered: true
ipv6:
lla: True
ospf:
unnumbered: True
lla: true
bfd: true
bgp:
activate_af: true
local_as: true
local_as_ibgp: true
vrf_local_as: true
eigrp: true
gateway:
protocol:
- vrrp
isis:
unnumbered:
ipv4: True
ipv6: True
network: True
ipv4: true
ipv6: true
network: true
mpls:
ldp: True
bgp: True
vpn: True
6pe: True
6pe: true
bgp: true
ldp: true
vpn: true
ospf:
unnumbered: true
sr: true
vlan:
model: switch
svi_interface_name: BDI{vlan}
gateway:
protocol: [ vrrp ]
vrf: true
vxlan: true
libvirt:
image: cisco/csr1000v
create:
Expand Down
2 changes: 1 addition & 1 deletion netsim/modules/bfd.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# BFD (RFC 5880) default settings and attributes
#
supported_on: [ srlinux, sros, iosv, csr, nxos, eos, vyos, arubacx, none ]
supported_on: [ srlinux, sros, nxos, eos, vyos, arubacx, none ]
min_echo_rx: 0 # Echo function, 0=disabled by default
multiplier: 3 # Detection time multiplier, number of packets lost before down
attributes:
Expand Down
2 changes: 1 addition & 1 deletion netsim/modules/bgp.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# BGP default settings and attributes
#
supported_on: [ cumulus, cumulus_nvue, eos, frr, csr, nxos, asav, vsrx, vyos, routeros,
supported_on: [ cumulus, cumulus_nvue, eos, frr, nxos, asav, vsrx, vyos, routeros,
srlinux, sros, none, dellos10, routeros7, vmx, iosxr, arubacx, vptx, none ]
ebgp_role: external
advertise_roles: [ stub ]
Expand Down
2 changes: 1 addition & 1 deletion netsim/modules/eigrp.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# EIGRP default settings and attributes
#
supported_on: [ csr, nxos, none ]
supported_on: [ nxos, none ]
transform_after: [ vlan,vrf ]
config_after: [ vlan ]
as: 1
Expand Down
2 changes: 1 addition & 1 deletion netsim/modules/gateway.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Gateway (FHRP) default settings and attributes
#
supported_on: [ none, eos, cumulus, csr, nxos, sros, srlinux, vyos, dellos10, arubacx ]
supported_on: [ none, eos, cumulus, nxos, sros, srlinux, vyos, dellos10, arubacx ]
transform_after: [ vlan, vrf, ospf, isis, eigrp ]
config_after: [ vlan,vrf ]
id: -2
Expand Down
2 changes: 1 addition & 1 deletion netsim/modules/isis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ISIS default settings and attributes
#
supported_on: [ eos, frr, csr, nxos, asav, vsrx, srlinux, sros, vyos, vmx, iosxr, vptx, none ]
supported_on: [ eos, frr, nxos, asav, vsrx, srlinux, sros, vyos, vmx, iosxr, vptx, none ]
area: "49.0001"
type: level-2
transform_after: [ vlan,vrf ]
Expand Down
2 changes: 1 addition & 1 deletion netsim/modules/mpls.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MPLS (LDP, BGP LU, L3VPN, 6PE) default settings and attributes
#
supported_on: [ eos, csr, routeros, vyos, routeros7, sros, vmx, vsrx, frr, none, vptx, arubacx ]
supported_on: [ eos, routeros, vyos, routeros7, sros, vmx, vsrx, frr, none, vptx, arubacx ]
config_after: [ vlan, ospf, isis, bgp ]
transform_after: [ vlan, bgp ]
ldp: True
Expand Down
2 changes: 1 addition & 1 deletion netsim/modules/ospf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
area: 0.0.0.0
supported_on: [
arcos, cumulus, cumulus_nvue, eos, fortios, frr, csr, nxos, vsrx, vyos, routeros,
arcos, cumulus, cumulus_nvue, eos, fortios, frr, nxos, vsrx, vyos, routeros,
srlinux, sros, dellos10, routeros7, vmx, iosxr, arubacx, vptx, none ]
transform_after: [ vlan,vrf ]
config_after: [ vlan ]
Expand Down
2 changes: 1 addition & 1 deletion netsim/modules/sr.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SR-MPLS default settings and attributes
#
requires: [ isis ]
supported_on: [ csr, eos, srlinux, sros, vsrx, vmx, vptx, none ]
supported_on: [ eos, srlinux, sros, vsrx, vmx, vptx, none ]
transform_after: [ vlan ]
attributes:
global:
Expand Down
2 changes: 1 addition & 1 deletion netsim/modules/vlan.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# VLAN default settings and attributes
#
supported_on: [ eos, csr, vyos, dellos10, srlinux, none, routeros, nxos, frr, cumulus, sros, routeros7, vmx, vsrx, arubacx, vptx, none ]
supported_on: [ eos, vyos, dellos10, srlinux, none, routeros, nxos, frr, cumulus, sros, routeros7, vmx, vsrx, arubacx, vptx, none ]
no_propagate: [ start_vlan_id, mode ]
start_vlan_id: 1000
mode: irb
Expand Down
2 changes: 1 addition & 1 deletion netsim/modules/vrf.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# VRF default settings and attributes
#
supported_on: [ eos, iosv, csr, routeros, dellos10, vyos, cumulus_nvue, nxos, srlinux, frr, cumulus, sros, routeros7, vmx, vsrx, arubacx, vptx, none ]
supported_on: [ eos, routeros, dellos10, vyos, cumulus_nvue, nxos, srlinux, frr, cumulus, sros, routeros7, vmx, vsrx, arubacx, vptx, none ]
config_after: [ vlan, ospf, isis, bgp, mpls ]
transform_after: [ vlan, bgp ]
as: 65000
Expand Down
2 changes: 1 addition & 1 deletion netsim/modules/vxlan.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# VXLAN default settings and attributes
#
supported_on: [ eos, nxos, vyos, csr, dellos10, srlinux, frr, cumulus, sros, arubacx, vptx, none ]
supported_on: [ eos, nxos, vyos, dellos10, srlinux, frr, cumulus, sros, arubacx, vptx, none ]
requires: [ vlan ]
config_after: [ vrf ] # For platforms that suppport L3 VXLAN, vrfs must be created first
transform_after: [ vlan, vrf ]
Expand Down

0 comments on commit 9f2dd0b

Please sign in to comment.