Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bring up t0 (celestica Seastone-DX010) #23

Draft
wants to merge 8 commits into
base: 202205_hedgehog_dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ansible/TestbedProcessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ def makeMain(data, outfile):
toWrite.write( "supported_vm_types: [ 'veos', 'ceos', 'vsonic' ]\n" ),
yaml.dump(dictData, stream=toWrite, default_flow_style=False)
toWrite.write("# proxy\n")
# todo(adovhan) potential code for removing, we don't use proxy
yaml.dump(proxy, stream=toWrite, default_flow_style=False)


Expand Down
4 changes: 2 additions & 2 deletions ansible/fanout_connect.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
server: "{{ inventory_hostname|lower }}"
server_port: "{{ external_port }}"

- set_fact: root_fanout_connect=true
- set_fact: root_fanout_connect=false
when: root_fanout_connect is not defined

- debug: msg="Connect {{ server }}:{{ server_port }} to {{ dut }}"
Expand All @@ -27,7 +27,7 @@
- set_fact: userid={{ calling_username.stdout }}

- set_fact: connect_leaf=false

# todo(adovhan) potential code to remove, use static config for fanout
- include_tasks: roles/fanout/tasks/rootfanout_connect.yml
when: root_fanout_connect|bool == true

Expand Down
169 changes: 84 additions & 85 deletions ansible/files/lab_connection_graph.xml

Large diffs are not rendered by default.

22 changes: 15 additions & 7 deletions ansible/files/sonic_lab_devices.csv
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
Hostname,ManagementIp,HwSku,Type,Protocol
dev-msn2700-01,10.251.0.188/23,Mellanox-2700,DevSonic,
dev-7260-10,10.251.0.13/23,Arista-7260QX-64,FanoutLeaf,
dev-7260-11,10.251.0.234/23,Arista-7260QX-64,FanoutRoot,
dev-acs-serv-01,10.251.0.245/23,TestServ,Server,
pdu-1,192.168.9.2,Apc,Pdu,snmp
pdu-2,192.168.9.3,Sentry,Pdu,snmp
console-1,192.168.10.1,Cisco,ConsoleServer,ssh
dut_cls_dx010-01,10.10.1.65/22,Seastone-DX010,DevSonic,
fnt_csc_c3132q-01,10.10.0.21/22,cisco-Nexus3000-C3132Q,FanoutLeaf,
str-acs-serv-01,10.250.7.44/16,TestServ,Server,
# dev-msn2700-01,10.251.0.188/23,Mellanox-2700,DevSonic,
# dev-7260-10,10.251.0.13/23,Arista-7260QX-64,FanoutLeaf,
# dev-7260-11,10.251.0.234/23,Arista-7260QX-64,FanoutRoot,
# dev-acs-serv-01,10.251.0.245/23,TestServ,Server,
# pdu-1,192.168.9.2,Apc,Pdu,snmp
# pdu-2,192.168.9.3,Sentry,Pdu,snmp
# console-1,192.168.10.1,Cisco,ConsoleServer,ssh

