mirror of
https://github.com/thatmattlove/hyperglass.git
synced 2026-01-17 08:48:05 +00:00
19 lines
440 B
Python
19 lines
440 B
Python
"""Device output plugins."""
|
|
|
|
# Standard Library
|
|
from abc import abstractmethod
|
|
|
|
# Project
|
|
from hyperglass.models.config.devices import Device
|
|
|
|
# Local
|
|
from ._base import HyperglassPlugin
|
|
|
|
|
|
class OutputPlugin(HyperglassPlugin):
|
|
"""Plugin to interact with device command output."""
|
|
|
|
@abstractmethod
|
|
def process(self, device_output: str, device: Device) -> str:
|
|
"""Process/manipulate output from a device."""
|
|
pass
|