(self)
| 225 | raise |
| 226 | |
| 227 | def restore(self): |
| 228 | try: |
| 229 | if self.netMgrRunning: |
| 230 | self.syscfg.svo.enableService("network-manager") |
| 231 | self.syscfg.svo.startService("network-manager") |
| 232 | |
| 233 | bash("/etc/init.d/networking stop") |
| 234 | bash("/etc/init.d/networking start") |
| 235 | return True |
| 236 | except: |
| 237 | logging.debug(formatExceptionInfo()) |
| 238 | return False |
| 239 | |
| 240 | class networkConfigRedhat(serviceCfgBase, networkConfigBase): |
| 241 | def __init__(self, syscfg): |
nothing calls this directly
no test coverage detected