Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new ethernet speed #3853

Merged
merged 2 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading