From: Ondrej Lichtner <olichtne(a)redhat.com>
Defines the DeviceRef class that will be used by the Controller-Slave
communication protocol.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
lnst/Common/DeviceRef.py | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
create mode 100644 lnst/Common/DeviceRef.py
diff --git a/lnst/Common/DeviceRef.py b/lnst/Common/DeviceRef.py
new file mode 100644
index 0000000..cd7ee15
--- /dev/null
+++ b/lnst/Common/DeviceRef.py
@@ -0,0 +1,19 @@
+"""
+Defines the DeviceRef class.
+
+Copyright 2017 Red Hat, Inc.
+Licensed under the GNU General Public License, version 2 as
+published by the Free Software Foundation; see COPYING for details.
+"""
+
+__author__ = """
+olichtne(a)redhat.com (Ondrej Lichtner)
+"""
+
+class DeviceRef(object):
+ """Device reference transferable over network
+
+ Used in Controller-Slave commucation protocol.
+ """
+ def __init__(self, if_index):
+ self.if_index = int(if_index)
--
2.13.0