Yu Watanabe
931d11057c
test-network: drop 25-nlmon.network
2019-05-29 17:07:06 +09:00
Yu Watanabe
0feeac6418
Merge pull request #12635 from yuwata/nlmon-support
...
network: add nlmon support
2019-05-29 10:22:09 +09:00
Yu Watanabe
811f33d0b1
test-network: add a basic test for nlmon
2019-05-28 22:47:20 +09:00
Yu Watanabe
8ad8292452
test-network: use wait_online() in NetworkdDHCPServerTests or friends
2019-05-28 22:21:25 +09:00
Yu Watanabe
fdcd1ec54a
test-network: move test_domain() to NetworkdNetworkTests class
2019-05-28 22:21:24 +09:00
Yu Watanabe
be68c2c965
test-network: rename needlessly long class names
2019-05-28 22:21:24 +09:00
Yu Watanabe
2629df4710
test-network: use wait_online() instead of waiting for 10 seconds
...
But some tests requires both IPv4 and IPv6 addresses are configured.
Only in that case wait for addresses to be configured.
2019-05-28 22:21:24 +09:00
Yu Watanabe
58df8fb7dc
test-network: drop unused link
2019-05-28 22:21:24 +09:00
Yu Watanabe
350e05d274
test-network: rename link_remove() to remove_links()
2019-05-28 22:21:24 +09:00
Yu Watanabe
5f68a6a46a
test-network: remove routes even on failure
2019-05-28 22:21:24 +09:00
Yu Watanabe
95c74b0aff
test-network: use setUp() and tearDown() to delete routing policy rule tables
2019-05-28 22:21:24 +09:00
Yu Watanabe
def9fc0d65
test-network: remove fou ports on failure
2019-05-28 22:21:24 +09:00
Yu Watanabe
9f10126f3c
test-network: stop dnsmasq before removing links
2019-05-28 22:21:24 +09:00
Yu Watanabe
1836bedf92
test-network: warn when firewalld.service is running
2019-05-28 22:21:24 +09:00
Yu Watanabe
b6efd6614c
test-network: add tests for issue #12490
2019-05-28 22:21:23 +09:00
Yu Watanabe
f63b14d35e
test-network: add basic tests for vxcan device
2019-05-24 10:56:54 +09:00
Yu Watanabe
0aefa2274d
test-network: add more tests for LinkLocalAddressing=yes on various netdevs
2019-05-24 10:54:53 +09:00
Yu Watanabe
241836a87c
test-network: drop pure test for dummy device
...
The dummy device is well used in test-network. So, the dropped test
is completely redundant.
2019-05-23 23:55:57 +09:00
Yu Watanabe
b08b056e19
test-network: drop redundant check_link_exists()
...
When wait_online() passes, then the link must exist.
2019-05-23 23:45:53 +09:00
Yu Watanabe
17bcf0a09f
test-network: drop wait_online() from test_ip6gre_tunnel()
2019-05-22 18:02:20 +09:00
Yu Watanabe
be0e1ef9b5
test-network: wait for bridge slave to be enslaved in test_bridge_ignore_carrier_loss_frequent_loss_and_gain()
2019-05-22 17:59:39 +09:00
Yu Watanabe
0a5dced161
test-network: drop unused variable
2019-05-22 17:58:46 +09:00
Yu Watanabe
a1b3559088
test-network: add test that vcan device can be configured state
2019-05-22 17:58:46 +09:00
Yu Watanabe
671dacdf0c
test-network: add basic tests for veth interfaces
2019-05-22 17:58:46 +09:00
Yu Watanabe
2746d30797
test-network: add tests for flags of tun or tap devices
2019-05-22 17:58:46 +09:00
Yu Watanabe
077f9abc3a
test-network: add tests for LinkLocalAddressing= on ipvlan or friends
2019-05-22 17:58:46 +09:00
Yu Watanabe
40921f0886
test-network: add tests for Flags= in [IPVTAP]
2019-05-22 17:58:46 +09:00
Yu Watanabe
bc6dff6e25
test-network: add tests for Flags= in [IPVLAN]
2019-05-22 17:58:46 +09:00
Yu Watanabe
460feb6127
test-network: add tests for Mode= setting in [MACVTAP] section
2019-05-22 17:58:46 +09:00
Yu Watanabe
dff9792b15
test-network: add tests for Mode= setting in [MACVLAN] section
2019-05-22 17:58:46 +09:00
Yu Watanabe
3d16512423
test-network: convert jiffies to sec
2019-05-22 17:58:46 +09:00
Yu Watanabe
8d7f098756
test-network: show interface status when wait_online() fails
2019-05-22 17:58:46 +09:00
Yu Watanabe
a9a2ee6a96
test-network: use wait_online() more
2019-05-22 17:58:46 +09:00
Yu Watanabe
e39cc4450d
test-network: introduce check_link_exists()
2019-05-22 17:58:46 +09:00
Yu Watanabe
c815f33e70
test-network: use wait_online() more
2019-05-22 17:58:46 +09:00
Yu Watanabe
881b1f358f
test-network: use splitlines() at one more place
2019-05-22 17:58:46 +09:00
Yu Watanabe
2700d2c7dc
test-network: wait for bond interface to be no-carrier operational state
2019-05-19 05:39:45 +09:00
Yu Watanabe
ce87a19087
test-network: enable universal_newline= flag for subprocess.check_output()
2019-05-19 05:39:21 +09:00
Yu Watanabe
4b3cf93507
test-network: remove unnecessary links
2019-05-19 05:29:25 +09:00
Yu Watanabe
3ccf7af087
test-network: fix underlying device name
2019-05-19 05:27:56 +09:00
Yu Watanabe
791c1140c9
test-network: use check_operstate() helper function where applicable
2019-05-19 05:27:56 +09:00
Yu Watanabe
2be0b6fc5e
test-network: add get_operstate() and check_operstate() helper functions
2019-05-19 05:27:46 +09:00
Yu Watanabe
a32a00831c
Merge pull request #12574 from yuwata/network-mtu-issue-12552
...
network: do not always bump MTU with additional 4bytes
2019-05-16 08:25:48 +02:00
Yu Watanabe
4e14e54638
Merge pull request #12549 from yuwata/network-sittun-disable-link-local-addressing-12547
...
network: disable LinkLocalAddressing on sit devices
2019-05-16 05:11:05 +02:00
Yu Watanabe
7d7be1b9d8
test-network: adjust mtu
2019-05-16 11:51:07 +09:00
Yu Watanabe
11309591a5
test-network: check tunnel netdevs become operstate 'routable'
2019-05-16 10:37:11 +09:00
Yu Watanabe
956c8feca4
test-network: add a basic test for ipvtap
2019-05-16 09:48:53 +09:00
Yu Watanabe
2b00dff809
test-network: add a test for IPv4LLRoute=
2019-05-15 12:44:30 +09:00
Yu Watanabe
6543b7fd78
test-network: add tests for DefaultRouteOnDevice=
2019-05-15 12:44:30 +09:00
Yu Watanabe
3a956d388a
test-network: add a tiny test for IPv6Token=
2019-05-12 07:34:13 +09:00
Zbigniew Jędrzejewski-Szmek
d1c377da0d
Merge pull request #12489 from ssahani/vxlan
...
networkd: VXLAN rename Id to VNI
2019-05-08 12:02:54 +02:00
Susant Sahani
6f213e4a34
networkd: VXLAN rename Id to VNI
...
It makes more sense to call VXLAN ID as
1. the VXLAN Network Identifier (VNI) (or VXLAN Segment ID)
2. test-network: rename VXLAN Id to VNI
3. fuzzer: Add VXLAN VNI directive to fuzzer
2019-05-07 20:52:11 +05:30
Yu Watanabe
117a55c755
test-network: add one more test for LinkLocalAddressing=fallback
2019-05-07 17:12:09 +02:00
Yu Watanabe
63c598ede3
test-network: add a test for LinkLocalAddressing=fallback
2019-05-04 16:46:03 +02:00
Yu Watanabe
1c862fe05a
test-network: add tests for BridgeFDB.Destination=
2019-05-03 06:12:04 +02:00
Ben Boeckel
5238e95759
codespell: fix spelling errors
2019-04-29 16:47:18 +02:00
Yu Watanabe
06895a1dda
test-network: fix invalid assertions
2019-04-25 00:29:20 +02:00
Yu Watanabe
02849d8b4f
test-network: add tests for MACsec
2019-04-12 10:12:42 +09:00
Yu Watanabe
9e5d79e7a1
test-network: add tests for WireGuardPeer.PresharedKey= and PresharedKeyFile=
2019-04-09 15:50:23 +09:00
Yu Watanabe
cb31e7c861
network: make reading PrivateKeyFile= failure always fatal
...
This also refactor wireguard_read_key_file().
2019-04-09 15:50:22 +09:00
Yu Watanabe
dd09a9ec0f
Merge pull request #12160 from yuwata/wait-online-allow-configuring
...
wait-online: add --any option
2019-04-02 06:10:36 +09:00
Yu Watanabe
03db80b2d1
test-network: add tests for --any option of wait-online
2019-04-02 03:38:22 +09:00
Yu Watanabe
c7f070bd4a
test-network: fix timeout argument for wait_online()
2019-04-02 03:38:22 +09:00
Yu Watanabe
4b6a6d1e37
test-network: add tests for FooOverUDP tunnels
2019-04-02 03:29:46 +09:00
Yu Watanabe
38f4bb4428
test-network: add more tests for SerializeTunneledPackets=, Key=, and friends
2019-04-02 03:07:08 +09:00
Yu Watanabe
753e0a2446
test-network: add test for NetDev.Name= conflict
2019-04-01 10:30:31 +09:00
Yu Watanabe
5a0bd90b82
test-network: add test for drop-in [WireGuardPeer] section
...
This also merges the two wireguard tests, and use wait_online()
to speed up the test.
2019-04-01 10:30:30 +09:00
Yu Watanabe
b07b19dff8
Merge pull request #12147 from yuwata/network-gre-key-12144
...
network: make GRE and GRETAP support Key= or friends
2019-03-31 22:12:34 +09:00
Yu Watanabe
6730a1f343
test-network: test stacked erspan tunnels
2019-03-30 21:17:53 +09:00
Yu Watanabe
0ef830cf54
test-network: merge tests for [Route] section
2019-03-30 02:27:22 +09:00
Yu Watanabe
a15ff207df
test-network: use wait_online() in test_sysctl_disable_ipv6()
2019-03-30 02:27:22 +09:00
Yu Watanabe
ba1e0d0612
test-network: use wait_online() in test_sysctl()
...
This also disables IPv6AcceptRA= to speed up the test.
2019-03-30 02:27:22 +09:00
Yu Watanabe
2dcfcc08d9
test-network: use wait_online() in test_link_local_addressing()
...
This also disables IPv6AcceptRA= to speed up the test.
2019-03-30 02:27:22 +09:00
Yu Watanabe
d06f30fc73
test-network: fix addr_gen_mode
...
If stable_secret is set, then networkd sets addr_gen_mode 2.
2019-03-30 02:27:22 +09:00
Yu Watanabe
c2990ec39a
test-network: move tests related to bonding
2019-03-30 02:27:22 +09:00
Yu Watanabe
b810272594
test-network: merge tests about static addresses
...
And use wait_online()
2019-03-30 02:27:22 +09:00
Yu Watanabe
5aa58329d8
test-network: add wait_online() helper function
2019-03-30 02:27:16 +09:00
Yu Watanabe
6a97a86489
test-network: add more tests for tunneling devices
2019-03-22 03:31:50 +09:00
Yu Watanabe
cff83db917
test-network: add tests for L2TP
2019-03-14 11:12:32 +09:00
Tobias Jungel
7f15b71460
networkd: Add bridge port capabilities
...
This PR adds the configuration switches for multicast flooding, neighbor
suppression and learning of a bridge port.
2019-03-13 16:27:22 +01:00
Lennart Poettering
96c45cc697
Merge pull request #11861 from yuwata/network-verify-2
...
network: config parser updates and wireguard refactoring
2019-03-13 10:15:27 +01:00
Yu Watanabe
c9cc038343
network: introduce 'degraded-carrier' operstate to order all states
...
Previously, 'degraded' state is ambiguous for bonding or bridge master:
1. one or more slave interfaces does not have carrier,
2. no link local address is assigned to the master,
3. combination of the above two.
This makes the above case 1 and 3 are in the new 'degraded-carrier'
state, and makes 'degraded' state as all slaves are active but no
link local address on master.
2019-03-13 14:29:00 +09:00
Yu Watanabe
4ddbf08cfd
test-network: wait more and fix wrong operational state
...
Closes #11977 .
2019-03-13 14:27:39 +09:00
Yu Watanabe
39bcff3bca
test-network: add test for WireGuard.PrivateKeyFile=
2019-03-13 12:02:08 +09:00
Yu Watanabe
bbb5aebe3e
test-network: add tests for invalid Address sections
2019-03-13 11:59:18 +09:00
Yu Watanabe
7f45d738a6
test-network: add tests for issue #11921
2019-03-11 15:29:19 +01:00
Yu Watanabe
26bf9c302d
test-network: add tests for address pool
2019-03-01 16:34:55 +09:00
Yu Watanabe
af3b1498c6
test-network: add testcase for #1850
2019-02-28 10:34:27 +09:00
Yu Watanabe
9cb8c55934
network: rename GatewayOnlink= to GatewayOnLink=
...
But still GatewayOnlink= is supported for backward compatibility.
2019-02-28 10:00:22 +09:00
Lennart Poettering
dc16327c48
Merge pull request #11795 from yuwata/fix-network-routing-policy-11280
...
network: fix routing policy rule issue #11280
2019-02-27 18:43:56 +01:00
Yu Watanabe
b677774d69
test-network: add testcase for issue #11280
2019-02-27 19:24:13 +09:00
Yu Watanabe
703bc7a2a6
test-network: drop relevant ip routing policy rules before testing
2019-02-27 19:23:46 +09:00
Yu Watanabe
72b7f1b976
test-network: add test for MTUBytes= in vlan or macvlan devices
2019-02-27 10:05:02 +09:00
Yu Watanabe
6609924c32
test-network: add more tests for IgnoreCarrierLoss=
...
Suggested by @amishmm in #9262 .
2019-02-25 09:34:14 +09:00
Yu Watanabe
2be6c5d2ec
test-network: add more tests for Bridge=
2019-02-25 09:34:14 +09:00
Yu Watanabe
cc3e488c7d
test-network: testing with two bond slaves
2019-02-23 19:43:25 +09:00
Yu Watanabe
4da3315452
test-network: add testcases for handling disable_ipv6 sysctl property
2019-02-21 11:08:07 +09:00
Yu Watanabe
ecdd039246
test-network: update cosmetic workaround
...
Almost all tests call copy_unit_to_networkd_unit_path() at first.
So, let's move the line break there.
2019-02-21 10:55:46 +09:00
Yu Watanabe
2dcaf38020
Merge pull request #11764 from yuwata/network-verify
...
network: introduce network_verify() and drop incompatible settings
2019-02-20 06:13:53 +09:00
Yu Watanabe
0cc972aac3
test-network: add tests for meaningless settings which should be ignored by networkd
2019-02-20 06:12:54 +09:00
Yu Watanabe
232152bcb1
test-network: check whether ethtool support driver field for dummy interfaces
...
Fixes #11758 .
2019-02-19 22:00:06 +09:00
Yu Watanabe
f32c600935
test-network: disable test for Driver field in networkctl
...
CentOS CI does not like the test. Let's at least tentatively disable the test.
2019-02-19 17:39:05 +09:00
Yu Watanabe
fde66c2120
test-network: update format used by networkctl status
2019-02-19 17:38:30 +09:00
Lennart Poettering
9c5675af76
Merge pull request #11729 from yuwata/fix-11721
...
sd-device: also store properties read from udev database to sd_device::properties_db
2019-02-18 16:02:26 +01:00
Lennart Poettering
1cfece4a45
Merge pull request #11681 from yuwata/network-link-enslaved-operstate
...
network: introduce new 'enslaved' operstate
2019-02-18 13:00:13 +01:00
Lennart Poettering
702451b038
Merge pull request #11698 from yuwata/fix-network-route-table
...
network: honor specified route table
2019-02-18 12:58:32 +01:00
Yu Watanabe
c3a8853f6e
test-network: add tests for bonding
2019-02-18 18:07:11 +09:00
Yu Watanabe
b117044c09
test-network: decrease sleep time in test_bind_carrier()
...
This effectively reverts 63eb09569a
,
as the commit does not fix #11724 .
2019-02-18 06:11:50 +09:00
Yu Watanabe
18c613dc36
test-network: add tests for VRF=
2019-02-17 01:25:21 +09:00
Yu Watanabe
0ae7a66d1a
test-network: add tests for DHCP.RouteTable=
2019-02-17 01:17:40 +09:00
Yu Watanabe
3b51bbe135
test-network: drop unused variable
2019-02-17 01:17:40 +09:00
Yu Watanabe
96fb7dc30f
test-network: add a tiny test for ID_NET_DRIVER= udev property
...
Test for #11721 .
2019-02-17 00:43:38 +09:00
Yu Watanabe
63eb09569a
test-network: increase sleep time in test_bind_carrier()
...
Hopefully fixes #11667 .
2019-02-16 07:22:54 +09:00
Lennart Poettering
a0279563d7
Merge pull request #11719 from yuwata/networkctl-wildcards
...
networkctl: accept wildcards to specify links
2019-02-15 11:44:24 +01:00
Lennart Poettering
19df3047f3
Merge pull request #9262 from ssahani/ignore-carrier-9111
...
networkd: allow to retain configs even if carrier is lost
2019-02-15 11:35:43 +01:00
Yu Watanabe
cd65d06720
test-network: add test for BindCarrier=
2019-02-15 11:30:17 +01:00
Yu Watanabe
308ae89c9b
test-network: add tests for wildcards in networkctl
2019-02-15 13:54:28 +09:00
Yu Watanabe
05514ae196
test-network: add tests for LinkLocalAddressing=
2019-02-13 02:36:15 +09:00
Yu Watanabe
b412fce830
test-network: use dnsmasq with --dhcp-alternate-port option to test DHCP.ListenPort=
...
Fixes #11675 .
2019-02-09 23:49:12 +09:00
Yu Watanabe
804b6cd26b
test-network: add testcases for IgnoreCarrierLoss=
2019-02-08 22:00:07 +09:00
Yu Watanabe
d586a2c30c
test-network: check port range and ipproto attributes are supported by kernel and ip command
2019-02-06 10:18:23 +01:00
Yu Watanabe
f5d191a9e7
test-network: add or drop whitespace
2019-02-03 05:27:15 +01:00
Yu Watanabe
3e9d555241
test-network: fix test_dhcp_server() and test_ipv6_prefix_delegation()
...
The tests have been broken since 30d3b54eba
.
2019-02-03 04:40:05 +01:00
Susant Sahani
7bea7f9b57
test-network: skip erspan test if not available
2019-01-30 14:30:59 +01:00
Lennart Poettering
f90bf549f7
Merge pull request #11569 from yuwata/first-step-11307
...
util-lib: warn if address is specified without prefix length
2019-01-29 11:25:55 +01:00
Yu Watanabe
0b5245a2ee
test-network: set missing prefixlen
2019-01-29 07:36:35 +01:00
Yu Watanabe
16ab043bda
test-network: add more checks in NetworkdNetDevTests.test_wireguard
2019-01-28 10:10:15 +01:00
Lennart Poettering
7c45deb20d
Merge pull request #11460 from yuwata/fix-11458
...
network: update address when static address was already configured by DHCP
2019-01-26 15:41:06 +01:00
Lennart Poettering
a8ea2833cf
Merge pull request #11375 from daxtens/issue5882
...
network: Fix IPv6 PreferredSource routes
2019-01-17 18:08:01 +01:00
Yu Watanabe
30d3b54eba
test: add a testcase for #11458
2019-01-17 15:38:17 +09:00
Daniel Axtens
20ca06a669
tests: Add test for IPv6 source routing
...
The test is a bit messy because it must be done on a device that
enforces a tentative state for IPv6 addresses, and it appears
that the dummy device does not. So we use a bond instead.
Signed-off-by: Daniel Axtens <dja@axtens.net>
2019-01-16 12:54:06 +11:00
Zbigniew Jędrzejewski-Szmek
29a93cb19d
Merge pull request #11418 from yuwata/fix-11404
...
network: fix infinite loop in setting up wireguard
2019-01-15 21:04:32 +01:00
Yu Watanabe
7e6636196a
test: add a testcase for Address.Peer= with ipv6
...
Testcase for #9130 .
2019-01-15 07:37:15 +09:00
Yu Watanabe
da44fb8a72
test: add a testcase for 23 wirguard peers
2019-01-14 10:08:58 +09:00
Yu Watanabe
c226800996
Merge pull request #11232 from yuwata/fix-9130-alternative
...
network: always check link is ready when address is updated
2019-01-08 12:22:21 +09:00
Yu Watanabe
6f783ce5f5
test-network: disable DNS function of dnsmasq
2019-01-02 18:37:10 +09:00
Yu Watanabe
0532bd0883
test-network: drop unused variable
2019-01-02 18:37:10 +09:00
Yu Watanabe
094b54790f
test: fix neighbor address
2019-01-02 18:37:10 +09:00
Yu Watanabe
ac60877f1d
test: add a testcase for Address.Peer= in .network unit
2018-12-23 08:04:54 +09:00
Susant Sahani
fde60a424e
netdev bond: add support to configure tlb_dynamic_lb
...
Closes https://github.com/systemd/systemd/issues/11135
Add test for bond : tlb_dynamic_lb
2018-12-15 18:15:16 +05:30
William A. Kennington III
e4a71bf36f
networkd: Static neighbor support
...
When using networkd we currently have no way of ensuring that static
neighbor entries are set when our link comes up. This change adds a new
section to the network definition that allows multiple static neighbors
to be set on a link.
2018-12-09 16:56:37 -08:00
Yu Watanabe
131717cbb4
test-network: make search_words_in_file() hit multi words
2018-12-06 16:48:42 +01:00
Yu Watanabe
e4eacdb09f
test-network: delete rules before running next test
2018-12-06 16:48:42 +01:00
Yu Watanabe
fa7cd60281
test-network: add a line break after starting networkd
...
This may be ugly. But otherwise, outputs of several check commands
are shown without new line...
2018-12-06 16:48:42 +01:00
Yu Watanabe
e40a58b5bc
test-network: check link before starting dnsmasq
2018-12-06 16:48:42 +01:00
Yu Watanabe
14ecd604a4
test-network: show command outputs
2018-12-06 16:48:41 +01:00
Yu Watanabe
a9bc5e370e
test-network: sort imported modules
2018-12-06 16:48:41 +01:00
Yu Watanabe
09ea6724e7
test-network: sort links and units
2018-12-06 16:48:41 +01:00
Yu Watanabe
14dc033574
test-network: fix typo in class name
2018-12-06 16:48:41 +01:00
Yu Watanabe
801503d22b
Merge pull request #10988 from ssahani/IFLA_BRPORT_MCAST_TO_UCAST
...
networkd: bridge add support to configure multicast_to_unicast
2018-12-06 14:32:52 +01:00
Susant Sahani
4d7ed14f9f
test-network: add test for bridge MulticastToUnicast
2018-12-06 11:54:14 +05:30
Susant Sahani
efecf9cd15
test-network: Add test for invert RPDB rule
2018-12-06 11:00:36 +05:30
Yu Watanabe
253de60634
Merge pull request #11021 from ssahani/isatap
...
networkd: Add support to configure ISATAP tunnel
2018-12-05 23:13:17 +01:00
Susant Sahani
d0e728b6cd
test-network: add test for ISATAP
2018-12-03 09:16:06 +05:30
Yu Watanabe
97f9df9e30
network: rename Protocol= in [RoutingPolicyRule] to IPProtocol=
2018-12-02 06:13:47 +01:00
Yu Watanabe
c0bf673376
test-network: stop systemd-networkd.socket during testing
...
To suppress noisy warning messages.
2018-11-28 22:00:40 +01:00
Yu Watanabe
bad4969bba
test-network: clear state file before starting networkd
...
Otherwise, some tests may disturb others, e.g.,
NetworkdNetWorkTests.test_routing_policy_rule_port_range and
NetworkdNetWorkTests.test_routing_policy_rule.
2018-11-28 21:40:57 +01:00
Yu Watanabe
d486a2d0c1
test-network: use /run instead of legacy /var/run
2018-11-28 19:55:01 +01:00
Yu Watanabe
fab57f7f13
Merge pull request #10948 from ssahani/iprule-port-proto
...
networkd: add support to configure ip rule port range and protocol.
2018-11-29 03:17:36 +09:00
Susant Sahani
926062f083
networkd: add support to configure ip rule port range and protocol.
...
Please see:
iprule: support for ip_proto, sport and dport match options
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=f686f764682745daf6a93b0a6330ba42a961f858
Closes 10622
2018-11-28 20:06:28 +05:30
Susant Sahani
0d34228fc0
fix: systemd-networkd reverse route ordering
...
We missing a default route. Add gateway first.
This fixes https://github.com/systemd/systemd/issues/5430
2018-11-28 23:19:00 +09:00
Susant Sahani
2266864b04
networkd: Add support for ERSPAN tunnel
...
Please see: https://patchwork.ozlabs.org/patch/800327/
```
[NetDev]
Name=erspan-test
Kind=erspan
[Tunnel]
Independent=true
ERSPANIndex=123
Local = 172.16.1.200
Remote = 172.16.1.100
Key=101
SerializeTunneledPackets=true
```
2018-11-27 11:04:42 +09:00
Yu Watanabe
f5050e48ae
test-network: add tests for #5430 and GatewayOnLink=
2018-11-26 18:47:52 +01:00
Yu Watanabe
d80734f7cd
test-network: add one more test for netdev dropin .conf files
...
For netdev, config files are loaded twice, and the first time,
only Match and NetDev setions are read. So, the test given by
the previous commit covers only the second loading.
This adds another test that also covers the first loading.
2018-11-26 22:48:27 +09:00
Yu Watanabe
013c8dc94d
test-network: add tests for dropin .conf files
2018-11-26 15:01:01 +09:00
David Anderson
d29dc4f1b8
Add a networkd test for 6rd interface creation.
...
Unfortunately we can't check the 6rd attribute, because it's not
exposed in /sys or anywhere other than netlink... But at least we
can check that networkd brings up an interface that looks right.
2018-11-09 18:45:38 -08:00
Tobias Jungel
db688b7e55
networkd: cleanup for #10542
...
fixes: 53b1f7d
2018-11-06 16:42:12 +03:00
Lennart Poettering
a54e373163
Merge pull request #10618 from yuwata/fix-10615
...
network: fix several issues in config parser
2018-11-05 17:37:25 +03:00
Evgeny Vereshchagin
201bf07f7c
tests: also use lsmod to check whether modules are available ( #10634 )
...
It's not entirely impossible to screw something up playing with
kernel modules on a Saturday evening :-) This PR fixes a scenario
where a module has been loaded into the kernel but the module itself
has been removed from the disk.
```
$ lsmod | grep wireg
wireguard 225280 0
ip6_udp_tunnel 16384 1 wireguard
udp_tunnel 16384 1 wireguard
$ modprobe wireguard
modprobe: FATAL: Module wireguard not found in directory /lib/modules/4.18.16-200.fc28.x86_64
$ sudo ./systemd-networkd-tests.py NetworkdNetDevTests.test_wireguard
...
modprobe: FATAL: Module wireguard not found in directory /lib/modules/4.18.16-200.fc28.x86_64
test_wireguard (__main__.NetworkdNetDevTests) ... unexpected success
----------------------------------------------------------------------
Ran 1 test in 5.152s
FAILED (unexpected successes=1)
```
This is a follow-up to https://github.com/systemd/systemd/pull/10625 .
2018-11-05 12:47:38 +09:00
Evgeny Vereshchagin
7a3bc5a8e5
tests: add a basic test for wireguard ( #10631 )
2018-11-04 02:03:43 +09:00
Yu Watanabe
22f64c32fa
test: UseRoutes= and UseTimezone= need to be in [DHCP] section
2018-11-04 00:31:46 +09:00
Yu Watanabe
9a4720a9ef
test-network: wait after removing links
...
After ec6a47044a
, networkd starts
soon after removing links used by previous test. That causes
some racy situation of removing links and detecting links by networkd.
2018-11-04 00:31:46 +09:00
Evgeny Vereshchagin
7a0a37b283
tests: mark a few tests as expected failures when the required modules aren't available
...
Closes https://github.com/systemd/systemd/issues/10617 .
2018-11-03 00:12:01 +01:00
Evgeny Vereshchagin
f7bdd562a9
tests: make NetworkdNetWorkTests.test_routing_policy_rule pass on CentOS
...
Depending on the content of /etc/iproute2/rt_dsfield, ip can print either
`0x08` or `throughput` as was shown in https://github.com/systemd/systemd/issues/10617#issuecomment-435200859 .
2018-11-02 17:10:59 +01:00
Tobias Jungel
99f68ef02d
networkd: add missing bonding options ( #10542 )
...
Add support for bonding options system prio, port key and actor system mac.
These options exist in the linux kernel since 4.2
(torvalds/linux@171a42c38c )
Details:
https://www.kernel.org/doc/Documentation/networking/bonding.txt
2018-11-02 10:31:20 +09:00
Yu Watanabe
6aea927681
test: make systemd-networkd-tests.py run on arbitrary directory
2018-10-03 14:38:30 +09:00
Yu Watanabe
ec6a47044a
test: replace stop+start by restart
...
This suppress the following warnings:
```
Warning: Stopping systemd-networkd.service, but it can still be activated by:
systemd-networkd.socket
```
2018-10-03 14:36:34 +09:00
Susant Sahani
1f0e310952
test: Add tests for networkd ( #10147 )
2018-09-29 14:36:25 +02:00