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

Remove unused stuff for cumulus #178

Merged
merged 5 commits into from
Jul 18, 2024
Merged
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
5 changes: 0 additions & 5 deletions inventories/group_vars/partition/metal_core.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
---
metal_core_change_boot_order: false

metal_core_nsqd_ca_cert: "{{ lookup('file', 'certs/ca.pem') }}"
metal_core_nsqd_client_cert: "{{ lookup('file', 'certs/nsq/client.crt') }}"

metal_core_rack_id: test-rack

metal_core_log_level: debug
Expand Down
5 changes: 0 additions & 5 deletions inventories/partition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,3 @@ leaves:
ansible_python_interpreter: /usr/bin/python
ansible_user: root
ansible_ssh_private_key_file: "{{ playbook_dir }}/files/ssh/id_rsa"

cumulus:
vars:
router_enable_static_route_leak: true
sonic:
6 changes: 1 addition & 5 deletions mini-lab.cumulus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,15 @@ topology:
labels:
ansible-group: cumulus
binds:
- apt-transport-https.tar.gz:/root/jessie-apt-transport-fix.tar.gz
- files/ssh/id_rsa.pub:/root/.ssh/authorized_keys

nodes:
mini_lab_ext:
kind: bridge
leaf01:
kind: cvx
binds:
- apt-transport-https.tar.gz:/root/jessie-apt-transport-fix.tar.gz
leaf02:
kind: cvx
binds:
- apt-transport-https.tar.gz:/root/jessie-apt-transport-fix.tar.gz
inet:
kind: linux
image: quay.io/frrouting/frr:10.0.1
Expand Down
5 changes: 0 additions & 5 deletions roles/cumulus/defaults/main.yaml

This file was deleted.

36 changes: 0 additions & 36 deletions roles/cumulus/files/99control_plane_catch_all.rules

This file was deleted.

25 changes: 0 additions & 25 deletions roles/cumulus/handlers/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,6 @@
enabled: true
state: restarted

- name: reload interfaces
shell: sleep 3; ifreload -a
async: 1
poll: 0
notify: wait for new connection

- name: wait for new connection
wait_for_connection:
connect_timeout: 20
sleep: 5
delay: 5
timeout: 300

- name: reload frr
service:
name: frr
enabled: true
state: reloaded

- name: restart frr
service:
name: frr
Expand All @@ -55,9 +36,3 @@
name: lldpd
enabled: true
state: restarted

- name: restart ntp@mgmt
service:
name: ntp@mgmt
enabled: true
state: restarted
30 changes: 0 additions & 30 deletions roles/cumulus/tasks/router.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
- name: configure mgmt vrf
import_tasks: mgmt_vrf.yaml
when: router_enable_mgmt_vrf

- name: configure switch plane
import_tasks: switch_plane.yaml
Expand Down Expand Up @@ -37,25 +36,6 @@
state: restarted
when: ("macaddress" not in lldpd_subtype_check.stdout)

- name: populate service facts
service_facts:

- name: render interfaces configuration
template:
src: interfaces.j2
dest: /etc/network/interfaces
validate: '/sbin/ifup --syntax-check --all --interfaces %s'
notify: reload interfaces
when: "ansible_facts.services['metal-core.service'] is not defined"

- name: render custom interfaces configuration section
copy:
content: "{{ custom_interface_section }}"
dest: /etc/network/interfaces.d/99_custom.intf
validate: '/sbin/ifup --syntax-check --all --interfaces %s'
notify: reload interfaces
when: custom_interface_section is defined

- name: render resolv.conf
template:
src: resolv.conf.j2
Expand All @@ -68,16 +48,6 @@
dest: /etc/frr/daemons
notify: restart frr

- name: render frr configuration
template:
src: frr.conf.j2
dest: /etc/frr/frr.conf
validate: '/usr/bin/vtysh --dryrun --inputfile %s'
tags: frr
register: frr_rendered
notify: reload frr
when: "ansible_facts.services['metal-core.service'] is not defined"

- name: set hostname
nclu:
commands:
Expand Down
1 change: 0 additions & 1 deletion roles/cumulus/tasks/switch_plane.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@
path: /etc/cumulus/switchd.conf
regexp: '#vrf_route_leak_enable = FALSE'
replace: 'vrf_route_leak_enable = TRUE'
when: router_enable_static_route_leak
notify: restart switchd
41 changes: 0 additions & 41 deletions roles/cumulus/templates/frr.conf.j2

This file was deleted.

57 changes: 0 additions & 57 deletions roles/cumulus/templates/interfaces.j2

This file was deleted.