from devices.device import Device
from devices.devices_functions import ping_source_ip_caller, ping_parser_dot


class DellForce(Device):

    def __init__(self):
        Device.__init__(self, ping_source_ip_caller, ping_parser_dot)

    def ping(self, source, destination, pings, vrf):
        if not vrf:
            vrf = 'default'
        return self.ping_caller(source, destination, pings, vrf)

    def check_syntax(self, output):
        self.check(output, ['Error: Invalid input'], self.incorrect_command)

    def check_ip(self, output):
        self.check(output, ['Error: Unrecognized host or address'], self.
            invalid_ip)

    def check_source(self, output):
        self.check(output, ['Invalid source IP address'], self.invalid_source)

754591f2a4d08d53fe6a9cd9810f9587dc41fe62
<mask token>


class DellForce(Device):

    def __init__(self):
        Device.__init__(self, ping_source_ip_caller, ping_parser_dot)

    def ping(self, source, destination, pings, vrf):
        if not vrf:
            vrf = 'default'
        return self.ping_caller(source, destination, pings, vrf)
    <mask token>
    <mask token>
    <mask token>

<mask token>


class DellForce(Device):

    def __init__(self):
        Device.__init__(self, ping_source_ip_caller, ping_parser_dot)

    def ping(self, source, destination, pings, vrf):
        if not vrf:
            vrf = 'default'
        return self.ping_caller(source, destination, pings, vrf)
    <mask token>
    <mask token>

    def check_source(self, output):
        self.check(output, ['Invalid source IP address'], self.invalid_source)

<mask token>


class DellForce(Device):

    def __init__(self):
        Device.__init__(self, ping_source_ip_caller, ping_parser_dot)

    def ping(self, source, destination, pings, vrf):
        if not vrf:
            vrf = 'default'
        return self.ping_caller(source, destination, pings, vrf)

    def check_syntax(self, output):
        self.check(output, ['Error: Invalid input'], self.incorrect_command)

    def check_ip(self, output):
        self.check(output, ['Error: Unrecognized host or address'], self.
            invalid_ip)

    def check_source(self, output):
        self.check(output, ['Invalid source IP address'], self.invalid_source)

from devices.device import Device
from devices.devices_functions import ping_source_ip_caller, ping_parser_dot


class DellForce(Device):

    def __init__(self):
        Device.__init__(self, ping_source_ip_caller, ping_parser_dot)

    def ping(self, source, destination, pings, vrf):
        if not vrf:
            vrf = 'default'
        return self.ping_caller(source, destination, pings, vrf)

    def check_syntax(self, output):
        self.check(output, ['Error: Invalid input'], self.incorrect_command)

    def check_ip(self, output):
        self.check(output, ['Error: Unrecognized host or address'], self.
            invalid_ip)

    def check_source(self, output):
        self.check(output, ['Invalid source IP address'], self.invalid_source)
