blob: 8d7c9202a41ca11275adbe6f8ec925fe8f006977 [file] [log] [blame]
Klement Sekeraf62ae122016-10-11 11:47:09 +02001from logging import *
Damjan Marionf56b77a2016-10-03 19:44:57 +02002
3
Klement Sekeraf62ae122016-10-11 11:47:09 +02004class TestHost(object):
5 """ Generic test host "connected" to VPP. """
Damjan Marionf56b77a2016-10-03 19:44:57 +02006
Klement Sekeraf62ae122016-10-11 11:47:09 +02007 @property
8 def mac(self):
9 """ MAC address """
10 return self._mac
Damjan Marionf56b77a2016-10-03 19:44:57 +020011
Klement Sekeraf62ae122016-10-11 11:47:09 +020012 @property
13 def ip4(self):
14 """ IPv4 address """
15 return self._ip4
Damjan Marionf56b77a2016-10-03 19:44:57 +020016
Klement Sekeraf62ae122016-10-11 11:47:09 +020017 @property
18 def ip6(self):
19 """ IPv6 address """
20 return self._ip6
Damjan Marionf56b77a2016-10-03 19:44:57 +020021
Klement Sekeraf62ae122016-10-11 11:47:09 +020022 def __init__(self, mac=None, ip4=None, ip6=None):
23 self._mac = mac
24 self._ip4 = ip4
25 self._ip6 = ip6