Dan Streetman
a853652ae9
save link activation policy to state file and display in networkctl
2021-01-21 12:05:17 -05:00
Dan Streetman
61135582e0
network: add ActivationPolicy= configuration parameter
...
This parameter allows configuring the activation policy for an interface,
meaning how it manages the interface's administrative state (IFF_UP flag).
The policy can be configured to bring the interface either up or down when
the interface is (re)configured, to always force the interface either up or
down, or to never change the interface administrative state.
If the interface is bound with BindCarrier=, its administrative state is
controlled by the interface(s) it's bound to, and this parameter is forced
to 'bound'.
This changes the default behavior of how systemd-networkd sets the IFF_UP
flag; previously, it was set up (if not already up) every time the
link_joined() function was called. Now, with the default ActivationPolicy=
setting of 'up', it will only set the IFF_UP flag once, the first time
link_joined() is called, during an interface's configuration; and on
the first link_joined() call each time the interface is reconfigured.
Fixes : #3031
Fixes : #17437
2021-01-21 11:49:43 -05:00
Susant Sahani
0c7bd7ecbd
network: networkd-network use TAKE_PTR
2021-01-20 15:09:26 +01:00
Susant Sahani
6de530f2b8
network: Use hashmap_ensure_put
2021-01-20 15:09:20 +01:00
Susant Sahani
9b1fd1f55b
network: ndisc - Use ordered_set_ensure_put
2021-01-20 15:09:14 +01:00
Susant Sahani
c038ce4606
network: add support to RoutingPolicyRule lookup table name
2021-01-19 16:37:46 +00:00
Yu Watanabe
7b5ed18779
Merge pull request #18294 from ssahani/net-2
...
tree wide use ensure_put
2021-01-19 16:46:41 +09:00
Yu Watanabe
7e2757c42f
Merge pull request #18038 from yuwata/meson-split
...
meson: various cleanups
2021-01-19 12:22:34 +09:00
Yu Watanabe
8d40961c3c
meson: slightly disentangle code dependencies
...
But, still sd-id128 is used in src/basic.
2021-01-19 07:06:32 +09:00
Yu Watanabe
b09f01463a
meson: enable several tests even if the relevant features are disabled
2021-01-19 07:04:19 +09:00
Yu Watanabe
5acb3cabd1
meson: make the second and third elements of tests or fuzzers optional
...
Then, we can shorten many test definitions.
2021-01-19 07:04:19 +09:00
Yu Watanabe
99b9f8fddd
sd-journal: move source files for sd-journal to src/libsystemd/sd-journal
2021-01-19 07:04:18 +09:00
Susant Sahani
ee9ead76bb
network: wait-online - add a assert
2021-01-18 21:35:24 +01:00
Susant Sahani
3f70f938a0
network: wait-online - use hashmap_ensure_put
2021-01-18 21:35:20 +01:00
Susant Sahani
b2cb2e82c8
network: radv - use hashmap_ensure_put
2021-01-18 21:34:46 +01:00
Susant Sahani
b5b9b0e7ba
network: Use TAKE_PTR
2021-01-18 21:11:31 +01:00
Susant Sahani
9fa3e794ac
network: network -- use ordered_hashmap_ensure_put
2021-01-18 21:11:01 +01:00
Susant Sahani
28d9587be5
network: address - use ordered_hashmap_ensure_put
2021-01-18 21:09:27 +01:00
Susant Sahani
9d6bb21f37
network: macsec - use ordered_hashmap_ensure_put
2021-01-18 20:16:50 +01:00
Susant Sahani
d1ce835989
network: bond - use ordered_set_ensure_put
2021-01-18 13:00:35 +01:00
Yu Watanabe
aac6673f02
network: address-pool: also check conflicts with foreign addresses
...
Fixes CI issue found in
https://github.com/systemd/systemd-centos-ci/pull/334 .
2021-01-17 23:23:08 +00:00
Susant Sahani
5a3e1cb918
network: tc use TAKE_PTR
2021-01-17 23:26:14 +09:00
Susant Sahani
ebffea2a25
network: Use ordered_hashmap_ensure_put ( #18233 )
2021-01-17 20:07:02 +09:00
Yu Watanabe
f9ead1a2f4
Merge pull request #18230 from ssahani/macvlan-bcqueuelen
...
network: macvlan - add support to configure rx queue for broadcast / multicast
2021-01-17 20:05:22 +09:00
Susant Sahani
dca0a4e131
network: macvlan - add support to configure rx queue for broadcast/multicast
2021-01-17 08:39:28 +01:00
Yu Watanabe
16ed53658a
Merge pull request #18243 from ssahani/ensure-put-use
...
tree-wide: introduce hashmap_ensure_put() and use it
2021-01-17 15:39:41 +09:00
Yu Watanabe
95dd454edc
Merge pull request #18261 from ssahani/net2
...
network: modernize routing policy rule and add 0 validation where needed
2021-01-17 15:39:01 +09:00
Susant Sahani
cda7fc8db3
network: tighten variable scope used in loop ( #18277 )
2021-01-17 15:38:33 +09:00
Susant Sahani
a307a7dd38
network: nexthop - use hashmap_ensure_put
2021-01-16 23:10:32 +01:00
Susant Sahani
dcd46cc42d
network: use hashmap_ensure_put
2021-01-16 23:10:18 +01:00
Susant Sahani
8eeffefbf0
network: routing-policy-rule - TAKE_PTR
2021-01-16 23:04:07 +01:00
Susant Sahani
fd9d7de176
network: route - add a zero verification for tcp window
2021-01-16 23:04:07 +01:00
Susant Sahani
0132453c40
network: tc - use TAKE_PTR ( #18266 )
...
* network: tc cake - use TAKE_PTR
* network: tc htb - use TAKE_PTR
* network: tc pie - use TAKE_PTR
* network: tc netem - use TAKE_PTR
* network: tc hhf - use TAKE_PTR
* network: tc gred - use TAKE_PTR
* network: tc fq codel - use TAKE_PTR
* network: tc fifo - use TAKE_PTR
* network: tc drr - use TAKE_PTR
* network: tc qdisc - use TAKE_PTR
2021-01-17 06:08:36 +09:00
Luca Boccassi
55eeb47631
Merge pull request #18264 from ssahani/net3
...
network: Use TAKE_PTR
2021-01-16 12:16:43 +00:00
Luca Boccassi
66e27e698e
Merge pull request #18268 from ssahani/net5
...
network: tighten variable scope used in loop
2021-01-16 12:13:14 +00:00
Susant Sahani
995606ad5b
network: manager tighten variable scope used in loop
2021-01-16 12:07:33 +00:00
Susant Sahani
8cb3465100
network: route - use ordered_set_ensure_put
2021-01-16 12:05:44 +00:00
Susant Sahani
dea161d9a1
network: address label - use TAKE_PTR
2021-01-15 21:47:38 +01:00
Susant Sahani
eccc11a47a
network: mdb - use TAKE_PTR
2021-01-15 21:47:26 +01:00
Susant Sahani
b48e277f47
networkctl: tighten variable scope used in loop
2021-01-15 21:44:16 +01:00
Susant Sahani
f4c6fcd766
network: macsec - tighten variable scope used in loop
2021-01-15 20:30:04 +01:00
Susant Sahani
6fa8acfb5a
network: generator tighten variable scope used in loop
2021-01-15 20:26:25 +01:00
Susant Sahani
fb7a534f7f
network: nexthop - use TAKE_PTR
2021-01-15 18:55:17 +01:00
Susant Sahani
4f38ba3889
network: online - use hashmap_ensure_put
2021-01-15 14:32:16 +01:00
Susant Sahani
7a0c0e0e41
network: routing policy rule - Use hashmap_ensure_put
2021-01-15 14:29:42 +01:00
Susant Sahani
ecd80ce26c
network: route - Use hashmap_ensure_put
2021-01-15 14:29:42 +01:00
Susant Sahani
b9eea0a753
network: radv - Use hashmap_ensure_put
2021-01-15 14:29:42 +01:00
Susant Sahani
700661ed75
network: neighbor - use hashmap_ensure_put
2021-01-15 14:29:42 +01:00
Susant Sahani
f222165e3d
network: mdb - use hashmap_ensure_put
2021-01-15 14:29:42 +01:00
Susant Sahani
190b3b5c30
network: link - use hashmap_ensure_put
2021-01-15 14:29:42 +01:00