Rob Emery
f22bf9cf82
The firmware never displays vlan 0, we shouldn't either
2026-10-27 07:45:30 +00:00
Rob Emery
3694363001
Adding missing name
2026-10-25 15:41:12 +00:00
Rob Emery
511aebf085
If the handler doesn't return anything we need to handle that
2026-10-25 09:07:14 +00:00
Rob Emery
2168ad555e
We now show the same number of ports on all pages
2026-10-25 09:07:14 +00:00
Rob Emery
9dbf0f40f2
Harmonising on the machine_config structure so we can
...
handle both with and without configuration file consistently
2026-10-25 09:07:14 +00:00
Rob Emery
183f6f7135
We need to parse both the .c and .h file, so now you can specify
...
either and it'll sort it out. adding --verbose for debugging
2026-10-25 09:07:14 +00:00
Rob Emery
4dee3d2ad2
Driving responses to be based on number of ports in machine
...
configuration
2026-10-25 09:07:14 +00:00
Rob Emery
77fc545c6a
Adding hardcoded responses for "dns" and "ntp" commands
2026-10-25 09:07:14 +00:00
Rob Emery
29542a5414
Hardcoded responses for the remaining endpoints that are duplicated
...
from my Hi-Source HI-k0801WS
2026-10-25 09:07:14 +00:00
Rob Emery
421e1f0c7d
The state of the tagged/untagged ports in the vlan is complete with
...
every command, so we need to start from empty each time
2026-10-25 09:07:14 +00:00
Rob Emery
813d7e7ae2
Reintroducing argument parsing that I somehow lost rebasing
2026-10-25 09:07:14 +00:00
Rob Emery
9088e73acb
Updating to mirror new macro structure used in #684
2026-10-25 09:07:14 +00:00
Rob Emery
2ecef98263
Updating to support \n separated commands, might need to support \r\n
...
as well, but this'll do for now
2026-10-25 09:07:14 +00:00
Rob Emery
8bd9231432
Adding support for renaming vlan
2026-10-25 09:07:14 +00:00
Rob Emery
16d61857b7
Handling "vlan 2"
2026-10-25 09:07:14 +00:00
Rob Emery
4ad0b7fd3d
Implementing removal of vlan
2026-10-25 09:07:14 +00:00
Rob Emery
7694f1a625
Adding management vlan state
2026-10-25 09:07:14 +00:00
Rob Emery
69dd977708
Add support for setting pvid to non existant vlans
2026-10-25 09:07:14 +00:00
Rob Emery
e83ff4d095
Renaming to _api for anything that is called from the http handler
...
to help seperate out the parsers that'll be coming in for cmd
putting all state under one global and implementing something resembling
vlan parsing
2026-10-25 09:07:14 +00:00
Rob Emery
a03b2259ef
Porting to python so it's easier to implement a full
...
switch-emulator with state
2026-10-25 09:07:14 +00:00
Rob Emery
63a3bc50d6
Removing the comment step as this is erroring with
...
Error: Resource not accessible by integration
and I think the repository owner will need to check
the settings on the repo
2026-10-22 19:53:35 +01:00
Rob Emery
a94be7d524
Fixing path on the du command to respect new structure
2026-10-22 19:53:00 +01:00
Rob Emery
9731a33fa9
Adding missing? permission to fix the build
2026-10-22 19:16:50 +01:00
Rob Emery
6e5617c82f
Fixing path to tools builds now they have injected BUILDDIR from the
...
main Makefile
2026-10-22 18:22:14 +01:00
Rob Emery
98965b73f6
Fixes to BUILDDIR
2026-10-22 13:34:29 +01:00
Rob Emery
ef0d9d872e
adding the HTML/JS compressed sizes to the comment
2026-10-22 12:34:48 +01:00
Rob Emery
94ca35f65e
First version of a local "make bank_size"
2026-10-22 09:40:17 +01:00
Rob Emery
69714c8a75
Adding the ability to override the BUILDDIR so I can store branch-builds elsewhere
2026-10-22 09:40:17 +01:00
Rob Emery
2bc6939f86
Sort -u and use v3 to silence nodejs v20 warnings
2026-10-22 09:40:16 +01:00
Rob Emery
aea537f8e7
Storing the output of the build in tmp files so we can extract
...
the bits we need
But we need both main and branch checked out and the action can
do it for us
Pulling the bank occupancy from the map produced by sdcc rather
than the output of the build as it appears the output number is
only the maximum size of the banks
BANK0 isn't output, but what I'm guessing are the consituents for it are
2026-10-22 09:40:16 +01:00
Rob Emery
e4adec9c11
Renaming for consistency and spaces -> tabs
2026-10-13 08:27:53 +01:00
Rob Emery
265a80bb25
Trapping the 01:80:c2:00:00:0e prevents the switch from passing
...
between ports
2026-10-12 20:32:29 +01:00
Rob Emery
eff3f42ae1
Rewriting sim implementation to be data driven
...
The value for enabled should be an int, not a string
2026-10-10 09:51:50 +01:00
Rob Emery
dda873a633
Moving lldp cmd parsing to be above the is_sfp check to take precedence
...
Needed to increase buffer size for this to send app.js
The logical port status is what is returned in the array, for
non-sequential systems we need to map through physToLog rather
than just subtracting 1
physToLog is 1 based! not 0; also fixing up typecasts
Reimplementing using an array of objects to represent ports.
The previous approach of a bitmask of logical ports, was just too
simple on devices such as the SWGT024_V2_0_MANAGED which has
gaps in the port assignments.
2026-10-10 09:51:33 +01:00
Rob Emery
9b2bd7f1b8
The tick rate has been changed now so we'll have to approximate
...
timing with ticks
Fixing up the log_to_phys_port assignment
2000 is about every 10 seconds, so scaling up to once every 30ish
Removing the attempt to block lldp frames,
This does not work however the hard work has been done for us in
the #514 so we can borrow that work later on
2026-10-10 09:50:38 +01:00
Rob Emery
2dfe531fe0
Fixing missing parts to make the tests pass
...
boot_to_html outputs 1 and 0 not true and false, making the sim match
the real implementation.
lldp.json has a hanging , in the array; so overwriting it
2026-10-10 09:50:27 +01:00
Rob Emery
72c2625121
Icon from https://github.com/logicog/RTLPlayground/pull/429#issuecomment-5687458129
2026-10-10 09:50:27 +01:00
Rob Emery
58fd1a3ccc
Adding lldp.json to the simulator
...
Moving the global on/off onto the LLDP page
Building a table of LLDP status from the S ports. Later on, if
we wish to implement an lldp receiver we can display the remote
details here
Adding support to the cmd parser for the lldp commands
2026-10-10 09:50:01 +01:00
Rob Emery
4f1a2f04d8
Allowing commands like port 1 lldp block and port 2 lldp permit
...
so we are able to enable/disable lldp transmission on a specific
port.
2026-10-10 09:50:01 +01:00
Rob Emery
cedc795b82
Adding UI options to enable/disable LLDP
2026-10-10 09:50:01 +01:00
Rob Emery
ccf541a06b
Refactor and golfing from https://github.com/logicog/RTLPlayground/pull/398#issuecomment-5654087271
...
I've tweaked it a little to keep the port_position in as I think
that is clearer than a random "12" in the loop later on
2026-10-10 09:50:01 +01:00
Rob Emery
d5124df89e
avoid SRAM
2026-10-10 09:50:01 +01:00
Rob Emery
3eacc9c8a5
LLPD_MAC_ADDR_LEN -> MAC_ADDR_LEN and memcopy instead of manually setting bytes
2026-10-10 09:50:01 +01:00
Rob Emery
735672ccf1
Moving to Bank3
2026-10-10 09:49:52 +01:00
Rob Emery
1ebee4d6e9
Implementing basic LLDP server, should send port_id message
...
to each port once every 30 seconds.
* Additionally fixes the on-ward passing of LLDP frames through
the switch
The ports on the case are marked 1-8 so this should reflect that
rather than being 0-based
We can send the hostname as well, this can be dynamically allocated
Let's send the model as the system description as well
2026-10-10 09:49:24 +01:00
Rob Emery
7d81b15b6e
Updating images to match new UI
2026-09-17 10:13:14 +01:00