__version__ = '1.1'
-import sys
-import os
import re
-from xml.dom import minidom
-from subprocess import Popen, PIPE
-from socket import gethostname
from linkpair.device import Device
from linkpair.port import Port
-from linkpair.linkpair import LinkPair
-from linkpair.collect.utils import CollectUtils
-from linkpair.collect.agent.commandrunner import CommandRunner
-from linkpair.formatter.grapheasy import GraphEasyFormatter
-from linkpair.commonutils import CommonUtils
+from linkpair.collect.agent.base_agent import BaseAgent
-
-class OVSAgent(object):
+class OVSAgent(BaseAgent):
'''
Open vSwitch Collector Agent
'''
-
- PEER_FOUND = 1
-
- def __init__(self, runner, cu, linkpairs, port_to_br, iface_to_nss, formatter=GraphEasyFormatter()):
- self._runner = runner
- self._cu = cu
- self._linkpairs = linkpairs
- self._port_to_br = port_to_br
- self._iface_to_nss = iface_to_nss
- self._u = CommonUtils()
-
- ''' set parameters '''
- self._formatter = formatter
-
def run(self):
self.get_configuration()