Skip to content

Webui fixes - #1761

Draft
mattiaswal wants to merge 5 commits into
mainfrom
webui-fixes
Draft

mattiaswal wants to merge 5 commits into
mainfrom
webui-fixes

Conversation

@mattiaswal

Copy link
Copy Markdown
Contributor

Description

Checklist

Tick relevant boxes, this PR is-a or has-a:

  • Bugfix
    • Regression tests
    • ChangeLog updates (for next release)
  • Feature
    • YANG model change => revision updated?
    • Regression tests added?
    • ChangeLog updates (for next release)
    • Documentation added?
  • Test changes
    • Checked in changed Readme.adoc (make test-spec)
    • Added new test to group Readme.adoc and yaml file
  • Code style update (formatting, renaming)
  • Refactoring (please detail in commit messages)
  • Build related changes
  • Documentation content changes
    • ChangeLog updated (for major changes)
  • Other (please describe):

The IEEE 802.3 frame counters were left behind when yangerd took over
operational data, and a counter is read now and then, not watched.  A
get-statistics action on the Ethernet container reads them from the
port with ethtool when called, in a new revision of
infix-ethernet-interface that deviates the statistics container out.
`show interface <port>` and the WebUI interface page run it.

Signed-off-by: Mattias Walström <lazzer@gmail.com>
Each refresh rebuilt the whole content area, which flickered and lost
the scroll position, selection and focus.  With idiomorph (0BSD) the
fetched page is diffed against the DOM and only changed values are
touched; the counters card morphs the same way.

Signed-off-by: Mattias Walström <lazzer@gmail.com>
The refreshed page comes without them, so they vanished on the next
tick.  Preserve the result containers like the locate result.

Signed-off-by: Mattias Walström <lazzer@gmail.com>
The interface detail page does not auto-refresh, only its counters
card polls, so the frame counters never moved.  The card is now part
of the polled fragment, read every 5 s like the other counters.

Signed-off-by: Mattias Walström <lazzer@gmail.com>
Only its counters card polled, the link state, addresses and WiFi
stations stayed as they were when the page opened.  Follow the
refresh interval like the modem and GPS pages.

Signed-off-by: Mattias Walström <lazzer@gmail.com>
@troglobit

Copy link
Copy Markdown
Contributor

Before I review this, would be nice with an overview/description of the PR.

@mattiaswal

Copy link
Copy Markdown
Contributor Author

Before I review this, would be nice with an overview/description of the PR.

Mmm its not done yet

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants