]> git.ipfire.org Git - people/ms/network.git/log
people/ms/network.git
5 years agoport: ethernet: Use combined setting for advertised link speeds
Michael Tremer [Thu, 20 Sep 2018 23:18:45 +0000 (00:18 +0100)] 
port: ethernet: Use combined setting for advertised link speeds

This patch removes the speed and duplex settings and replaces them
with a configuration option that allows to change advertised link
speeds to a certain speed.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoport: ethernet: Allow setting duplex mode
Michael Tremer [Thu, 20 Sep 2018 22:26:45 +0000 (23:26 +0100)] 
port: ethernet: Allow setting duplex mode

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoport: ethernet: Allow setting link speed
Michael Tremer [Thu, 20 Sep 2018 22:19:02 +0000 (23:19 +0100)] 
port: ethernet: Allow setting link speed

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoport: ethernet: Bring back accidentially dropped hook_create function
Michael Tremer [Thu, 20 Sep 2018 22:18:04 +0000 (23:18 +0100)] 
port: ethernet: Bring back accidentially dropped hook_create function

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoport: ethernet: Return OK only to rename ports
Michael Tremer [Thu, 20 Sep 2018 22:05:00 +0000 (23:05 +0100)] 
port: ethernet: Return OK only to rename ports

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoport: ethernet: Use default hook_new() function
Michael Tremer [Thu, 20 Sep 2018 22:04:44 +0000 (23:04 +0100)] 
port: ethernet: Use default hook_new() function

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoheader-port: Start with empty set of settings
Michael Tremer [Thu, 20 Sep 2018 22:04:21 +0000 (23:04 +0100)] 
header-port: Start with empty set of settings

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoport: ethernet: Allow setting the MTU
Michael Tremer [Thu, 20 Sep 2018 22:01:42 +0000 (23:01 +0100)] 
port: ethernet: Allow setting the MTU

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoRestart ports after edit to apply settings
Michael Tremer [Thu, 20 Sep 2018 21:42:54 +0000 (22:42 +0100)] 
Restart ports after edit to apply settings

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoheader-port: Print errors if config could not be read/written
Michael Tremer [Thu, 20 Sep 2018 21:35:58 +0000 (22:35 +0100)] 
header-port: Print errors if config could not be read/written

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoports: ethernet: Allow changing MAC address
Michael Tremer [Thu, 20 Sep 2018 21:33:07 +0000 (22:33 +0100)] 
ports: ethernet: Allow changing MAC address

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoAdd support for LEDs
Michael Tremer [Thu, 20 Sep 2018 21:16:00 +0000 (22:16 +0100)] 
Add support for LEDs

This patch configures LEDs on some Wireless PHYs to flash
on activity. This makes debugging easier.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agohostapd: Add support for 802.11ac
Michael Tremer [Wed, 19 Sep 2018 16:45:32 +0000 (17:45 +0100)] 
hostapd: Add support for 802.11ac

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agohostapd: Always enable 802.11d
Michael Tremer [Wed, 19 Sep 2018 15:01:34 +0000 (16:01 +0100)] 
hostapd: Always enable 802.11d

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agohostapd: Write VHT capabilities to configuration
Michael Tremer [Wed, 19 Sep 2018 14:59:53 +0000 (15:59 +0100)] 
hostapd: Write VHT capabilities to configuration

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agolibnetwork: Actually store index
Michael Tremer [Wed, 19 Sep 2018 14:56:33 +0000 (15:56 +0100)] 
libnetwork: Actually store index

Index was always zero and therefore only the first PHY could
be queried only.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agolibnetwork: Remove debug output
Michael Tremer [Wed, 19 Sep 2018 14:46:21 +0000 (15:46 +0100)] 
libnetwork: Remove debug output

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agolibnetwork: Fix typo in RX-LDPC HT capability
Michael Tremer [Wed, 19 Sep 2018 14:42:20 +0000 (15:42 +0100)] 
libnetwork: Fix typo in RX-LDPC HT capability

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agolibnetwork: Fix looping though HT capabilities
Michael Tremer [Wed, 19 Sep 2018 14:41:16 +0000 (15:41 +0100)] 
libnetwork: Fix looping though HT capabilities

The last capability was never looped through

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoibnetwork: Add command to show available VHT capabilities of phys
Michael Tremer [Wed, 19 Sep 2018 14:39:48 +0000 (15:39 +0100)] 
ibnetwork: Add command to show available VHT capabilities of phys

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agohostapd: Always enable all HT caps
Michael Tremer [Wed, 19 Sep 2018 13:02:09 +0000 (14:02 +0100)] 
hostapd: Always enable all HT caps

Signed-off-by: Arne Fitzenreiter <arne.fitzenreiter@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoip-tunnel: Make --peer optional
Michael Tremer [Wed, 19 Sep 2018 12:10:41 +0000 (14:10 +0200)] 
ip-tunnel: Make --peer optional

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoipsec: VTI keys are static now and don't need to be updated
Michael Tremer [Wed, 19 Sep 2018 11:46:53 +0000 (13:46 +0200)] 
ipsec: VTI keys are static now and don't need to be updated

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoipsec: GRE/VTI connections are now possible as on-demand
Michael Tremer [Wed, 19 Sep 2018 11:43:58 +0000 (13:43 +0200)] 
ipsec: GRE/VTI connections are now possible as on-demand

This change implements using zones as GRE/VTI devices so that
we can use IPsec connections in on-demand mode, too.

The device will be created first (as a zone) and might trigger
an IPsec connection. If that happens, the settings of the device
will be updated automatically.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoip-tunnel: Add support for VTI interfaces
Michael Tremer [Tue, 18 Sep 2018 12:01:12 +0000 (14:01 +0200)] 
ip-tunnel: Add support for VTI interfaces

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoipsec: Show ZONE setting when configuration is being dumped
Michael Tremer [Tue, 18 Sep 2018 11:33:30 +0000 (13:33 +0200)] 
ipsec: Show ZONE setting when configuration is being dumped

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoipsec: Change mode to transport/tunnel only
Michael Tremer [Tue, 18 Sep 2018 11:30:17 +0000 (13:30 +0200)] 
ipsec: Change mode to transport/tunnel only

VTI is being removed and will be possible via the new
zone command.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoipsec: Allow adding a zone to a VPN connection
Michael Tremer [Tue, 18 Sep 2018 11:21:19 +0000 (13:21 +0200)] 
ipsec: Allow adding a zone to a VPN connection

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoipsec: security policies: Fix typos in plural variables
Michael Tremer [Tue, 18 Sep 2018 10:16:02 +0000 (12:16 +0200)] 
ipsec: security policies: Fix typos in plural variables

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agonitsi: Add tests for ip-tunnels in GRE mode
Michael Tremer [Mon, 17 Sep 2018 15:23:44 +0000 (16:23 +0100)] 
nitsi: Add tests for ip-tunnels in GRE mode

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoMakefile: Forgot to remove 6to4-tunnel hook
Michael Tremer [Mon, 17 Sep 2018 14:54:45 +0000 (16:54 +0200)] 
Makefile: Forgot to remove 6to4-tunnel hook

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoMerge remote-tracking branch 'jschlag/master'
Michael Tremer [Mon, 17 Sep 2018 14:46:16 +0000 (15:46 +0100)] 
Merge remote-tracking branch 'jschlag/master'

5 years agoDrop 6to4-tunnel hook which is (partly) replaced by ip-tunnel
Michael Tremer [Mon, 17 Sep 2018 14:30:17 +0000 (16:30 +0200)] 
Drop 6to4-tunnel hook which is (partly) replaced by ip-tunnel

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoman: Add documentation for IP tunnel hook
Michael Tremer [Mon, 17 Sep 2018 14:06:38 +0000 (16:06 +0200)] 
man: Add documentation for IP tunnel hook

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoAdd generic IP tunnel zone hook
Michael Tremer [Mon, 17 Sep 2018 13:30:00 +0000 (15:30 +0200)] 
Add generic IP tunnel zone hook

This is useful to create GRE connections and can easily
be extended to do more later.

Fixes: #11607
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoip-tunnel: Create a function that determines if all IP addresses match
Michael Tremer [Mon, 17 Sep 2018 13:29:32 +0000 (15:29 +0200)] 
ip-tunnel: Create a function that determines if all IP addresses match

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoip-tunnel: Fix protocol detection when local address is empty
Michael Tremer [Mon, 17 Sep 2018 13:25:55 +0000 (15:25 +0200)] 
ip-tunnel: Fix protocol detection when local address is empty

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoipsec: security policies: Add documentation for pseudo-random-functions command
Michael Tremer [Mon, 17 Sep 2018 11:49:24 +0000 (13:49 +0200)] 
ipsec: security policies: Add documentation for pseudo-random-functions command

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoCLI: Fix destroying zones
Michael Tremer [Mon, 17 Sep 2018 11:45:49 +0000 (13:45 +0200)] 
CLI: Fix destroying zones

The old delayed removal process doesn't exist any more

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoMerge remote-tracking branch 'upstream/master'
Jonatan Schlag [Sun, 16 Sep 2018 14:16:43 +0000 (16:16 +0200)] 
Merge remote-tracking branch 'upstream/master'

5 years agoipsec: security policies: Make integrity command plural
Michael Tremer [Sun, 16 Sep 2018 14:15:53 +0000 (15:15 +0100)] 
ipsec: security policies: Make integrity command plural

References: #11446

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoMerge remote-tracking branch 'upstream/master'
Jonatan Schlag [Sun, 16 Sep 2018 14:15:52 +0000 (16:15 +0200)] 
Merge remote-tracking branch 'upstream/master'

5 years agoMove vpn tests into an own directory structure
Jonatan Schlag [Sun, 16 Sep 2018 14:13:56 +0000 (16:13 +0200)] 
Move vpn tests into an own directory structure

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 years agoipsec: security policies: Make group type command plural
Michael Tremer [Sun, 16 Sep 2018 14:11:36 +0000 (15:11 +0100)] 
ipsec: security policies: Make group type command plural

References: #11446

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoAdjust include paths because of the new include path feature
Jonatan Schlag [Sun, 16 Sep 2018 14:00:00 +0000 (16:00 +0200)] 
Adjust include paths because of the new include path feature

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 years agoipsec: security policies: Show PRFs when dumping SecPol conf
Michael Tremer [Sun, 16 Sep 2018 14:00:42 +0000 (16:00 +0200)] 
ipsec: security policies: Show PRFs when dumping SecPol conf

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoipsec: security polices: Make cipher command plural
Michael Tremer [Sun, 16 Sep 2018 13:57:31 +0000 (15:57 +0200)] 
ipsec: security polices: Make cipher command plural

References: #11446

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoUse new include path feature of nitsi
Jonatan Schlag [Sun, 16 Sep 2018 13:54:04 +0000 (15:54 +0200)] 
Use new include path feature of nitsi

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 years agoipsec: security-policies: Make PRF command plural
Michael Tremer [Sun, 16 Sep 2018 13:51:31 +0000 (15:51 +0200)] 
ipsec: security-policies: Make PRF command plural

References: #11446

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoipsec: security-policies: Add CLI to modify PRFs
Michael Tremer [Sun, 16 Sep 2018 13:45:45 +0000 (15:45 +0200)] 
ipsec: security-policies: Add CLI to modify PRFs

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoipsec: Generate IKE proposals with PRFs
Michael Tremer [Sun, 16 Sep 2018 13:19:55 +0000 (15:19 +0200)] 
ipsec: Generate IKE proposals with PRFs

