Skip to content

Commit

Permalink
reading devices from file
Browse files Browse the repository at this point in the history
  • Loading branch information
sugetha24 committed Sep 20, 2024
1 parent a5403d8 commit 3be537b
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
---
- name: Cleanup - Configuration deployment with CVP
hosts: localhost
hosts: SITE1_FABRIC
connection: local
gather_facts: false
vars:
cv_server: www.cv-staging.corp.arista.io
cv_token: "{{ lookup('env', 'CVAAS_AAWG_CI') }}"
cv_verify_certs: false
cv_devices: [ avd-ci-leaf1, avd-ci-leaf2, avd-ci-leaf3, avd-ci-leaf4, avd-ci-spine1, avd-ci-spine2, avd-ci-core1 ]
cv_skip_missing_devices: true
eos_config_dir: "{{ playbook_dir }}/intended/configs/base_configs"
structured_dir: "{{ playbook_dir }}/intended/structured_configs/base_configs"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
---
- name: Converge - Configuration deployment with CVP
hosts: localhost
hosts: SITE1_FABRIC
connection: local
gather_facts: false
vars:
cv_server: www.cv-staging.corp.arista.io
cv_token: "{{ lookup('env', 'CVAAS_AAWG_CI') }}"
cv_verify_certs: false
cv_devices: [ avd-ci-leaf1, avd-ci-leaf2, avd-ci-leaf3, avd-ci-leaf4, avd-ci-spine1, avd-ci-spine2, avd-ci-core1 ]
cv_skip_missing_devices: true
eos_config_dir: "{{ playbook_dir }}/intended/configs/test_configs"
structured_dir: "{{ playbook_dir }}/intended/structured_configs/test_configs"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
! Command: show running-config
! device: avd-ci-core1 (vEOS-lab, EOS-4.32.0F)
!
! boot system flash:/vEOS-lab.swi
!
no aaa root
!
username arista privilege 15 role network-admin shell /bin/bash secret sha512 $6$OSN5th7Q.Zy1QRhW$8HY40ylC/h2J/0jvlx46IbEeRGJSxNyUZR9BS1XHdelKmDilESlLnSefscDczRzi/f9PHUVdXXPsQUsXerJbu.
username ci-avd privilege 15 role network-admin secret sha512 $6$tzBIHQDpZ.10NDxw$y7G0mA5usuiew0nx1HKNe3E1HpiRSZtKd9gS2XhUx9vsa59.E0qLYyzUtwzore34t8cfnFGlvYmf6OH157X6w.
username cvpadmin privilege 15 role network-admin secret sha512 $6$3gTtM9zyRVpL6w7v$5nbd38Y7ZU0ZWty/ycn82iiC4ikX79hdopKWLusZaaFgr0spRqewcRBLKuY5qUaPdgg9h8CZjC4pFqLeQ5GRI1
!
daemon TerminAttr
exec /usr/bin/TerminAttr -cvaddr=apiserver.cv-staging.corp.arista.io:443 -cvauth=token-secure,/mnt/flash/cv-onboarding-token -cvvrf=MGMT -smashexcludes=ale,flexCounter,hardware,kni,pulse,strata -ingestexclude=/Sysdb/cell/1/agent,/Sysdb/cell/2/agent -taillogs
no shutdown
!
transceiver qsfp default-mode 4x10G
!
service routing protocols model multi-agent
!
hostname avd-ci-core1
ip name-server vrf MGMT 10.90.231.26
!
spanning-tree mode none
!
system l1
unsupported speed action error
unsupported error-correction action error
!
vrf instance MGMT
!
management api http-commands
no shutdown
!
vrf MGMT
no shutdown
!
aaa authentication login console local
aaa authorization exec default local
!
interface Ethernet1
!
interface Ethernet2
!
interface Ethernet3
!
interface Ethernet4
!
interface Ethernet5
!
interface Ethernet6
!
interface Ethernet7
!
interface Ethernet8
!
interface Management1
description oob_management
vrf MGMT
ip address 10.90.231.70/24
!
no ip routing
no ip routing vrf MGMT
!
ip route vrf MGMT 0.0.0.0/0 10.90.231.1
!
ntp server 1.pool.ntp.org iburst local-interface Management1
!
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
hostname: avd-ci-core1
is_deployed: true
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ SITE1:
children:
SITE1_SPINES:
hosts:
s1-spine1:
s1-spine2:
avd-ci-spine1:
avd-ci-spine2:
avd-ci-core1:
SITE1_LEAFS:
hosts:
s1-leaf1:
s1-leaf2:
s1-leaf3:
s1-leaf4:
avd-ci-leaf1:
avd-ci-leaf2:
avd-ci-leaf3:
avd-ci-leaf4:
SITE1_FABRIC_SERVICES:
children:
SITE1_SPINES:
Expand Down

0 comments on commit 3be537b

Please sign in to comment.