mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-15 12:31:48 -05:00
Adds streams and processes for application design
Adds application level streams and process widgets to model applications that run on networking devices or hosts. * Changes Application to Process * Adds StreamCreate and ProcessCreate messages * Adds process id sequence to device * Add serializers for streams and processes
This commit is contained in:
@@ -11,6 +11,7 @@ class Device(models.Model):
|
||||
id = models.IntegerField()
|
||||
type = models.CharField(max_length=200,)
|
||||
interface_id_seq = models.IntegerField(default=0)
|
||||
process_id_seq = models.IntegerField(default=0)
|
||||
|
||||
def __unicode__(self):
|
||||
return self.name
|
||||
@@ -128,9 +129,9 @@ class DataSheet(models.Model):
|
||||
class Stream(models.Model):
|
||||
|
||||
stream_id = models.AutoField('Stream', primary_key=True,)
|
||||
from_device = models.ForeignKey('Stream', related_name='from_stream',)
|
||||
to_device = models.ForeignKey('Stream', related_name='to_stream',)
|
||||
label = models.CharField('Stream', max_length=200,)
|
||||
from_device = models.ForeignKey('Device', related_name='from_stream',)
|
||||
to_device = models.ForeignKey('Device', related_name='to_stream',)
|
||||
label = models.CharField(max_length=200,)
|
||||
id = models.IntegerField(default=0)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user