Nodecon: Fix deprecation warning messages.

This commit is contained in:
Chris PeBenito 2017-09-20 19:40:09 -04:00
parent 9fa55c25cb
commit 486de4695e

View File

@ -148,14 +148,14 @@ class Nodecon(NetContext):
@property
def address(self):
"""The network address for the nodecon."""
warnings.warn("Nodecon.address will be removed in SETools 2.3, please use nodecon.network",
warnings.warn("Nodecon.address will be removed in SETools 4.3, please use nodecon.network",
DeprecationWarning)
return self.qpol_symbol.addr(self.policy)
@property
def netmask(self):
"""The network mask for the nodecon."""
warnings.warn("Nodecon.netmask will be removed in SETools 2.3, please use nodecon.network",
warnings.warn("Nodecon.netmask will be removed in SETools 4.3, please use nodecon.network",
DeprecationWarning)
return self.qpol_symbol.mask(self.policy)