2bd35d67 | 26-Oct-2022 |
William A. Kennington III <wak@google.com> |
routing_table: Cleanup types to avoid unnecessary conversions
Change-Id: I36d430b91d606df0afdae70e2da18ae750b1df04 Signed-off-by: William A. Kennington III <wak@google.com> |
09f3a4ad | 25-Oct-2022 |
William A. Kennington III <wak@google.com> |
ethernet_interface: Merge VLAN into EthernetInterface
This simplifies the ethernet interface as it codepended on the vlan interface to make VLANs. It also removes the naming dependency and tracks VL
ethernet_interface: Merge VLAN into EthernetInterface
This simplifies the ethernet interface as it codepended on the vlan interface to make VLANs. It also removes the naming dependency and tracks VLANs by adapter type and parent indexes.
Change-Id: I8db09cc2474472e6d4a06c6be5cf0440ee48d132 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
7784856d | 26-Oct-2022 |
William A. Kennington III <wak@google.com> |
test: Make mock syscalls take InterfaceInfo
This will make it easier to expand the parameters and plumb data through the mock.
Change-Id: I5ca015a0494c092d9d247bbb2b7d0122c5e58fd8 Signed-off-by: Wi
test: Make mock syscalls take InterfaceInfo
This will make it easier to expand the parameters and plumb data through the mock.
Change-Id: I5ca015a0494c092d9d247bbb2b7d0122c5e58fd8 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
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 ...
|
bb0eaccb | 21-Oct-2022 |
William A. Kennington III <wak@google.com> |
types: Flesh out address comparison and string formatting
Change-Id: Ib505232e15e8db012d07759163f780b00ea4b7d3 Signed-off-by: William A. Kennington III <wak@google.com> |
d298f93a | 17-Oct-2022 |
William A. Kennington III <wak@google.com> |
ethernet_interface: Refactor object creation args
We want to be able to pass a bunch of interface properties directly into interface instead of querying them directly. This will be used later for rt
ethernet_interface: Refactor object creation args
We want to be able to pass a bunch of interface properties directly into interface instead of querying them directly. This will be used later for rtnetlink enabled interface creation.
Change-Id: I93fbd460a8a54515e84c415f085548cb5528f231 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 ...
|
003b8b79 | 06-Jan-2022 |
Asmitha Karunanithi <asmitk01@in.ibm.com> |
Set static & dhcp sent ntp server ip on ethernet obj
Currently there is no way to differentiate between the Static and DHCP assigned NTP servers at dbus
This commit adds StaticNTPServers peroperty
Set static & dhcp sent ntp server ip on ethernet obj
Currently there is no way to differentiate between the Static and DHCP assigned NTP servers at dbus
This commit adds StaticNTPServers peroperty to hold the static configuration of NTP servers. This is a read-write property. The existing NTPServer propery will hold both static and DHCP assigned NTP servers. This is a read-only property.
The static and dhcp sent ntp server details are present in the dbus object hosted by systemd-timesyncd service (mentioned in Tested By section).
In this change, networkd fetches the ntp server details from the timesyncd dbus object and set the "NTPServers" property with dhcp sent ip and "StaticNTPServers" will be set from the configuration file.
Tested By:
* Change the ntp server ips in dhcp config file & restart dhcpd * timesyncd dbus object contains the new list of ips as below:
busctl introspect org.freedesktop.timesync1 /org/freedesktop/timesync1 NAME TYPE SIGNATURE RESULT/VALUE FLAGS org.freedesktop.DBus.Introspectable interface - - - .Introspect method - s - org.freedesktop.DBus.Peer interface - - - .GetMachineId method - s - .Ping method - - - org.freedesktop.DBus.Properties interface - - - .Get method ss v - .GetAll method s a{sv} - .Set method ssv - - .PropertiesChanged signal sa{sv}as - - org.freedesktop.timesync1.Manager interface - - - .FallbackNTPServers property as 4 "time1.google.com" "time2.google.com"… const .Frequency property x 0 - .LinkNTPServers property as 1 "1.1.1.1" - .NTPMessage property (uuuuittayttttbtt) 0 0 0 0 0 0 0 4 0 0 0 0 0 1844453508490… emits-change .PollIntervalMaxUSec property t 2048000000 const .PollIntervalMinUSec property t 32000000 const .PollIntervalUSec property t 2048000000 - .RootDistanceMaxUSec property t 5000000 const .ServerAddress property (iay) 2 4 1 1 1 1 - .ServerName property s "1.1.1.1" - .SystemNTPServers property as 0 const
* Since network configuration has changed, the service restarts and ntp server details are loaded from timesyncd dbus object & config file, and are set in dbus objects hosted by networkd.
command: busctl introspect xyz.openbmc_project.Network /xyz/openbmc_project/network/eth0 busctl introspect xyz.openbmc_project.Network /xyz/openbmc_project/network/eth1
* Ethernet interface network config files will be updated with NTP=<ip addresses> under [Network]
command: cat /etc/systemd/network/00-bmc-eth0.network cat /etc/systemd/network/00-bmc-eth1.network
Signed-off-by: Asmitha Karunanithi <asmitk01@in.ibm.com> Change-Id: If8b1b3ed2afb531f179e00da173f6f86a1bf0c18
show more ...
|
9ecb90eb | 14-Oct-2022 |
William A. Kennington III <wak@google.com> |
test/ethernet_interface: Improve syscall test coverage
Change-Id: Ia71a030f2e2e19f2cc191992929ef08d0fa917c2 Signed-off-by: William A. Kennington III <wak@google.com> |
991a8e81 | 11-Oct-2022 |
William A. Kennington III <wak@google.com> |
ethernet_interface: Refactor object hashing
Change-Id: Ic1022410fea18be5508c8fa08a27e4ae1a2d51e0 Signed-off-by: William A. Kennington III <wak@google.com> |
e25f8b49 | 11-Oct-2022 |
William A. Kennington III <wak@google.com> |
ipaddress: Remove obsolete gateway parameter
Change-Id: I0eb7c84951c2277a5c69fb35eb989e7e19bd897d 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> |
dd9ef815 | 05-Oct-2022 |
William A. Kennington III <wak@google.com> |
network_manager: Cleanup map type
We want the map type to be a unique_map that allows and type of strings for comparsion.
Change-Id: I22158e85d90256fe827a0a2fb389acb68bc909a1 Signed-off-by: William
network_manager: Cleanup map type
We want the map type to be a unique_map that allows and type of strings for comparsion.
Change-Id: I22158e85d90256fe827a0a2fb389acb68bc909a1 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
ff12acbb | 07-Oct-2022 |
William A. Kennington III <wak@google.com> |
util: Add non-family isValidIP
Change-Id: Ib039658d466c0b10b6bc3d1dde9bf5926a124c65 Signed-off-by: William A. Kennington III <wak@google.com> |
97b5dc68 | 07-Oct-2022 |
William A. Kennington III <wak@google.com> |
util: Refactor addrFromBuf
Change-Id: I1b2deed483eb25034ca9b4717388119af3da1c8d Signed-off-by: William A. Kennington III <wak@google.com> |
e5a48ab0 | 22-Apr-2019 |
William A. Kennington III <wak@google.com> |
util: Refactor isValidPrefix to reduce address family re-use
Change-Id: I13abd5b110709210b98b4ea74e3129c3ab42bd46 Signed-off-by: William A. Kennington III <wak@google.com> |
feb7aab0 | 03-Oct-2022 |
William A. Kennington III <wak@google.com> |
util: Fix mac truncation
We don't want to allow MACs to be silently truncated.
Change-Id: I1d2771c481bccb30e957b829fd1db1e4db0dc051 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> |
8060c0da | 18-Aug-2022 |
William A. Kennington III <wak@google.com> |
ethernet_interface: Support DHCP4/6 Properties
We are splitting the DHCPEnabled option into 3 new options to reflect all of the desired states (DHCP4, DHCP6, IPv6AcceptRA). We will still support DHC
ethernet_interface: Support DHCP4/6 Properties
We are splitting the DHCPEnabled option into 3 new options to reflect all of the desired states (DHCP4, DHCP6, IPv6AcceptRA). We will still support DHCPEnabled until all of the old users have transitioned away. This commit makes DHCPEnabled a view / modifier of the other options.
Tested: Toggled the DHCPEnabled settings on a BMC and verified that the state updated correctly along with the other properties to affects. Verified that changing the individual properties updates the DHCPEnabled property to the correct enum state.
Change-Id: I2cef15d7eaf80c8d717a11d090f61ca5d275821a Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
0caf2213 | 18-Aug-2022 |
William A. Kennington III <wak@google.com> |
ethernet_interface: Remove DHCP from constructor
It should be set or configured just like all other parameters.
Change-Id: Ic93de4e80b4da0de2e97b9655c424fa55a6844bf Signed-off-by: William A. Kennin
ethernet_interface: Remove DHCP from constructor
It should be set or configured just like all other parameters.
Change-Id: Ic93de4e80b4da0de2e97b9655c424fa55a6844bf Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
409f1a66 | 11-Aug-2022 |
William A. Kennington III <wak@google.com> |
config_parser: Add function for writing files
This will be used by the configuration writers shortly.
Change-Id: I6e72b181e365e34808c8e5e4790c446124dc13a3 Signed-off-by: William A. Kennington III <
config_parser: Add function for writing files
This will be used by the configuration writers shortly.
Change-Id: I6e72b181e365e34808c8e5e4790c446124dc13a3 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 ...
|
0dd0937d | 18-Aug-2022 |
William A. Kennington III <wak@google.com> |
config_parser: Add type checking to config map
In order to guarantee the output file is consistent, the constructed values are checked for safety.
Change-Id: Ib70e369471e9f2f47a1cdb5522f4a3bebc3780
config_parser: Add type checking to config map
In order to guarantee the output file is consistent, the constructed values are checked for safety.
Change-Id: Ib70e369471e9f2f47a1cdb5522f4a3bebc37805e 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 ...
|