Initial commit of AthonetTools

This commit is contained in:
2025-08-21 12:59:43 +00:00
commit cd932b8fcb
2483 changed files with 433999 additions and 0 deletions

View File

@@ -0,0 +1,68 @@
# 3GPP core identifiers / names
mcc: "{{ mcc }}"
mnc: "{{ mnc }}"
full_network_name: "{{ network_name }}"
short_network_name: "{{ network_name | replace(' ', '-') }}"
# AMF / GUAMI
amf_name: "{{ amf_name | default('amf01.5gc.3gppnetwork.org') }}"
guami:
region: "{{ guami_region | default('02') }}"
set: "{{ guami_set | default('003') }}"
pointer: "{{ guami_pointer | default('000001') }}"
# MME (for 4G interop / S1)
mme_name: "{{ mme_name | default('mme1') }}"
mmegi: "{{ mmegi | default('0001') }}"
mmec: "{{ mmec | default('01') }}"
mme_cname: "{{ mme_cname | default('gw01.nodes') }}"
# DNS info
epc_dns_zone_data:
# Additional PLMNs to handle
plmns:
- { mcc: '999', mnc: '99' }
- { mcc: '001', mnc: '01' }
- { mcc: '{{ mcc }}', mnc: '{{ mnc }}' }
# SBI configuration
sbi:
interface: lo
base_address: 127.0.1.1/24
# Transports configuration
_ngc_ext_aio_transport:
# AIO local transports
- action: set_local_transports
params: {}
# RAN transports (use RAN IP)
- action: override_amf_n2_transport
params: { address: {{ ran.ip }}, vrf: RAN }
- action: override_mme_transport
params: { s1_address: {{ ran.ip }}, s1_vrf: RAN }
# UPF transports (N3 on RAN)
- action: override_upf_transport
params:
n3_interface: eth1
n3_address: {{ ran.ip }}
n3_vrf: RAN
# DN/DNN (N6) with UE pool
- action: add_n6_dnn
params:
n6_dnn: internet
n6_vrf: DN_01
n6_vlan: {{ dn.vlan }}
n6_vrf_table: 511
n6_interface: eth2
n6_ip: {{ dn.cidr }}
n6_gw: {{ dn.gw }}
n6_upf_pools:
- upf_route: {{ dn.ue_pool }}
nssai: false
n6_bgp:
local_as: 65001
peer_as: 65000

View File

@@ -0,0 +1,10 @@
kind: ngcore-AIO
nf_skip_list:
- "aaa"
- "chf"
- "bmsc"
- "dra"
- "eir"
version: '{{ version }}'
ova_file: {{ ova_file }}
report_services: {{ report_services | default(false) | lower }}

View File

@@ -0,0 +1,34 @@
# --- Networking recipe ---
net_recipe: generic_bgp
# --- OAM config ---
oam_network:
add_ansible_host_address: false
addresses:
- {{ mgmt.cidr }}
gateway4: {{ mgmt.gw }}
# --- NTP ---
ntp:
{% for s in ntp %}
- {{ s }}
{% endfor %}
# --- VRF config ---
_ngc_ext_aio_vrf:
- action: net_add_vrf
params: { name: RAN, table: 502 }
- action: net_add_vrf
params: { name: TELCO, table: 535 }
_ngc_ext_aio_net:
# RAN interface
- action: net_set_interface
params:
interface: eth1
vrf: RAN
addresses:
- {{ ran.cidr }} # S1+N2+N3
routes:
- destination: 0.0.0.0/0
gateway: {{ ran.gw }}

View File

@@ -0,0 +1,13 @@
## UDM/UDR testing profile
create_testing_profile:
slices:
- { sst: 1, sd: '000001' }
- { sst: 1, sd: '' }
dnns:
- {{ dn.dnn }}
plmns:
- { mcc: '{{ mcc }}', mnc: '{{ mnc }}' }
# UDR Subscribers provisioning
udr_provisioning:
testing_profile_service_profile: "testing_profile"

View File

@@ -0,0 +1,12 @@
vswitches:
- vSwitchName: GAF_VSWITCH
vSwitchNics: [vmnic4, vmnic5]
vSwitchSecurity:
forged_transmits: true
mac_changes: true
portgroups:
- { vSwitch: GAF_VSWITCH, vlanId: 501, vlanName: GAF_BP_501_OAM }
- { vSwitch: GAF_VSWITCH, vlanId: {{ ran.vlan | default(502) }}, vlanName: GAF_BP_502_RAN }
- { vSwitch: GAF_VSWITCH, vlanId: {{ dn.vlan }}, vlanName: DN_01 }
- { vSwitch: GAF_VSWITCH, vlanId: 4095, vlanName: GAF_BP_T_510_515 }

View File

@@ -0,0 +1,19 @@
all:
hosts:
{{ inventory_host }}:
ansible_host: {{ ansible_host_ip }}
children:
ESXi:
hosts:
{{ esxi_host }}:
VMs:
children:
_5GVMS:
hosts:
{{ inventory_host }}:
_5GAIO:
hosts:
{{ inventory_host }}:
vars:
serialize: 2
esxi_host: {{ esxi_host }}