File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ static PyObject *get_ipaddress(PyObject *self __unused, PyObject *args)
234234 *
235235 * @return Python list of objects on success, otherwise NULL.
236236 */
237- static PyObject * get_interface_info (PyObject * self __unused , PyObject * args ) {
237+ static PyObject * get_interfaces_info (PyObject * self __unused , PyObject * args ) {
238238 PyObject * devlist = NULL , * ethinf_py = NULL ;
239239 PyObject * inargs = NULL ;
240240 char * * fetch_devs ;
@@ -888,9 +888,11 @@ static struct PyMethodDef PyEthModuleMethods[] = {
888888 .ml_flags = METH_VARARGS ,
889889 },
890890 {
891- .ml_name = "get_interface_info " ,
892- .ml_meth = (PyCFunction )get_interface_info ,
891+ .ml_name = "get_interfaces_info " ,
892+ .ml_meth = (PyCFunction )get_interfaces_info ,
893893 .ml_flags = METH_VARARGS ,
894+ .ml_doc = "Accepts a string, list or tupples of interface names. "
895+ "Returns a list of ethtool.etherinfo objets with device information."
894896 },
895897 {
896898 .ml_name = "get_netmask" ,
You can’t perform that action at this time.
0 commit comments