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:
Ben Thomasson
2017-08-21 20:38:33 +00:00
parent d153d5f907
commit c79ef60d8b
17 changed files with 364 additions and 156 deletions

View File

@@ -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)