# todo(adovhan) remove
# hostname_dut -> dut_cls_dx010-01
# C3132Q-1 -> fnt_csc_c3132q-01
# hostname_testbed -> srv-dll-<model>-01 -> str-acs-serv-01
67 changes: 33 additions & 34 deletions ansible/files/sonic_lab_links.csv
Original file line number Diff line number Diff line change
@@ -1,35 +1,34 @@
StartDevice,StartPort,EndDevice,EndPort,BandWidth,VlanID,VlanMode
dev-msn2700-01,Ethernet0,dev-7260-10,Ethernet1,40000,1681,Access
dev-msn2700-01,Ethernet4,dev-7260-10,Ethernet2,40000,1682,Access
dev-msn2700-01,Ethernet8,dev-7260-10,Ethernet3,40000,1683,Access
dev-msn2700-01,Ethernet12,dev-7260-10,Ethernet4,40000,1684,Access
dev-msn2700-01,Ethernet16,dev-7260-10,Ethernet5,40000,1685,Access
dev-msn2700-01,Ethernet20,dev-7260-10,Ethernet6,40000,1686,Access
dev-msn2700-01,Ethernet24,dev-7260-10,Ethernet7,40000,1687,Access
dev-msn2700-01,Ethernet28,dev-7260-10,Ethernet8,40000,1688,Access
dev-msn2700-01,Ethernet32,dev-7260-10,Ethernet9,40000,1689,Access
dev-msn2700-01,Ethernet36,dev-7260-10,Ethernet10,40000,1690,Access
dev-msn2700-01,Ethernet40,dev-7260-10,Ethernet11,40000,1691,Access
dev-msn2700-01,Ethernet44,dev-7260-10,Ethernet12,40000,1692,Access
dev-msn2700-01,Ethernet48,dev-7260-10,Ethernet13,40000,1693,Access
dev-msn2700-01,Ethernet52,dev-7260-10,Ethernet14,40000,1694,Access
dev-msn2700-01,Ethernet56,dev-7260-10,Ethernet15,40000,1695,Access
dev-msn2700-01,Ethernet60,dev-7260-10,Ethernet16,40000,1696,Access
dev-msn2700-01,Ethernet64,dev-7260-10,Ethernet17,40000,1697,Access
dev-msn2700-01,Ethernet68,dev-7260-10,Ethernet18,40000,1698,Access
dev-msn2700-01,Ethernet72,dev-7260-10,Ethernet19,40000,1699,Access
dev-msn2700-01,Ethernet76,dev-7260-10,Ethernet20,40000,1700,Access
dev-msn2700-01,Ethernet80,dev-7260-10,Ethernet21,40000,1701,Access
dev-msn2700-01,Ethernet84,dev-7260-10,Ethernet22,40000,1702,Access
dev-msn2700-01,Ethernet88,dev-7260-10,Ethernet23,40000,1703,Access
dev-msn2700-01,Ethernet92,dev-7260-10,Ethernet24,40000,1704,Access
dev-msn2700-01,Ethernet96,dev-7260-10,Ethernet25,40000,1705,Access
dev-msn2700-01,Ethernet100,dev-7260-10,Ethernet26,40000,1706,Access
dev-msn2700-01,Ethernet104,dev-7260-10,Ethernet27,40000,1707,Access
dev-msn2700-01,Ethernet108,dev-7260-10,Ethernet28,40000,1708,Access
dev-msn2700-01,Ethernet112,dev-7260-10,Ethernet29,40000,1709,Access
dev-msn2700-01,Ethernet116,dev-7260-10,Ethernet30,40000,1710,Access
dev-msn2700-01,Ethernet120,dev-7260-10,Ethernet31,40000,1711,Access
dev-msn2700-01,Ethernet124,dev-7260-10,Ethernet32,40000,1712,Access
dev-7260-11,Ethernet19,dev-acs-serv-01,p4p1,40000,,Trunk
dev-7260-11,Ethernet30,dev-7260-10,Ethernet64,40000,1681-1712,Trunk
dut_cls_dx010-01,Ethernet4,fnt_csc_c3132q-01,Ethernet1/2/1,10000,1681,Access
dut_cls_dx010-01,Ethernet5,fnt_csc_c3132q-01,Ethernet1/2/2,10000,1682,Access
dut_cls_dx010-01,Ethernet6,fnt_csc_c3132q-01,Ethernet1/2/3,10000,1683,Access
dut_cls_dx010-01,Ethernet7,fnt_csc_c3132q-01,Ethernet1/2/4,10000,1684,Access
dut_cls_dx010-01,Ethernet8,fnt_csc_c3132q-01,Ethernet1/3/1,10000,1685,Access
dut_cls_dx010-01,Ethernet9,fnt_csc_c3132q-01,Ethernet1/3/2,10000,1686,Access
dut_cls_dx010-01,Ethernet10,fnt_csc_c3132q-01,Ethernet1/3/3,10000,1687,Access
dut_cls_dx010-01,Ethernet11,fnt_csc_c3132q-01,Ethernet1/3/4,10000,1688,Access
dut_cls_dx010-01,Ethernet12,fnt_csc_c3132q-01,Ethernet1/4/1,10000,1689,Access
dut_cls_dx010-01,Ethernet13,fnt_csc_c3132q-01,Ethernet1/4/2,10000,1690,Access
dut_cls_dx010-01,Ethernet14,fnt_csc_c3132q-01,Ethernet1/4/3,10000,1691,Access
dut_cls_dx010-01,Ethernet15,fnt_csc_c3132q-01,Ethernet1/4/4,10000,1692,Access
dut_cls_dx010-01,Ethernet16,fnt_csc_c3132q-01,Ethernet1/5,40000,1693,Access
dut_cls_dx010-01,Ethernet20,fnt_csc_c3132q-01,Ethernet1/6,40000,1694,Access
dut_cls_dx010-01,Ethernet24,fnt_csc_c3132q-01,Ethernet1/7,40000,1695,Access
dut_cls_dx010-01,Ethernet28,fnt_csc_c3132q-01,Ethernet1/8,40000,1696,Access
dut_cls_dx010-01,Ethernet32,fnt_csc_c3132q-01,Ethernet1/9,40000,1697,Access
dut_cls_dx010-01,Ethernet36,fnt_csc_c3132q-01,Ethernet1/10,40000,1698,Access
dut_cls_dx010-01,Ethernet40,fnt_csc_c3132q-01,Ethernet1/11,40000,1699,Access
dut_cls_dx010-01,Ethernet44,fnt_csc_c3132q-01,Ethernet1/12,40000,1700,Access
dut_cls_dx010-01,Ethernet48,fnt_csc_c3132q-01,Ethernet1/13,40000,1701,Access
dut_cls_dx010-01,Ethernet52,fnt_csc_c3132q-01,Ethernet1/14,40000,1702,Access
dut_cls_dx010-01,Ethernet56,fnt_csc_c3132q-01,Ethernet1/15,40000,1703,Access
dut_cls_dx010-01,Ethernet60,fnt_csc_c3132q-01,Ethernet1/16,40000,1704,Access
dut_cls_dx010-01,Ethernet64,fnt_csc_c3132q-01,Ethernet1/17,40000,1705,Access
dut_cls_dx010-01,Ethernet68,fnt_csc_c3132q-01,Ethernet1/18,40000,1706,Access
dut_cls_dx010-01,Ethernet72,fnt_csc_c3132q-01,Ethernet1/19,40000,1707,Access
dut_cls_dx010-01,Ethernet76,fnt_csc_c3132q-01,Ethernet1/20,40000,1708,Access
dut_cls_dx010-01,Ethernet80,fnt_csc_c3132q-01,Ethernet1/21,40000,1709,Access
dut_cls_dx010-01,Ethernet84,fnt_csc_c3132q-01,Ethernet1/22,40000,1710,Access
dut_cls_dx010-01,Ethernet88,fnt_csc_c3132q-01,Ethernet1/23,40000,1711,Access
dut_cls_dx010-01,Ethernet92,fnt_csc_c3132q-01,Ethernet1/24,40000,1712,Access
fnt_csc_c3132q-01,Ethernet1/1,str-acs-serv-01,esnp???,40000,1681-1712,Trunk # Ethernet1/1?
1 change: 1 addition & 0 deletions ansible/group_vars/all/creds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ cisco_password: ""


