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

[Github action] Test submitted yaml configs #309

Open
3 tasks
juztas opened this issue Sep 21, 2023 · 2 comments
Open
3 tasks

[Github action] Test submitted yaml configs #309

juztas opened this issue Sep 21, 2023 · 2 comments
Labels

Comments

@juztas
Copy link
Collaborator

juztas commented Sep 21, 2023

for any yaml submitted to this repo https://github.com/sdn-sense/rm-configs, we need to have github action, which checks:

  • Run yaml lint
  • MD5 are not conflicting
  • config check for all required parameters and their values (e.g. bgp not conflicting; interfaces defined, switch defined and ports defined inside FE; vlan-range valid format; ips are valid and ranges valid; qos is valid and points to correct interfaces/names/types
@juztas juztas added the feature label Sep 21, 2023
@syedasifraza
Copy link

syedasifraza commented Sep 25, 2023

FNAL's main.yaml file changes:


general:
logLevel: DEBUG
sites:
- "T1_US_FNAL"
webdomain: "https://cmssense1.fnal.gov:8443"
probes: ['https_v4_siterm_2xx', 'icmp_v4']
privatedir: /opt/siterm/config/
T1_US_FNAL:
domain: fnal.gov
latitude: 41.8384
longitude: 88.2616
plugin: ansible
switch:
- "cisconx9"
privatedir: /opt/siterm/config/T1_US_FNAL/
year: 2023
cisconx9:
vsw: "cisconx9"
rst: "cisconx9"
rst_enabled: "ipv4,ipv6"
private_asn: 64515
vlan_mtu: 9216
ports:
- "Ethernet1/49"
- "Ethernet1/51"
- "Ethernet1/52"
vlan_range: [3600-3619]
ipv4-address-pool:[10.251.85.0/24,10.251.86.0/24,10.251.87.0/24,10.251.88.0/24,10.251.89.0/24,172.16.3.0/30,172.17.3.0/30,172.18.3.0/30,172.19.3.0/30,172.31.10.0/24,172.31.11.0/24,172.31.12.0/24,172.31.13.0/24,172.31.14.0/24,172.31.15.0/24]
ipv6-address-pool:[fc00:3600::0/64,fc00:3601::0/64,fc00:3602::0/64,fc00:3603::0/64,fc00:3604::0/64,fc00:3605::0/64,fc00:3606::0/64,fc00:3607::0/64,fc00:3608::0/64,fc00:3609::0/64,fc00:3610::0/64,fc00:3611::0/64,fc00:3612::0/64,fc00:3613::0/64,fc00:3614::0/64,fc00:3615::0/64,fc00:3616::0/64,fc00:3617::0/64,fc00:3618::0/64,fc00:3619::0/64,fc00:1779::0/64,fc00:1780::0/64,fc00:1781::0/64,fc00:1782::0/64,fc00:1783::0/64,fc00:1784::0/64,fc00:1785::0/64,fc00:1786::0/64,fc00:1787::0/64,fc00:1788::0/64,fc00:1789::0/64,fc00:1790::0/64,fc00:1791::0/64,fc00:1792::0/64,fc00:1793::0/64,fc00:1794::0/64,fc00:1795::0/64,fc00:1796::0/64,fc00:1797::0/64,fc00:1798::0/64,fc00:1799::0/64,fc00:3985::0/64,fc00:3986::0/64,fc00:3987::0/64,fc00:3988::0/64,fc00:3989::0/64]
allports: False
allvlans: False

@juztas
Copy link
Collaborator Author

juztas commented Sep 26, 2023

@syedasifraza can you please create a pull request here: https://github.com/sdn-sense/rm-configs/blob/master/T1_US_FNAL/FE/main.yaml Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants