1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

22 lines
501 B
Python

"""Device output plugins."""
# Standard Library
from abc import abstractmethod
from typing import TYPE_CHECKING
# Local
from ._base import HyperglassPlugin
if TYPE_CHECKING:
# Project
from hyperglass.models.config.devices import Device
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