#
ad205028 |
| 16-Aug-2024 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda forma
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda formatting also changed, so we have made changes to the organization default style format to better handle lambda formatting.
See I5e08687e696dd240402a2780158664b7113def0e for updated style. See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.
Change-Id: I335e0c726360eaae85b9b54c16b5dcbe4a3f182e Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
c3c6b4c3 |
| 18-Apr-2024 |
William A. Kennington III <wak@google.com> |
dhcp_configuration: Use the correct file for DHCP settings
Now that we are writing settings per interface, we should only look at settings for that interface itself, not the latest file in the netwo
dhcp_configuration: Use the correct file for DHCP settings
Now that we are writing settings per interface, we should only look at settings for that interface itself, not the latest file in the network directory.
Change-Id: I51910a28cac7fa8b876d4c2c28617023f24ed61a Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
44937b1a |
| 17-Apr-2024 |
William A. Kennington III <wak@google.com> |
dhcp_configuration: SendHostname is valid for v4 and v6
We should present this option for both DHCP types as systemd supports it for both. It would be surprising to an end user if DHCPv6 just ate th
dhcp_configuration: SendHostname is valid for v4 and v6
We should present this option for both DHCP types as systemd supports it for both. It would be surprising to an end user if DHCPv6 just ate this option without passing it along.
Change-Id: I7ae046c0a92ab199e2026ffe3dfb78b8763223a0 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
f179e70c |
| 17-Apr-2024 |
William A. Kennington III <wak@google.com> |
ethernet_interface: Simplify DHCPConfiguration enumeration
We don't have more than 2 types of DHCP objects, don't use an arbitrary vector and depend on enum values for indices.
Change-Id: I5c519e8b
ethernet_interface: Simplify DHCPConfiguration enumeration
We don't have more than 2 types of DHCP objects, don't use an arbitrary vector and depend on enum values for indices.
Change-Id: I5c519e8b95b273a4684e553f18027f038d025f17 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
b6595b29 |
| 23-Feb-2024 |
Ravi Teja <raviteja28031990@gmail.com> |
DHCP Config: Add DomainEnabled D-bus property
This commit implements DomainEnabled D-bus property for DHCP configuration. When DomainEnabled is set to true then the domain names received from the DH
DHCP Config: Add DomainEnabled D-bus property
This commit implements DomainEnabled D-bus property for DHCP configuration. When DomainEnabled is set to true then the domain names received from the DHCP server
Tested by: Set DomainEnabled D-bus property to true or false Check domain name configured on BMC
Change-Id: Ia3db5f5054d4c758be336851175b05ddc05d2eda Signed-off-by: Ravi Teja <raviteja28031990@gmail.com>
show more ...
|
#
57dfea94 |
| 05-May-2023 |
Jishnu CM <jishnunambiarcm@duck.com> |
Configure DHCP4 and DHCP6 parameters independently
At present, DHCP parameters like DNSEnabled, NTPEnabled etc. are shared between DHCPv4 and DHCPv6 in the network configuration.
Hence any update o
Configure DHCP4 and DHCP6 parameters independently
At present, DHCP parameters like DNSEnabled, NTPEnabled etc. are shared between DHCPv4 and DHCPv6 in the network configuration.
Hence any update on the ipv4 parameters impacts the ipv6 and get applied to both the interfaces.
This change is to enable the possibility to configure DHCP attributes independently, by having different dbus objects for dhcp4 and dhcp6 and moving the dhcp configuration from network level to ethernet interface.
tested by:
Used the busctl command to set and get the parameter values individually for both DHCPv4 and DHCPv6. Verified the network configuration file is updated accordingly
Tree Structure: busctl tree xyz.openbmc_project.Network `-/xyz `-/xyz/openbmc_project `-/xyz/openbmc_project/network |-/xyz/openbmc_project/network/config |-/xyz/openbmc_project/network/eth0 | |-/xyz/openbmc_project/network/eth0/dhcp4 | `-/xyz/openbmc_project/network/eth0/dhcp6 `-/xyz/openbmc_project/network/eth1 |-/xyz/openbmc_project/network/eth1/dhcp4 `-/xyz/openbmc_project/network/eth1/dhcp6
Change-Id: If7dbbf596bdaf866ea459d631e716153f54302ec Signed-off-by: Jishnu CM <jishnunambiarcm@duck.com>
show more ...
|
#
1d25ca4e |
| 30-May-2023 |
William A. Kennington III <wak@google.com> |
treewide: Make logging variables more consistent
This aims to better group related variables and differentiate keywords like INTERFACE_NAME into NET vs DBUS.
Tested: Ran on a machine to verify that
treewide: Make logging variables more consistent
This aims to better group related variables and differentiate keywords like INTERFACE_NAME into NET vs DBUS.
Tested: Ran on a machine to verify that our info log messages still look sane in the journal.
Change-Id: Ic4d1faaaf5c432e69cacd387fa972481916b6bc8 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
89d734b9 |
| 10-May-2023 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest .clang-format from the docs repository and reformat the repository.
Change-Id: Ia4966a0790437eb0fc011c747f3be2a52884e4d8 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
a2947b4b |
| 17-Apr-2023 |
Jagpal Singh Gill <paligill@gmail.com> |
logging: switch networkd static_library to lg2
This commit switches logging to lg2 in the following files - 1. src/dhcp_configuration.cpp 2. src/dhcp_configuration.cpp 3. src/ipaddress.cpp 4. src/sy
logging: switch networkd static_library to lg2
This commit switches logging to lg2 in the following files - 1. src/dhcp_configuration.cpp 2. src/dhcp_configuration.cpp 3. src/ipaddress.cpp 4. src/system_configuration.cpp 5. src/system_queries.cpp
Tested: Build passes with "ninja -C build".
Change-Id: I492c7579c968810b783836b652e450ff89b8cd4b Signed-off-by: Jagpal Singh Gill <paligill@gmail.com>
show more ...
|
#
9ede1b74 |
| 21-Nov-2022 |
William A. Kennington III <wak@google.com> |
treewide: Codify memory pinning
This enforces movability constraints.
Change-Id: I49dbd43a791c1d70eb7e97f30708231c053901d9 Signed-off-by: William A. Kennington III <wak@google.com>
|
#
d99e6dba |
| 15-Nov-2022 |
William A. Kennington III <wak@google.com> |
treewide: Cleanup signal emission
Don't emit properties changed prior to interfaces added.
Change-Id: I7f88b8052a323ca49ce9f16fe446596213e3fdb5 Signed-off-by: William A. Kennington III <wak@google.
treewide: Cleanup signal emission
Don't emit properties changed prior to interfaces added.
Change-Id: I7f88b8052a323ca49ce9f16fe446596213e3fdb5 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
5b17938c |
| 15-Nov-2022 |
William A. Kennington III <wak@google.com> |
treewide: Completely remove global refresh
We no longer need any of the global refresh code as we can dynamically receive all of the updates to network configuration.
Change-Id: Ia8cb3af827c599c17d
treewide: Completely remove global refresh
We no longer need any of the global refresh code as we can dynamically receive all of the updates to network configuration.
Change-Id: Ia8cb3af827c599c17d5df9fdddaf6cdc6546050d Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
180498c5 |
| 14-Nov-2022 |
William A. Kennington III <wak@google.com> |
dhcp_configuration: Don't depend on interface queries
We want to depend just on the filesystem as that's where we obtain the information to populate the DHCP config.
Change-Id: I09bc5e8f7d3497cb4c1
dhcp_configuration: Don't depend on interface queries
We want to depend just on the filesystem as that's where we obtain the information to populate the DHCP config.
Change-Id: I09bc5e8f7d3497cb4c157aa7c6976e58730fa793 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
ffab00d0 |
| 07-Nov-2022 |
William A. Kennington III <wak@google.com> |
ethernet_interface: DHCP settings don't require refresh
Change-Id: I69c004117779be2b985a7a03a65040bc7a119786 Signed-off-by: William A. Kennington III <wak@google.com>
|
#
fd862be8 |
| 09-Oct-2022 |
William A. Kennington III <wak@google.com> |
system_queries: Get Interface Info from netlink
This reduces all of the interface information probing down to a single netlink request for all the label + mac information needed to build an ethernet
system_queries: Get Interface Info from netlink
This reduces all of the interface information probing down to a single netlink request for all the label + mac information needed to build an ethernet interface.
If we ever plumb the ethernet stats into dbus, we can get that information with this same netlink code.
Change-Id: Ied8a73639dcd74bcfecda392905638573ab7970f Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
2e09d278 |
| 14-Oct-2022 |
William A. Kennington III <wak@google.com> |
system_queries: Migrate system queries into a single place
This provides better separation of the DBus interface and the underlying system interactions.
Change-Id: I8bf7a44c679ab065f959af19a00c2989
system_queries: Migrate system queries into a single place
This provides better separation of the DBus interface and the underlying system interactions.
Change-Id: I8bf7a44c679ab065f959af19a00c29897c1d5c48 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
be3bd2fc |
| 11-Oct-2022 |
William A. Kennington III <wak@google.com> |
treewide: Clean up string parameters
Change-Id: I0d3ea6a83465181d3edec1587ff824103489072e Signed-off-by: William A. Kennington III <wak@google.com>
|
#
96444795 |
| 05-Oct-2022 |
William A. Kennington III <wak@google.com> |
network_manager: Allow direct access to interfaces
Change-Id: I3dc2bb944b8d3a7873e26ce2958a2cb1d9be95af Signed-off-by: William A. Kennington III <wak@google.com>
|
#
95530ec9 |
| 19-Aug-2022 |
William A. Kennington III <wak@google.com> |
treewide: Cleanup unused includes
Change-Id: Ied2a0d97d2c31dc2b370452768a7f41d9ecf07f3 Signed-off-by: William A. Kennington III <wak@google.com>
|
#
e94c9ffc |
| 18-Aug-2022 |
William A. Kennington III <wak@google.com> |
util: Combine systemd value parsers
We want to use the same function for parsing out the last property of a systemd file. This combines all of the lookups into a single function.
Change-Id: I590d31
util: Combine systemd value parsers
We want to use the same function for parsing out the last property of a systemd file. This combines all of the lookups into a single function.
Change-Id: I590d31e5e1019cd38a78d640188e486b8854a544 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
34bb3e20 |
| 18-Aug-2022 |
William A. Kennington III <wak@google.com> |
config_parser: Allow modifying Parser map
This makes it possible to mutate the map owned by the parser. This will eventually be used for implementing write updates.
Change-Id: I89deb4073a0a3bd59528
config_parser: Allow modifying Parser map
This makes it possible to mutate the map owned by the parser. This will eventually be used for implementing write updates.
Change-Id: I89deb4073a0a3bd59528c6b70fc55b49bc6cd944 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
e21a5cf9 |
| 09-Aug-2022 |
William A. Kennington III <wak@google.com> |
config_parser: Split up sections
We can't always combine sections together in network files as sections like
[Address] Address=::1/128 Peer=fe80::1 [Address] Address=::2/128 Peer=fe80::2
Require t
config_parser: Split up sections
We can't always combine sections together in network files as sections like
[Address] Address=::1/128 Peer=fe80::1 [Address] Address=::2/128 Peer=fe80::2
Require that they are grouped accordingly. Rewrite the storage logic of the config parser to support this logical organization.
Change-Id: I34ae1523202f8770fe3dcac010fb6226dd28b9ec Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
a520a39d |
| 08-Aug-2022 |
William A. Kennington III <wak@google.com> |
config_parser: Reduce number of file reads
This changes focuses on reducing the number of Parser() constructions to limit the number of duplicate file reads.
Change-Id: I05df943844c70dc6aa729ab744d
config_parser: Reduce number of file reads
This changes focuses on reducing the number of Parser() constructions to limit the number of duplicate file reads.
Change-Id: I05df943844c70dc6aa729ab744d2d405cbfe2c76 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
150753f3 |
| 05-Aug-2022 |
William A. Kennington III <wak@google.com> |
config_parser: Add common boolean parser
This more accurately parses systemd values instead of just comparing to "false" or "true".
Change-Id: I0d70ef418075d555bf6f090fefa0b34332491ed0 Signed-off-b
config_parser: Add common boolean parser
This more accurately parses systemd values instead of just comparing to "false" or "true".
Change-Id: I0d70ef418075d555bf6f090fefa0b34332491ed0 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
25511a1c |
| 04-Aug-2022 |
William A. Kennington III <wak@google.com> |
config_parser: Cleanups and modern c++ standards
This was exposing many functions and semantics that are unused by the application. The goal is to simplify the interface and convert to using types l
config_parser: Cleanups and modern c++ standards
This was exposing many functions and semantics that are unused by the application. The goal is to simplify the interface and convert to using types like `string_view` and referenceable lists where possible.
Change-Id: I4cba6326f9a96a943d384165e656f8589f931959 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|