io.systemd.Network.Link¶
| Property | Value |
|---|---|
| Go package | github.com/rossedman/sdvarlink/systemd/latest/networklink |
| Socket | /run/systemd/netif/io.systemd.Network |
| Available since | systemd v260 |
| Methods · types · errors | 2 · 0 · 0 |
Methods¶
Up¶
Bring the specified link up.
Parameters
| Field | Type | Description |
|---|---|---|
InterfaceIndex |
?int |
Index of the interface. If specified together with InterfaceName, both must reference the same link. |
InterfaceName |
?string |
Name of the interface. If specified together with InterfaceIndex, both must reference the same link. |
allowInteractiveAuthentication |
?bool |
Controls whether interactive authentication (via polkit) shall be allowed. If unspecified defaults to false. |
Down¶
Bring the specified link down.
Parameters
| Field | Type | Description |
|---|---|---|
InterfaceIndex |
?int |
Index of the interface. If specified together with InterfaceName, both must reference the same link. |
InterfaceName |
?string |
Name of the interface. If specified together with InterfaceIndex, both must reference the same link. |
allowInteractiveAuthentication |
?bool |
Controls whether interactive authentication (via polkit) shall be allowed. If unspecified defaults to false. |