summaryrefslogtreecommitdiffstats
path: root/ethernet_interface.hpp
Commit message (Collapse)AuthorAgeFilesLines
* vlan: Modify create method to return an ObjectPathWilliam A. Kennington III2019-04-091-1/+1
| | | | | | | | This will be nice to have for ipmid so that it can easily figure out the path of the new vlan object when it creates one. Change-Id: I6b93c5e64499c0cb9e36e8354eda6089bfd6d6c9 Signed-off-by: William A. Kennington III <wak@google.com>
* Network:Modified create interface to return the D-Bus object IDraviteja-b2019-04-041-2/+3
| | | | | | | | Currently, the create interface doesn't return the Object identifier, this commit is to modify Create Inferface to return the object identifier. Change-Id: Icbd30481a1173a0c2b8dbe32ba913504555a119a Signed-off-by: raviteja-b <raviteja28031990@gmail.com>
* Fix formatting issuesRatan K Gupta2018-09-151-1/+0
| | | | | | | | Some of the formatting issues which brought by the earlier commit(clang-formatting) is fixed with this commit. Signed-off-by: Ratan K Gupta <ratagupt@linux.vnet.ibm.com>
* clang-format: Update to match docs repoGunnar Mills2018-09-151-188/+187
| | | | | | | | | Update the .clang-format file and run clang-format-6.0. This .clang-format matches the example one in https://github.com/openbmc/docs/blob/master/cpp-style-and-conventions.md#clang-formatting Change-Id: Ia331c9a5b040e1a3c45a0ebf1b8d776d93b05ae5 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* reorder headersPatrick Venture2018-08-271-5/+4
| | | | | | | | | | | | | | | | | | Reordering all the headers to the following structure: header file: local c cpp (including openbmc libraries) source file: source.hpp (if applicable) local c cpp Change-Id: Ia74a5c761a3029819366159de3cfd40c5e4c4a2c Signed-off-by: Patrick Venture <venture@google.com>
* Throw error when invalid MAC Address is setGunnar Mills2018-06-201-1/+1
| | | | | | | | | | | | sdbusplus supports errors on properties, so we can now throw exceptions on such cases as invalid parameters. Also changed the journal log levels to ERR. Tested: Built an image and see invalid parameter errors on values like garbage MAC addresses and non-admin MAC Addresses. Change-Id: I69687bbf34fe51f0c812f40dfc99bb88ce141a2f Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Spelling fixesGunnar Mills2018-04-081-2/+2
| | | | | | | | | Spelling errors found using github.com/lucasdemarchi/codespell A tool to fix common misspellings. This tool is licensed under GNU General Public License, version 2. Change-Id: Ia0a4d655510a1d5f81ac369bdad9f7cfbd675484 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Add DNS supportRatan Gupta2017-11-071-0/+20
| | | | | | | | This commit adds support for enabling user to specify the DNS entries and then updating the resolver file with the same Change-Id: Ib78b822592ea8bdd1f821ccbf1362d96a5021b90 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
* Implement configuration of NTP server supportRatan Gupta2017-10-111-0/+12
| | | | | Change-Id: I8d471dbc6ea7ec62cbcc157565a7b39cd5031caa Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Implement delete all interface.Ratan Gupta2017-10-111-3/+12
| | | | | | | | | deletes all the ipaddress object on the interface. Resolves openbmc/openbmc#2141 Change-Id: I6f045758ff29080cb4a4dec9e8b0d23d932c55b6 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Implement Set function for MAC addressRatan Gupta2017-09-091-0/+9
| | | | | Change-Id: I16992dda259246a66512792f06cbbb874e56a15d Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* EthernetInterface: Simplify the code to fetch the mac addressRatan Gupta2017-08-131-1/+2
| | | | | Change-Id: I7db6b2379e1794019a8676048ee7dcf3de262a6d Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* vlan: implement delete interfaceRatan Gupta2017-08-131-1/+6
| | | | | | | | | Delete the in-memory vlan object,Also deletes the associated device file and the network file. Change-Id: I613e31aaa4fa9172c6226765ac044481ffbd88ec Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Load the VLAN interfaces from the systemRatan Gupta2017-08-131-1/+6
| | | | | | | | | At start up Network Manager creates all the interfaces by reading it from the system.This commit creates the vlan interface after reading it from the system. Change-Id: I38e6f3b776f834e33d17e4e88f700b4f52af4048 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Move the implementation for writing conf to interface classRatan Gupta2017-08-131-3/+8
| | | | | | | | implementation of writing interface conf to the ethernet interface class. Change-Id: I279afff45a82ca92c4e50810664f7a7c69a66a61 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Create the VLAN Interface ObjectRatan Gupta2017-08-131-1/+22
| | | | | Change-Id: I118fc4bbcad2a478a8aad976e0619537780c1227 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Implement the Vlan InterfaceRatan Gupta2017-08-131-2/+5
| | | | | Change-Id: I6085868ba4e30bb9e1c6f6d9895a40ebff82804f Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Implement the MAC address interfaceRatan Gupta2017-07-141-0/+2
| | | | | | | | MAC address has been separarated from EthernetInterface to its own interface. Change-Id: I6c1c806003a7d6d3de6ebee7d107177fc17652e0 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Refresh the interface objects if DHCP mode changesRatan Gupta2017-06-291-2/+11
| | | | | | | | | | Create the ipaddress objects for the ethernet interface whose DHCP is enabled. Resolves openbmc/openbmc#1295 Change-Id: Id5ad35f1d51f2bf80c4e2b573e7bd38489370411 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Implement system configuration Dbus interfaceRatan Gupta2017-06-211-1/+0
| | | | | Change-Id: I713175e946af47990afcead00558ee4b90cbce8e Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* test: add test cases for ethernet interfaceRatan Gupta2017-06-081-0/+7
| | | | | Change-Id: Ibf3a2b3513c784a56540488fa7de5a638a83a833 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Write the network configuration in the network fileRatan Gupta2017-06-081-1/+7
| | | | | Change-Id: Ic5ae90fb7b82539b943c4db0bc2eb116ec0d778f Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Restructure the code so that it is unit testableRatan Gupta2017-06-081-10/+16
| | | | | Change-Id: I2af7a26d054522beae82f58769f8c2420a22eca2 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Add the network utility fileRatan Gupta2017-06-081-0/+1
| | | | | | | | | | Moving utility functions from network manager to util.cpp. Added few more utility functions. Change-Id: I2e73c873e9a3bea543d6979463b2181e8374e12e Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Generate the ip address object path with the use of hashRatan Gupta2017-05-231-6/+17
| | | | | | | | | | | | ipaddress object path have the id for unique identification of ipaddres and the id would be hash of ipaddress,prefix and gateway. This was needed to make sure that there is no duplication of address object path. Change-Id: If6830d6e186e3271467ce0084c1dbf3c4995f1dd Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Implement create interface for ipaddressRatan Gupta2017-05-231-10/+46
| | | | | Change-Id: Ia4598c27c11667dafb70a8af58871661b7042d0f Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Implement ipaddress objectRatan Gupta2017-05-161-0/+4
| | | | | Change-Id: Ic4d7953c5aca2bf85a609c736e5c817322d29e4b Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Implement EthernetInterfaceRatan Gupta2017-04-271-4/+3
| | | | | Change-Id: I8d57ee3565e43e6e4463286c220dd54d72da049f Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Define interfaces of the EthernetInterfaceRatan Gupta2017-04-271-0/+77
Change-Id: Ibc6030934cdb04eaf603ce730d88d0bedc0a29b3 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
OpenPOWER on IntegriCloud