#!/usr/bin/env python2.7
# encoding: utf-8

import os
import re
import logging

from otto.lib.otypes import ApplianceUsage
from otto.connections.ssh_pexpect import Ssh, TIMEOUT, EOF

instance = os.environ.get('instance') or ''
logger = logging.getLogger('otto' + instance + '.appliances')
logger.addHandler(logging.NullHandler())


class Switch(Ssh):
    """
    A class for interacting with Arista or Dell switches.
    Arista ports are just a port value.
    Dell ports have the form: <unit>/<port-type><port>
        ex: 1/g45   

    To use this module, ssh must be enabled on Dell switches

    Basic Usage: