# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models

# Create your models here.

class RedHat(models.Model):
    PROTOCOL_CHOICES = (
        #(0,''),
        ('rest', 'REST API'),
        ('soap', 'SOAP'),
        ('telnet', 'Telnet'),
        ('ssh', 'SSH'),
    )
    hostname = models.CharField(max_length=127)
    ip = models.GenericIPAddressField()
    protocol = models.CharField(max_length=15, choices=PROTOCOL_CHOICES)
    timestamp = models.DateTimeField(auto_now_add=True)

class Junos(models.Model):
    PROTOCOL_CHOICES = (
        #(0,''),
        ('netconf', 'Netconf'),
        ('telnet', 'Telnet'),
        ('ssh', 'SSH'),
    )
    hostname = models.CharField(max_length=127)
    ip = models.GenericIPAddressField(max_length=15)
    protocol = models.CharField(max_length=15, choices=PROTOCOL_CHOICES)
    timestamp = models.DateTimeField(auto_now_add=True)

class Junose(models.Model):
    PROTOCOL_CHOICES = (
        #(0,''),
        ('netconf', 'Netconf'),
        ('telnet', 'Telnet'),
        ('ssh', 'SSH'),
    )
    hostname = models.CharField(max_length=127)
    ip = models.GenericIPAddressField(max_length=15)
    protocol = models.CharField(max_length=15, choices=PROTOCOL_CHOICES)
    timestamp = models.DateTimeField(auto_now_add=True)

"""

PROTOCOL_CHOICES = (
    (0,''),
    (1,'REST API'),
    (2,'SOAP'),
    (3,'Telnet'),
    (4,'TL1'),
    (5,'SSH'),
)

SYSTEM_CHOICES = (
    (0,''),
    (1,'Nokia AMS5520'),
    (2,'Arris AXSVision'),
    (3,'Calix CMS'),
    (4,'Junos'),
    (5,'Junose'),
    (6,'RedHat'),
    (7,'Tellabs Panorama'),
)
class Cmds(models.Model):
    cmdprotocol = models.CharField(max_length=25, choices=CMDPROTOCOL_CHOICES, default=0)
    cmdsystem = models.CharField(max_length=25, choices=CMDSYSTEM_CHOICES, default=0)
    cmdset = models.CharField(max_length=25, default='')
    cmdline = models.CharField(max_length=255, default='')
    timestamp = models.DateTimeField(auto_now_add=True)
"""

# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models

# Create your models here.

class RedHat(models.Model):
    PROTOCOL_CHOICES = (
        #(0,''),
        ('rest', 'REST API'),
        ('soap', 'SOAP'),
        ('telnet', 'Telnet'),
        ('ssh', 'SSH'),
    )
    hostname = models.CharField(max_length=127)
    ip = models.GenericIPAddressField()
    protocol = models.CharField(max_length=15, choices=PROTOCOL_CHOICES)
    timestamp = models.DateTimeField(auto_now_add=True)

class Junos(models.Model):
    PROTOCOL_CHOICES = (
        #(0,''),
        ('netconf', 'Netconf'),
        ('telnet', 'Telnet'),
        ('ssh', 'SSH'),
    )
    hostname = models.CharField(max_length=127)
    ip = models.GenericIPAddressField(max_length=15)
    protocol = models.CharField(max_length=15, choices=PROTOCOL_CHOICES)
    timestamp = models.DateTimeField(auto_now_add=True)

class Junose(models.Model):
    PROTOCOL_CHOICES = (
        #(0,''),
        ('netconf', 'Netconf'),
        ('telnet', 'Telnet'),
        ('ssh', 'SSH'),
    )
    hostname = models.CharField(max_length=127)
    ip = models.GenericIPAddressField(max_length=15)
    protocol = models.CharField(max_length=15, choices=PROTOCOL_CHOICES)
    timestamp = models.DateTimeField(auto_now_add=True)

"""

PROTOCOL_CHOICES = (
    (0,''),
    (1,'REST API'),
    (2,'SOAP'),
    (3,'Telnet'),
    (4,'TL1'),
    (5,'SSH'),
)

SYSTEM_CHOICES = (
    (0,''),
    (1,'Nokia AMS5520'),
    (2,'Arris AXSVision'),
    (3,'Calix CMS'),
    (4,'Junos'),
    (5,'Junose'),
    (6,'RedHat'),
    (7,'Tellabs Panorama'),
)
class Cmds(models.Model):
    cmdprotocol = models.CharField(max_length=25, choices=CMDPROTOCOL_CHOICES, default=0)
    cmdsystem = models.CharField(max_length=25, choices=CMDSYSTEM_CHOICES, default=0)
    cmdset = models.CharField(max_length=25, default='')
    cmdline = models.CharField(max_length=255, default='')
    timestamp = models.DateTimeField(auto_now_add=True)
"""

# -*- coding: utf-8 -*- # Create your models here. #(0,''), #(0,''), #(0,''), PROTOCOL_CHOICES = (     (0,''),     (1,'REST API'),     (2,'SOAP'),     (3,'Telnet'),     (4,'TL1'),     (5,'SSH'), )  SYSTEM_CHOICES = (     (0,''),     (1,'Nokia AMS5520'),     (2,'Arris AXSVision'),     (3,'Calix CMS'),     (4,'Junos'),     (5,'Junose'),     (6,'RedHat'),     (7,'Tellabs Panorama'), ) class Cmds(models.Model):     cmdprotocol = models.CharField(max_length=25, choices=CMDPROTOCOL_CHOICES, default=0)     cmdsystem = models.CharField(max_length=25, choices=CMDSYSTEM_CHOICES, default=0)     cmdset = models.CharField(max_length=25, default='')     cmdline = models.CharField(max_length=255, default='')     timestamp = models.DateTimeField(auto_now_add=True)