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

Various Updates & Fixes to bridgectl #3

Merged
merged 4 commits into from
Feb 18, 2024
Merged

Various Updates & Fixes to bridgectl #3

merged 4 commits into from
Feb 18, 2024

Conversation

Mythra
Copy link
Contributor

@Mythra Mythra commented Feb 18, 2024

This work was originally meant to be the first commit of FSEmul support (hence the branch name being dev/fsemul). However, while working on it I noticed some very small things I want to contribute up, because FSEmul is probably going to take awhile. Some of these fixes, and things are:

  • Update LICENSE file to the latest year (2024)

  • Update various dependencies to latest version.

  • Fix various commands in bridgectl showing the wrong command name/purpose when error'ing

    • this was because dump-params/get-params/set-params are pretty similar and I copied a lot, and didn't fully fix the copying. whoops, that's on me!
  • Teach bridgectl about cafe/cafex/mochiato environment variables for specifying the bridge. This means in a cafe/cafex/mochiato environment you don't need to specify which bridge you want to use at all (not even a --default)

    • this also fixes edge cases introduced in bridgectl where specifying absolutely no parameters would still try to search, and potentially find a bridge. we wouldn't want this.
  • Allow configuring the parameter space port for get-params/set-params/dump-params

    • This is something the official tools don't support at all, but is something you can technically configure in the web interface of the MION board itself.
  • Fix bridgectl exiting with an unsuccessful exit code, when specifying --help/-h as an argument.

- update our dependencies to their latest versions
- also pre-emptively bump our misc version for packaging
- don't error out when using the `--help` flag on bridgectl
  - we should only error when you specify no args including no help flag
- allow configuring the parameter space port
  - i see this option in `setup.cgi` of my MION, i don't know why none
    of the tools techincally allow you to configure this port.
- bridgectl was not respecting `cafe`/`cafex`/`mochiato` env vars
  - this wasn't necissarily a bug, but a behaviour we should support
    to continue making bridgectl "just work" when you'd expect it too.
  - this wasn't added in previous commits because:
    - `mochiato` doesn't techincally exist yet, due to other missing
      pre-requisites before it can be implemented.
    - while running under `cafe`/`cafex` for Sprig is supported, it
      is not something I do frequently. this was just one behavior
      i had missed because i wasn't thinking about it.
  - this basically just gets around needing to manually specify
    `-d`/`--default` or a bridge name/ip/mac when running with the
    environment variables that get set by `cafe`/`cafex`/`mochiato`
- also fixed several outputs where things like set-parameters said
  it can't "get parameters", even though you're trying to... set
  parameters not get them.
- fix some bad documentation links in `cat-dev`
  - this was because i had changed some module paths, and variable names
- also start throwing in some WIP parts of MION FSEmul work,
  specifically talking to `control.cgi` which is used to actually tell
  the MION to power on, and get some information about it.
@Mythra Mythra merged commit e4db35c into trunk Feb 18, 2024
12 checks passed
@Mythra Mythra deleted the dev/fsemul branch February 18, 2024 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant