mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
Example: If /sbin/ethtool is not installed dont run the ethtool addon module. Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
27 lines
424 B
Python
27 lines
424 B
Python
#!/usr/bin/python
|
|
#
|
|
# Copyright 2014 Cumulus Networks, Inc. All rights reserved.
|
|
# Author: Roopa Prabhu, roopa@cumulusnetworks.com
|
|
#
|
|
# ifupdown --
|
|
# exceptions
|
|
#
|
|
|
|
class Error(Exception):
|
|
"""Base class for exceptions in ifupdown"""
|
|
|
|
pass
|
|
|
|
class ifaceNotFoundError(Error):
|
|
pass
|
|
|
|
|
|
class invalidValueError(Error):
|
|
pass
|
|
|
|
class errorReadingStateError(Error):
|
|
pass
|
|
|
|
class moduleNotSupported(Error):
|
|
pass
|