Skip to content
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
6 changes: 3 additions & 3 deletions playbooks/bgp/templates/leaf-frr.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ debug bgp neighbor-events
debug bgp updates
debug bgp update-groups

router bgp 64999
router bgp {{ cifmw_bgp_leaf_asn | default(64999) }}
{% if _router_id %}
bgp router-id {{_router_id}}
{% endif %}
Expand All @@ -27,7 +27,7 @@ router bgp 64999
! bgp long-lived-graceful-restart stale-time 15

neighbor downlink peer-group
neighbor downlink remote-as internal
neighbor downlink remote-as {{ cifmw_bgp_leaf_downlink_remote_as | default('internal') }}
neighbor downlink bfd
neighbor downlink bfd profile tripleo
{# TODO: remove the next if when RHEL-63205 is fixed #}
Expand All @@ -43,7 +43,7 @@ router bgp 64999
{% endfor %}

neighbor uplink peer-group
neighbor uplink remote-as external
neighbor uplink remote-as {{ cifmw_bgp_leaf_uplink_remote_as | default('external') }}
neighbor uplink bfd
neighbor uplink bfd profile tripleo
! neighbor uplink capability extended-nexthop
Expand Down
6 changes: 3 additions & 3 deletions playbooks/bgp/templates/router-frr.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,23 @@ debug bgp neighbor-events
debug bgp updates
debug bgp update-groups

router bgp 65000
router bgp {{ cifmw_bgp_router_asn | default(65000) }}
{% if _router_id %}
bgp router-id {{_router_id}}
{% endif %}
bgp log-neighbor-changes
bgp graceful-shutdown

neighbor downlink peer-group
neighbor downlink remote-as internal
neighbor downlink remote-as {{ cifmw_bgp_router_downlink_remote_as | default('internal') }}
neighbor downlink bfd
! neighbor downlink capability extended-nexthop
{% for iface in router_downlink_ifs %}
neighbor {{iface}} interface peer-group downlink
{% endfor %}

neighbor uplink peer-group
neighbor uplink remote-as external
neighbor uplink remote-as {{ cifmw_bgp_router_uplink_remote_as | default('external') }}
neighbor uplink bfd
! neighbor uplink capability extended-nexthop
neighbor {{router_uplink_if}} interface peer-group uplink
Expand Down
12 changes: 9 additions & 3 deletions playbooks/bgp/templates/spine-frr.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ debug bgp neighbor-events
debug bgp updates
debug bgp update-groups

router bgp 65000
router bgp {{ cifmw_bgp_spine_asn | default(65000) }}
{% if _router_id %}
bgp router-id {{_router_id}}
{% endif %}
bgp log-neighbor-changes
bgp graceful-shutdown

neighbor downlink peer-group
neighbor downlink remote-as external
neighbor downlink remote-as {{ cifmw_bgp_spine_downlink_remote_as | default('external') }}
neighbor downlink bfd
neighbor downlink bfd profile tripleo
! neighbor downlink capability extended-nexthop
Expand All @@ -31,7 +31,7 @@ router bgp 65000

{% if router_bool | default(false) %}
neighbor uplink peer-group
neighbor uplink remote-as internal
neighbor uplink remote-as {{ cifmw_bgp_spine_uplink_remote_as | default('internal') }}
neighbor uplink bfd
neighbor uplink bfd profile tripleo
! neighbor uplink capability extended-nexthop
Expand All @@ -42,6 +42,9 @@ router bgp 65000
redistribute connected
neighbor downlink default-originate
neighbor downlink prefix-list only-host-prefixes in
{% if (cifmw_bgp_spine_downlink_remote_as | default('external')) == 'internal' %}
neighbor downlink route-reflector-client
{% endif %}
{% if router_bool | default(false) %}
neighbor uplink prefix-list only-default-host-prefixes in
neighbor uplink next-hop-self
Expand All @@ -53,6 +56,9 @@ router bgp 65000
neighbor downlink activate
neighbor downlink default-originate
neighbor downlink prefix-list only-host-prefixes in
{% if (cifmw_bgp_spine_downlink_remote_as | default('external')) == 'internal' %}
neighbor downlink route-reflector-client
{% endif %}
{% if router_bool | default(false) %}
neighbor uplink activate
neighbor uplink prefix-list only-default-host-prefixes in
Expand Down
7 changes: 7 additions & 0 deletions roles/ci_gen_kustomize_values/templates/bgp_dt05/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# See the OWNERS docs at https://www.kubernetes.dev/docs/guide/owners/

approvers:
- bgp-team

reviewers:
- bgp-team
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# source: bgp_dt05/edpm-common-nodeset-values/common-bgp-edpm-values.yaml.j2
{% set instances_names = [] %}
{% set rack = 'r' ~ rack_number %}
{% for _inst in cifmw_networking_env_definition.instances.keys() %}
{% if _inst.startswith('-'.join([rack, node_type])) %}
{% set _ = instances_names.append(_inst) %}
{% endif %}
{% endfor %}
data:
ssh_keys:
authorized: {{ cifmw_ci_gen_kustomize_values_ssh_authorizedkeys | b64encode }}
private: {{ cifmw_ci_gen_kustomize_values_ssh_private_key | b64encode }}
public: {{ cifmw_ci_gen_kustomize_values_ssh_public_key | b64encode }}
nova:
migration:
ssh_keys:
private: {{ cifmw_ci_gen_kustomize_values_migration_priv_key | b64encode }}
public: {{ cifmw_ci_gen_kustomize_values_migration_pub_key | b64encode }}
nodeset:
ansible:
ansibleUser: "zuul"
ansibleVars:
edpm_fips_mode: "{{ 'enabled' if cifmw_fips_enabled|default(false)|bool else 'check' }}"
timesync_ntp_servers:
- hostname: "{{ cifmw_ci_gen_kustomize_values_ntp_srv | default('pool.ntp.org') }}"
edpm_sshd_allowed_ranges:
{% set sshd_allowed_range = cifmw_ci_gen_kustomize_values_sshd_ranges | default([]) %}
{% for rack in ['r0', 'r1', 'r2'] %}
{% set _ = sshd_allowed_range.append(cifmw_networking_env_definition.networks['ctlplane' + rack].network_v4) %}
{% endfor %}
{% for range in sshd_allowed_range %}
- "{{ range }}"
{% endfor %}
nodes:
{% for instance in instances_names %}
{{ instance }}:
ansible:
{% set ctlplane_rack = 'ctlplane' + rack %}
ansibleHost: {{ cifmw_networking_env_definition.instances[instance].networks[ctlplane_rack].ip_v4 }}
{% if original_content.data.nodeset.nodes['edpm-' ~ instance].ansible.ansibleVars is defined %}
ansibleVars: {{ original_content.data.nodeset.nodes['edpm-' ~ instance].ansible.ansibleVars }}
{% endif %}
hostName: {{ instance }}
networks:
{% for net in cifmw_networking_env_definition.instances[instance].networks.keys() %}
{% if 'storagemgmt' not in net %}
- name: {{ net if net != ctlplane_rack else 'ctlplane' }}
subnetName: {{ 'subnet1' if net != ctlplane_rack else 'subnet' ~ rack_number }}
{% if 'ctlplane' in net %}
defaultRoute: true
fixedIP: {{ cifmw_networking_env_definition.instances[instance].networks[ctlplane_rack].ip_v4 }}
{% endif %}
{% endif %}
{% endfor %}
{% set peer_suffix = 1 if 'compute' in instance else 5 %}
- name: BgpNet0
subnetName: subnet{{ rack_number }}
fixedIP: 100.64.{{ rack_number }}.{{ peer_suffix + 1 }}
- name: BgpNet1
subnetName: subnet{{ rack_number }}
fixedIP: 100.65.{{ rack_number }}.{{ peer_suffix + 1 }}
- name: BgpMainNet
subnetName: subnet{{ rack_number }}
fixedIP: 99.99.{{ rack_number }}.{{ peer_suffix + 1 }}
- name: BgpMainNetV6
subnetName: subnet{{ rack_number }}
fixedIP: f00d:f00d:f00d:f00d:f00d:f00d:f00d:00{{ (rack_number | int) + 1 }}{{ 2 if 'compute' in instance else 3 }}
{% endfor %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
# source: bgp_dt05/edpm-r0-compute-nodeset-values/values.yaml.j2
{% set node_type = "compute" %}
{% set rack_number = 0 %}
{% include 'templates/bgp_dt05/edpm-common-nodeset-values/common-bgp-edpm-values.yaml.j2' %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
# source: bgp_dt05/edpm-r0-networker-nodeset-values/values.yaml.j2
{% set node_type = "networker" %}
{% set rack_number = 0 %}
{% include 'templates/bgp_dt05/edpm-common-nodeset-values/common-bgp-edpm-values.yaml.j2' %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
# source: bgp_dt05/edpm-r1-compute-nodeset-values/values.yaml.j2
{% set node_type = "compute" %}
{% set rack_number = 1 %}
{% include 'templates/bgp_dt05/edpm-common-nodeset-values/common-bgp-edpm-values.yaml.j2' %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
# source: bgp_dt05/edpm-r1-networker-nodeset-values/values.yaml.j2
{% set node_type = "networker" %}
{% set rack_number = 1 %}
{% include 'templates/bgp_dt05/edpm-common-nodeset-values/common-bgp-edpm-values.yaml.j2' %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
# source: bgp_dt05/edpm-r2-compute-nodeset-values/values.yaml.j2
{% set node_type = "compute" %}
{% set rack_number = 2 %}
{% include 'templates/bgp_dt05/edpm-common-nodeset-values/common-bgp-edpm-values.yaml.j2' %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
# source: bgp_dt05/edpm-r2-networker-nodeset-values/values.yaml.j2
{% set node_type = "networker" %}
{% set rack_number = 2 %}
{% include 'templates/bgp_dt05/edpm-common-nodeset-values/common-bgp-edpm-values.yaml.j2' %}
Loading
Loading