Skip to content

Commit

Permalink
Add new ethernet speed (#3853)
Browse files Browse the repository at this point in the history
* Add new ethernet speed

* Add missing migration
  • Loading branch information
matyldv authored Oct 8, 2024
1 parent 43be6ad commit e498cc0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/ralph/assets/migrations/0037_auto_20241008_1003.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2024-10-08 10:03
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('assets', '0036_auto_20240904_1126'),
]

operations = [
migrations.AlterField(
model_name='ethernet',
name='speed',
field=models.PositiveIntegerField(choices=[(1, '10 Mbps'), (2, '100 Mbps'), (3, '1 Gbps'), (4, '10 Gbps'), (5, '40 Gbps'), (6, '100 Gbps'), (7, '25 Gbps'), (11, 'unknown speed')], default=11, verbose_name='speed'),
),
]
1 change: 1 addition & 0 deletions src/ralph/assets/models/choices.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ class EthernetSpeed(Choices):
s10gbit = _('10 Gbps')
s40gbit = _('40 Gbps')
s100gbit = _('100 Gbps')
s25gbit = _('25 Gbps')

UNKNOWN_GROUP = Choices.Group(10)
unknown = _('unknown speed')
Expand Down

0 comments on commit e498cc0

Please sign in to comment.