Revision 98874282 lib/network.py
b/lib/network.py | ||
---|---|---|
31 | 31 |
from ganeti import utils |
32 | 32 |
from ganeti import constants |
33 | 33 |
|
34 |
#pylint: disable=R0921 |
|
34 |
|
|
35 |
# pylint: disable=R0921 |
|
35 | 36 |
class Network(object): |
36 | 37 |
""" Wrapper Class for networks. |
37 | 38 |
|
... | ... | |
84 | 85 |
raise NotImplementedError |
85 | 86 |
|
86 | 87 |
|
88 |
class DummyNetwork(Network): |
|
89 |
""" Dummy class to bypass pylint error R0921 """ |
|
90 |
def Contains(self, address): |
|
91 |
pass |
|
92 |
|
|
93 |
def IsReserved(self, address): |
|
94 |
pass |
|
95 |
|
|
96 |
def Reserve(self, address, external): |
|
97 |
pass |
|
98 |
|
|
99 |
def Release(self, address, external): |
|
100 |
pass |
|
101 |
|
|
102 |
def GenerateFree(self): |
|
103 |
pass |
|
104 |
|
|
105 |
def GetStats(self): |
|
106 |
pass |
|
107 |
|
|
108 |
|
|
87 | 109 |
class GenericNetwork(object): |
88 | 110 |
""" Base class for networks. |
89 | 111 |
|
Also available in: Unified diff