sonic_login: "admin"
# todo(adovhan) update creds sonic default
sonic_default_passwords:
- "YourPaSsWoRd"
- "password"
Expand Down
3 changes: 3 additions & 0 deletions ansible/group_vars/eos/creds.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
ansible_password: 123456
ansible_user: root
2 changes: 1 addition & 1 deletion ansible/group_vars/fanout/secrets.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Please update the actual username and password according to your lab configuration

# todo(adovhan) update creds fanout
ansible_ssh_user: user
ansible_ssh_pass: password
fanout_mlnx_user: admin
Expand Down
1 change: 1 addition & 0 deletions ansible/group_vars/lab/secrets.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ansible_ssh_pass: password
ansible_become_pass: password
# todo(adovhan) update creds sonic user
sonicadmin_user: admin
sonicadmin_password: password
sonicadmin_initial_password: password
Expand Down
13 changes: 8 additions & 5 deletions ansible/group_vars/vm_host/creds.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
---
ansible_user: use_own_value
ansible_password: use_own_value
ansible_become_password: use_own_value
# ansible_user: use_own_value
# ansible_password: use_own_value
# ansible_become_password: use_own_value
ansible_user: hedgehog
ansible_password: hedgehog
ansible_become_password: hedgehog

# Use the following username/password variables to login to vm hosts
# instead of the default variables (defined above).
vm_host_user: hedgehog
vm_host_password: githedgehog
vm_host_become_password: githedgehog
vm_host_password: hedgehog
vm_host_become_password: hedgehog
9 changes: 9 additions & 0 deletions ansible/host_vars/HOSTAME_SERV-01.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# todo(adovhan) rename once hostame is set on testbed
#probably it should be str-acs-serv-01
mgmt_bridge: br1
mgmt_prefixlen: 23
mgmt_gw: 10.255.0.1
mgmt_gw_v6: fec0::1
vm_mgmt_gw: 10.254.0.1
external_port: p4p1

8 changes: 4 additions & 4 deletions ansible/host_vars/STR-ACS-SERV-01.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
mgmt_bridge: br1
mgmt_prefixlen: 23
mgmt_gw: 10.255.0.1
mgmt_prefixlen: 16
mgmt_gw: 10.250.7.44
mgmt_gw_v6: fec0::1
vm_mgmt_gw: 10.254.0.1
external_port: p4p1
#vm_mgmt_gw: 10.254.0.1
external_port: eno2

Loading