This is now a requirement for AEAD ciphers and strongswan
refuses to start.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoNitsi: port vlan test- check if detach works
Jonatan Schlag [Sun, 16 Sep 2018 12:36:26 +0000 (14:36 +0200)] 
Nitsi: port vlan test- check if detach works

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 years agoAdd vlan port test for nitsi
Jonatan Schlag [Sun, 16 Sep 2018 12:03:37 +0000 (14:03 +0200)] 
Add vlan port test for nitsi

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 years agoMerge remote-tracking branch 'jschlag/master'
Michael Tremer [Sun, 16 Sep 2018 11:53:53 +0000 (12:53 +0100)] 
Merge remote-tracking branch 'jschlag/master'

5 years agonitsi: Add test for PPPoE server/client
Michael Tremer [Sun, 16 Sep 2018 11:52:39 +0000 (12:52 +0100)] 
nitsi: Add test for PPPoE server/client

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agopppoe: Bring up port when zone is coming up
Michael Tremer [Sun, 16 Sep 2018 11:50:30 +0000 (12:50 +0100)] 
pppoe: Bring up port when zone is coming up

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoAdd VPN n2n tests for vti
Jonatan Schlag [Sun, 16 Sep 2018 11:16:23 +0000 (13:16 +0200)] 
Add VPN n2n tests for vti

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 years agoUse new phase1 and setup recipes in vpn tests
Jonatan Schlag [Sun, 16 Sep 2018 11:13:43 +0000 (13:13 +0200)] 
Use new phase1 and setup recipes in vpn tests

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 years agonitsi: Make sure that we are always running with the most recent source
Michael Tremer [Sun, 16 Sep 2018 08:21:53 +0000 (09:21 +0100)] 
nitsi: Make sure that we are always running with the most recent source

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agonitsi: Automatically drop to a shell in case a test fails
Michael Tremer [Sun, 16 Sep 2018 08:16:21 +0000 (09:16 +0100)] 
nitsi: Automatically drop to a shell in case a test fails

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agopppoe-server: Run with absolute path
Michael Tremer [Sun, 16 Sep 2018 09:26:22 +0000 (11:26 +0200)] 
pppoe-server: Run with absolute path

Because PATH has been changed this script is executing
itself recursively

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agopppoe-server: Read configuration again
Michael Tremer [Sun, 16 Sep 2018 09:24:28 +0000 (11:24 +0200)] 
pppoe-server: Read configuration again

This was broken since config IDs have been introduced

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoInstall ppp scripts with executable permissions
Michael Tremer [Sun, 16 Sep 2018 08:55:38 +0000 (10:55 +0200)] 
Install ppp scripts with executable permissions

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoMerge remote-tracking branch 'upstream/master'
Jonatan Schlag [Sat, 15 Sep 2018 22:14:36 +0000 (00:14 +0200)] 
Merge remote-tracking branch 'upstream/master'

5 years agonitsi: Drop Hello World test
Michael Tremer [Sat, 15 Sep 2018 22:11:36 +0000 (23:11 +0100)] 
nitsi: Drop Hello World test

This is a little bit useless now that we have tests
that do stuff that is more useful.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agonitsi: Add phase1
Michael Tremer [Sat, 15 Sep 2018 21:57:09 +0000 (22:57 +0100)] 
nitsi: Add phase1

This is supposed to be a good base to build on for any test that
needs a working layer 2 and some IP addresses on the network
to reach any other machines

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoMake make distcheck happy
Michael Tremer [Sat, 15 Sep 2018 16:04:40 +0000 (17:04 +0100)] 
Make make distcheck happy

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoChange ipv6 addresses from global to "private" addresses in nitsi
Jonatan Schlag [Sat, 15 Sep 2018 15:59:49 +0000 (17:59 +0200)] 
Change ipv6 addresses from global to "private" addresses in nitsi

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 years agoMake setting of traffic selectors in nitsi test easier
Jonatan Schlag [Sat, 15 Sep 2018 15:55:01 +0000 (17:55 +0200)] 
Make setting of traffic selectors in nitsi test easier

We now include the file for ipv4 and for ipv6 into the file for ipv64
which makes maintenance easier.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 years agoInclude ping test of ipv4 and ipv6 into ipv64 test
Jonatan Schlag [Sat, 15 Sep 2018 15:49:26 +0000 (17:49 +0200)] 
Include ping test of ipv4 and ipv6 into ipv64 test

This make changing ip addresses easier.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 years agoMakefile: Install dhclient-helper as an executable script
Michael Tremer [Sat, 15 Sep 2018 18:40:31 +0000 (20:40 +0200)] 
Makefile: Install dhclient-helper as an executable script

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoChange ipv6 addresses from global to "private" addresses in nitsi
Jonatan Schlag [Sat, 15 Sep 2018 15:59:49 +0000 (17:59 +0200)] 
Change ipv6 addresses from global to "private" addresses in nitsi

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 years agoMake setting of traffic selectors in nitsi test easier
Jonatan Schlag [Sat, 15 Sep 2018 15:55:01 +0000 (17:55 +0200)] 
Make setting of traffic selectors in nitsi test easier

We now include the file for ipv4 and for ipv6 into the file for ipv64
which makes maintenance easier.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 years agoInclude ping test of ipv4 and ipv6 into ipv64 test
Jonatan Schlag [Sat, 15 Sep 2018 15:49:26 +0000 (17:49 +0200)] 
Include ping test of ipv4 and ipv6 into ipv64 test

This make changing ip addresses easier.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 years agovpn: Poly1305 is AEAD
Michael Tremer [Sat, 15 Sep 2018 15:06:05 +0000 (16:06 +0100)] 
vpn: Poly1305 is AEAD

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agonitsi: Rename make-install include file to setup
Michael Tremer [Sat, 15 Sep 2018 14:58:16 +0000 (15:58 +0100)] 
nitsi: Rename make-install include file to setup

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agonitsi: Include some inital commands in make-install template
Michael Tremer [Sat, 15 Sep 2018 14:53:25 +0000 (15:53 +0100)] 
nitsi: Include some inital commands in make-install template

This allows us to have a couple fewer includes

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agonitsi: Install configuration files into the right place
Michael Tremer [Sat, 15 Sep 2018 13:33:55 +0000 (14:33 +0100)] 
nitsi: Install configuration files into the right place

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agonitsi: Remove lines that are already in the default settings file
Michael Tremer [Sat, 15 Sep 2018 13:32:22 +0000 (14:32 +0100)] 
nitsi: Remove lines that are already in the default settings file

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agonitsi: Remove reference to non-existant strongswan.conf file
Michael Tremer [Sat, 15 Sep 2018 13:29:48 +0000 (14:29 +0100)] 
nitsi: Remove reference to non-existant strongswan.conf file

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoMerge branch 'nitsi-zone-commands'
Jonatan Schlag [Sat, 15 Sep 2018 13:25:08 +0000 (15:25 +0200)] 
Merge branch 'nitsi-zone-commands'

5 years agoIPsec: Add support for ChaCha20-Poly1305
Michael Tremer [Sat, 15 Sep 2018 12:49:59 +0000 (13:49 +0100)] 
IPsec: Add support for ChaCha20-Poly1305

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoFix hook for static address configuration.
Stefan Schantl [Sat, 11 Aug 2018 19:21:27 +0000 (21:21 +0200)] 
Fix hook for static address configuration.

Add the required hook_new function and "id" information which have been
introduced in earlier commits to make this hook work again.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Tested-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoAdd recipe for port vars
Jonatan Schlag [Sat, 15 Sep 2018 11:59:24 +0000 (13:59 +0200)] 
Add recipe for port vars

These vars contain the port name which is plugged into the virtual
network.

As this relation changes every reboot these vars make it possible to
write recipes which depends on correct links between two ports.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 years agoAdd gitignore in include dir of nitsi recipes
Jonatan Schlag [Sat, 15 Sep 2018 11:57:21 +0000 (13:57 +0200)] 
Add gitignore in include dir of nitsi recipes

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 years agoAdd include recipe for nitsi vpn n2n tests
Jonatan Schlag [Sat, 15 Sep 2018 11:48:08 +0000 (13:48 +0200)] 
Add include recipe for nitsi vpn n2n tests

This recipes are the base for all n2n ipsec tests.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 years agoAdd default settings file for nitsi tests
Jonatan Schlag [Sat, 15 Sep 2018 11:41:55 +0000 (13:41 +0200)] 
Add default settings file for nitsi tests

This makes writing a test much faster.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 years agoreset: Trigger udev to re-add all network interfaces
Michael Tremer [Wed, 15 Aug 2018 09:31:14 +0000 (10:31 +0100)] 
reset: Trigger udev to re-add all network interfaces

Fixes: #11815
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoRemove registration of functions called on init
Michael Tremer [Wed, 15 Aug 2018 09:26:51 +0000 (10:26 +0100)] 
Remove registration of functions called on init

Only one function used this and it was slow since it got initialised
every time the functions were loaded.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agodns: Re-generate resolv.conf when flushing settings
Michael Tremer [Wed, 15 Aug 2018 09:24:05 +0000 (10:24 +0100)] 
dns: Re-generate resolv.conf when flushing settings

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoAdd a test to check that we can attach ports to a zone of type bridge
Jonatan Schlag [Sat, 11 Aug 2018 12:32:59 +0000 (14:32 +0200)] 
Add a test to check that we can attach ports to a zone of type bridge

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 years agoAdd new test zone-new-bridge
Jonatan Schlag [Tue, 7 Aug 2018 17:15:34 +0000 (19:15 +0200)] 
Add new test zone-new-bridge

This test checks if we can create a new zone of type bridge.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 years agoAdd test for command raw device-get-by-mac-address
Jonatan Schlag [Sat, 28 Jul 2018 11:59:16 +0000 (13:59 +0200)] 
Add test for command raw device-get-by-mac-address

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoAdd new function device_get_by_mac_address()
Jonatan Schlag [Sat, 28 Jul 2018 11:59:15 +0000 (13:59 +0200)] 
Add new function device_get_by_mac_address()

We need this function and the command to identify ports in a nitsi test.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoAdd recipe to set network settings
Jonatan Schlag [Sat, 28 Jul 2018 11:59:14 +0000 (13:59 +0200)] 
Add recipe to set network settings

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoAdd recipe to reset network configuration
Jonatan Schlag [Sat, 28 Jul 2018 11:59:13 +0000 (13:59 +0200)] 
Add recipe to reset network configuration

We use --force here to avoid the y/n question.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoAdd include dir for nitsi test
Jonatan Schlag [Sat, 30 Jun 2018 15:54:04 +0000 (17:54 +0200)] 
Add include dir for nitsi test

When we include recipes in our recipe we must be shure in some cases
that the recipe are generated out of a .in file.

All files in the include dir will be generated before every test so we
can be shure that these files are present.

This is useful for recipes like the make-install recipe in this test,
which needs to be generated and will be included in nearly every test.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoFix network reset
Jonatan Schlag [Sat, 30 Jun 2018 15:53:48 +0000 (17:53 +0200)] 
Fix network reset

The functions zone_destroy and zone_destroy_now where merged to
zone_destroy in an earlier commit. So we have to use zone_destroy here.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoWe need to change the path of the image in the settings file to
Jonatan Schlag [Mon, 25 Jun 2018 09:01:43 +0000 (11:01 +0200)] 
We need to change the path of the image in the settings file to

When we do not change this path accordingly to the place where we store
our images the copy in feature does not work.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
5 years agoAdapt settings file of nitsi tests to new syntax
Jonatan Schlag [Mon, 25 Jun 2018 09:01:42 +0000 (11:01 +0200)] 
Adapt settings file of nitsi tests to new syntax

Nitsi is using a new syntax for settings file so we need to change the
settings files of our tests.

I dropped some settings in the hello-world test because we do not need
them for this test.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>