Skip to content

Commit

Permalink
Test(eos_designs): Create eos_designs deprecated vars molecule unit t…
Browse files Browse the repository at this point in the history
…est (#3076)

Co-authored-by: Shivani-chourasiya <[email protected]>
  • Loading branch information
Vibhu-gslab and Shivani-gslab authored Aug 29, 2023
1 parent bee77de commit 134406c
Show file tree
Hide file tree
Showing 21 changed files with 429 additions and 90 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,28 +1,34 @@
!RANCID-CONTENT-TYPE: arista
!
daemon TerminAttr
exec /usr/bin/TerminAttr -cvaddr=192.168.200.12:9910,192.168.200.13:9910,192.168.200.11:9910 -cvauth=token,/tmp/token -cvvrf=MGMT -smashexcludes=ale,flexCounter,hardware,kni,pulse,strata -ingestexclude=/Sysdb/cell/1/agent,/Sysdb/cell/2/agent -taillogs
no shutdown
!
vlan internal order ascending range 1006 1199
!
transceiver qsfp default-mode 4x10G
!
service routing protocols model multi-agent
!
hostname port-channel-short-esi
hostname host1
!
no enable password
no aaa root
!
vrf instance MGMT
!
interface Port-Channel10
interface Port-Channel12
description server01_ESI_PortChanne1
no shutdown
switchport
switchport trunk allowed vlan 110-111,210-211
switchport mode trunk
evpn ethernet-segment
identifier 0000:0000:0303:0202:0101
route-target import 03:03:02:02:01:01
lacp system-id 0303.0202.0101
!
interface Port-Channel12
interface Port-Channel13
description server01_ESI_PortChanne1
no shutdown
mtu 1601
Expand All @@ -33,15 +39,20 @@ interface Port-Channel12
lacp system-id 0303.0202.0102
!
interface Ethernet10
description server01_ESI_Eth1
description ROUTER01_Eth1
no shutdown
channel-group 10 mode active
switchport
!
interface Ethernet12
description server01_ESI_Eth6
description server01_ESI_Eth1
no shutdown
channel-group 12 mode active
!
interface Ethernet13
description server01_ESI_Eth6
no shutdown
channel-group 13 mode active
!
interface Loopback0
description EVPN_Overlay_Peering
no shutdown
Expand All @@ -53,7 +64,7 @@ interface Loopback1
ip address 192.168.254.101/32
!
interface Vxlan1
description port-channel-short-esi_VTEP
description host1_VTEP
vxlan source-interface Loopback1
vxlan udp-port 4789
!
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
!RANCID-CONTENT-TYPE: arista
!
vlan internal order ascending range 1006 1199
!
transceiver qsfp default-mode 4x10G
!
service routing protocols model multi-agent
!
hostname host2
!
no enable password
no aaa root
!
vlan 111
name Tenant_A_OP_Zone_2
!
vlan 160
name Tenant_A_VMOTION
!
vrf instance MGMT
!
vrf instance TENANT_B_WAN
!
interface Loopback0
description MPLS_Overlay_peering
no shutdown
ip address 10.42.0.102/32
!
interface Vlan111
description Tenant_A_OP_Zone_2
no shutdown
vrf TENANT_B_WAN
ip helper-address 1.1.1.1 vrf MGMT source-interface lo100
!
ip routing
no ip routing vrf MGMT
ip routing vrf TENANT_B_WAN
!
ip prefix-list PL-LOOPBACKS-EVPN-OVERLAY
seq 10 permit 10.42.0.0/24 eq 32
!
route-map RM-CONN-2-BGP permit 10
match ip address prefix-list PL-LOOPBACKS-EVPN-OVERLAY
!
router bfd
multihop interval 300 min-rx 300 multiplier 3
!
router bgp 102
router-id 10.42.0.102
maximum-paths 4 ecmp 4
update wait-install
no bgp default ipv4-unicast
neighbor IPv4-UNDERLAY-PEERS peer group
neighbor IPv4-UNDERLAY-PEERS send-community
neighbor IPv4-UNDERLAY-PEERS maximum-routes 12000
neighbor MPLS-OVERLAY-PEERS peer group
neighbor MPLS-OVERLAY-PEERS remote-as 102
neighbor MPLS-OVERLAY-PEERS update-source Loopback0
neighbor MPLS-OVERLAY-PEERS bfd
neighbor MPLS-OVERLAY-PEERS send-community
neighbor MPLS-OVERLAY-PEERS maximum-routes 0
redistribute connected route-map RM-CONN-2-BGP
!
address-family evpn
neighbor default encapsulation mpls
neighbor MPLS-OVERLAY-PEERS activate
!
address-family ipv4
neighbor IPv4-UNDERLAY-PEERS activate
no neighbor MPLS-OVERLAY-PEERS activate
!
management api http-commands
protocol https
no shutdown
!
vrf MGMT
no shutdown
!
end

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
hostname: port-channel-short-esi
hostname: host1
router_bgp:
as: '101'
router_id: 192.168.255.101
Expand Down Expand Up @@ -37,6 +37,18 @@ router_bgp:
activate: true
service_routing_protocols_model: multi-agent
ip_routing: true
daemon_terminattr:
cvaddrs:
- 192.168.200.12:9910
- 192.168.200.13:9910
- 192.168.200.11:9910
cvauth:
method: token
token_file: /tmp/token
cvvrf: MGMT
smashexcludes: ale,flexCounter,hardware,kni,pulse,strata
ingestexclude: /Sysdb/cell/1/agent,/Sysdb/cell/2/agent
disable_aaa: false
vlan_internal_order:
allocation: ascending
range:
Expand Down Expand Up @@ -81,12 +93,12 @@ ip_igmp_snooping:
globally_enabled: true
vxlan_interface:
Vxlan1:
description: port-channel-short-esi_VTEP
description: host1_VTEP
vxlan:
udp_port: 4789
source_interface: Loopback1
ethernet_interfaces:
- name: Ethernet10
- name: Ethernet12
peer: server01_ESI
peer_interface: Eth1
peer_type: server
Expand All @@ -95,28 +107,38 @@ ethernet_interfaces:
shutdown: false
type: port-channel-member
channel_group:
id: 10
id: 12
mode: active
- name: Ethernet12
- name: Ethernet13
peer: server01_ESI
peer_interface: Eth6
peer_type: server
description: server01_ESI_Eth6
shutdown: false
type: port-channel-member
channel_group:
id: 12
id: 13
mode: active
- name: Ethernet10
peer: ROUTER01
peer_interface: Eth1
peer_type: router
port_profile: Tenant_X_LT
description: ROUTER01_Eth1
shutdown: false
type: switched
port_channel_interfaces:
- name: Port-Channel10
- name: Port-Channel12
description: server01_ESI_PortChanne1
type: switched
shutdown: false
mode: trunk
vlans: 110-111,210-211
evpn_ethernet_segment:
identifier: 0000:0000:0303:0202:0101
route_target: 03:03:02:02:01:01
lacp_id: 0303.0202.0101
- name: Port-Channel12
- name: Port-Channel13
description: server01_ESI_PortChanne1
type: switched
shutdown: false
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
hostname: host2
router_bgp:
as: '102'
router_id: 10.42.0.102
bgp:
default:
ipv4_unicast: false
maximum_paths:
paths: 4
ecmp: 4
updates:
wait_install: true
peer_groups:
- name: IPv4-UNDERLAY-PEERS
type: ipv4
maximum_routes: 12000
send_community: all
- name: MPLS-OVERLAY-PEERS
type: mpls
update_source: Loopback0
bfd: true
send_community: all
maximum_routes: 0
remote_as: '102'
address_family_ipv4:
peer_groups:
- name: IPv4-UNDERLAY-PEERS
activate: true
- name: MPLS-OVERLAY-PEERS
activate: false
redistribute_routes:
- source_protocol: connected
route_map: RM-CONN-2-BGP
address_family_evpn:
neighbor_default:
encapsulation: mpls
peer_groups:
- name: MPLS-OVERLAY-PEERS
activate: true
service_routing_protocols_model: multi-agent
ip_routing: true
vlan_internal_order:
allocation: ascending
range:
beginning: 1006
ending: 1199
vrfs:
- name: MGMT
ip_routing: false
- name: TENANT_B_WAN
tenant: TENANT_B
ip_routing: true
management_api_http:
enable_vrfs:
- name: MGMT
enable_https: true
loopback_interfaces:
- name: Loopback0
description: MPLS_Overlay_peering
shutdown: false
ip_address: 10.42.0.102/32
prefix_lists:
- name: PL-LOOPBACKS-EVPN-OVERLAY
sequence_numbers:
- sequence: 10
action: permit 10.42.0.0/24 eq 32
route_maps:
- name: RM-CONN-2-BGP
sequence_numbers:
- sequence: 10
type: permit
match:
- ip address prefix-list PL-LOOPBACKS-EVPN-OVERLAY
router_bfd:
multihop:
interval: 300
min_rx: 300
multiplier: 3
vlans:
- id: 111
name: Tenant_A_OP_Zone_2
tenant: TENANT_B
- id: 160
name: Tenant_A_VMOTION
tenant: TENANT_B
ip_igmp_snooping:
globally_enabled: true
vlan_interfaces:
- name: Vlan111
tenant: TENANT_B
tags:
- opzone
description: Tenant_A_OP_Zone_2
shutdown: false
vrf: TENANT_B_WAN
ip_helpers:
- ip_helper: 1.1.1.1
source_interface: lo100
vrf: MGMT

This file was deleted.

Loading

0 comments on commit 134406c

Please sign in to comment.