-
Notifications
You must be signed in to change notification settings - Fork 349
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
T6510: smoketest: generell improvement task for the smoketesting platform
- Loading branch information
Showing
66 changed files
with
4,073 additions
and
513 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/usr/bin/env python3 | ||
# Copyright (C) 2024 VyOS maintainers and contributors | ||
# | ||
# This program is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License version 2 or later as | ||
# published by the Free Software Foundation. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
import os | ||
from jinja2 import Template | ||
|
||
conf_scripts = 'src/conf_mode' | ||
configd_include = 'data/configd-include.json' | ||
|
||
configd_template = Template("""[ | ||
{% for file in files %} | ||
"{{ file }}"{{ "," if not loop.last else "" }} | ||
{% endfor %} | ||
] | ||
""", trim_blocks=True) | ||
|
||
files = [f for f in os.listdir(conf_scripts) if os.path.isfile(f'{conf_scripts}/{f}')] | ||
files = sorted(files) | ||
|
||
tmp = {'files' : files} | ||
with open(configd_include, 'w') as f: | ||
f.write(configd_template.render(tmp)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,28 @@ | ||
set interfaces ethernet eth0 address '192.0.2.1/31' | ||
set interfaces ethernet eth0 address '2001:db8::1234/64' | ||
set interfaces ethernet eth0 offload gro | ||
set interfaces loopback lo | ||
set service ntp server time1.vyos.net | ||
set service ntp server time2.vyos.net | ||
set service ntp server time3.vyos.net | ||
set service https allow-client address '172.16.0.0/12' | ||
set service https allow-client address '192.168.0.0/16' | ||
set service https allow-client address '10.0.0.0/8' | ||
set service https allow-client address '2001:db8::/32' | ||
set service https api keys id 1 key 'S3cur3' | ||
set service ntp allow-client address '0.0.0.0/0' | ||
set service ntp allow-client address '::/0' | ||
set service ntp server time1.vyos.net | ||
set service ntp server time2.vyos.net | ||
set service ntp server time3.vyos.net | ||
set system config-management commit-revisions '100' | ||
set system conntrack modules ftp | ||
set system conntrack modules h323 | ||
set system conntrack modules nfs | ||
set system conntrack modules pptp | ||
set system conntrack modules sip | ||
set system conntrack modules sqlnet | ||
set system conntrack modules tftp | ||
set system console device ttyS0 speed '115200' | ||
set system host-name 'vyos' | ||
set system login user vyos authentication encrypted-password '$6$2Ta6TWHd/U$NmrX0x9kexCimeOcYK1MfhMpITF9ELxHcaBU/znBq.X2ukQOj61fVI2UYP/xBzP4QtiTcdkgs7WOQMHWsRymO/' | ||
set system login user vyos authentication plaintext-password '' | ||
set system console device ttyS0 speed '115200' | ||
set system syslog global facility all level 'info' | ||
set system syslog global facility local7 level 'debug' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
set interfaces ethernet eth0 address '192.168.0.1/24' | ||
set interfaces ethernet eth0 address 'fe88::1/56' | ||
set interfaces ethernet eth0 duplex 'auto' | ||
set interfaces ethernet eth0 offload gro | ||
set interfaces ethernet eth0 speed 'auto' | ||
set interfaces ethernet eth1 duplex 'auto' | ||
set interfaces ethernet eth1 offload gro | ||
set interfaces ethernet eth1 speed 'auto' | ||
set interfaces ethernet eth2 duplex 'auto' | ||
set interfaces ethernet eth2 offload gro | ||
set interfaces ethernet eth2 speed 'auto' | ||
set interfaces ethernet eth2 vif 100 address '100.100.0.1/24' | ||
set interfaces ethernet eth2 vif-s 200 address '100.64.200.254/24' | ||
set interfaces ethernet eth2 vif-s 200 vif-c 201 address '100.64.201.254/24' | ||
|
@@ -19,17 +28,6 @@ set protocols static arp interface eth2.200.201 address 100.64.201.20 mac '00:50 | |
set protocols static arp interface eth2.200.202 address 100.64.202.30 mac '00:50:00:00:00:30' | ||
set protocols static arp interface eth2.200.202 address 100.64.202.40 mac '00:50:00:00:00:40' | ||
set protocols static route 0.0.0.0/0 next-hop 100.64.0.1 | ||
set service ssh ciphers 'aes128-ctr' | ||
set service ssh ciphers 'aes192-ctr' | ||
set service ssh ciphers 'aes256-ctr' | ||
set service ssh ciphers '[email protected]' | ||
set service ssh ciphers '[email protected]' | ||
set service ssh key-exchange '[email protected]' | ||
set service ssh key-exchange 'diffie-hellman-group1-sha1' | ||
set service ssh key-exchange 'diffie-hellman-group-exchange-sha1' | ||
set service ssh key-exchange 'diffie-hellman-group-exchange-sha256' | ||
set service ssh listen-address '192.168.0.1' | ||
set service ssh port '22' | ||
set service dhcp-server shared-network-name LAN authoritative | ||
set service dhcp-server shared-network-name LAN subnet 192.168.0.0/24 option default-router '192.168.0.1' | ||
set service dhcp-server shared-network-name LAN subnet 192.168.0.0/24 option domain-name 'vyos.net' | ||
|
@@ -66,19 +64,40 @@ set service dns forwarding allow-from '192.168.0.0/16' | |
set service dns forwarding cache-size '10000' | ||
set service dns forwarding dnssec 'off' | ||
set service dns forwarding listen-address '192.168.0.1' | ||
set service ssh ciphers 'aes128-ctr' | ||
set service ssh ciphers 'aes192-ctr' | ||
set service ssh ciphers 'aes256-ctr' | ||
set service ssh ciphers '[email protected]' | ||
set service ssh ciphers '[email protected]' | ||
set service ssh key-exchange '[email protected]' | ||
set service ssh key-exchange 'diffie-hellman-group1-sha1' | ||
set service ssh key-exchange 'diffie-hellman-group-exchange-sha1' | ||
set service ssh key-exchange 'diffie-hellman-group-exchange-sha256' | ||
set service ssh listen-address '192.168.0.1' | ||
set service ssh port '22' | ||
set system config-management commit-revisions '100' | ||
set system conntrack ignore ipv4 rule 1 destination address '192.0.2.2' | ||
set system conntrack ignore ipv4 rule 1 source address '192.0.2.1' | ||
set system conntrack modules ftp | ||
set system conntrack modules h323 | ||
set system conntrack modules nfs | ||
set system conntrack modules pptp | ||
set system conntrack modules sip | ||
set system conntrack modules sqlnet | ||
set system conntrack modules tftp | ||
set system console device ttyS0 speed '115200' | ||
set system host-name 'vyos' | ||
set system login user vyos authentication encrypted-password '$6$O5gJRlDYQpj$MtrCV9lxMnZPMbcxlU7.FI793MImNHznxGoMFgm3Q6QP3vfKJyOSRCt3Ka/GzFQyW1yZS4NS616NLHaIPPFHc0' | ||
set system login user vyos authentication plaintext-password '' | ||
set system name-server '192.168.0.1' | ||
set system syslog global facility auth level 'info' | ||
set system syslog global preserve-fqdn | ||
set system syslog console facility all level 'emerg' | ||
set system syslog console facility mail level 'info' | ||
set system syslog global facility all level 'info' | ||
set system syslog global facility auth level 'info' | ||
set system syslog global facility local7 level 'debug' | ||
set system syslog global preserve-fqdn | ||
set system syslog host syslog.vyos.net facility auth level 'warning' | ||
set system syslog host syslog.vyos.net facility local7 level 'notice' | ||
set system syslog host syslog.vyos.net format octet-counted | ||
set system syslog host syslog.vyos.net port '8000' | ||
set system console device ttyS0 speed '115200' | ||
set system time-zone 'Europe/Berlin' |
Oops, something went wrong.