Skip to content

Device - Basic hatteras dslam integration#14115

Merged
murrant merged 12 commits intolibrenms:masterfrom
Bierchermuesli:hatteras-integration
Nov 5, 2022
Merged

Device - Basic hatteras dslam integration#14115
murrant merged 12 commits intolibrenms:masterfrom
Bierchermuesli:hatteras-integration

Conversation

@Bierchermuesli
Copy link
Copy Markdown
Contributor

@Bierchermuesli Bierchermuesli commented Jul 18, 2022

This is a basic integration of Hatteras HN4000 DLSAM. (Now days known as Overture / ADVA. HN4000 is a discontinued product, therefore keeping the name old fashioned).

This PR is mainly for GUI beauty and propper OS detection to work with oxidized Backup. More sensor/discovery might follow. SVGs are vectorized by my own.

179507799-bb36cf4c-8bbe-4280-b580-9a7d00103276

DO NOT DELETE THE UNDERLYING TEXT

Please note

Please read this information carefully. You can run ./lnms dev:check to check your code before submitting.

  • Have you followed our code guidelines?
  • If my Pull Request does some changes/fixes/enhancements in the WebUI, I have inserted a screenshot of it.
  • If my Pull Request makes discovery/polling/yaml changes, I have added/updated test data.

Testers

If you would like to test this pull request then please run: ./scripts/github-apply <pr_id>, i.e ./scripts/github-apply 5926
After you are done testing, you can remove the changes with ./scripts/github-remove. If there are schema changes, you can ask on discord how to revert.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Jul 18, 2022

CLA assistant check
All committers have signed the CLA.

@Jellyfrog Jellyfrog added Device 🖥️ New or added device support Needs Tests 🦄 https://docs.librenms.org/Developing/os/Test-Units/ labels Jul 18, 2022
@github-actions
Copy link
Copy Markdown

Please add test data so we can ensure your change is not broken in the future.
Read the docs to find out how: https://docs.librenms.org/Developing/os/Test-Units

@Bierchermuesli
Copy link
Copy Markdown
Contributor Author

snmprec and json testfiles added!

@murrant murrant removed the Needs Tests 🦄 https://docs.librenms.org/Developing/os/Test-Units/ label Aug 7, 2022
good_if:
- ras #all interfaces has 'Hatteras' in it...
discovery_modules:
ntp: false
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Bierchermuesli

Any reason to force modules being activated and deactivated ? If they don't fail, better to leave default and remove completely the section. If any of them is harming the device, then only disable these.

Thanx

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those modules really don't work with this device, so I hope for performance better to disable. wrong approach?

Copy link
Copy Markdown
Member

@murrant murrant Nov 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You gain about 2ms in polling time by disabling these and there could be some random user that wants a specific module enabled or someone adds support for another one, and this will prevent that.

We prefer to have them enabled to allow the users full control. If there is a module that is slow polling when there is no data, then that is a bug.

On my computer for example:

#### Load poller module wireless ####

>> Runtime for poller module 'wireless': 0.0014 seconds with 117056 bytes

@@ -0,0 +1,58 @@
os: hatteras
text: 'Hatteras Overdue DSLAM'
type: dslam
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type: dslam does not exist.
type: network is what should be deployed for a network equipment.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

<!-- Created with Inkscape (http://www.inkscape.org/) -->

<svg
width="200"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

html/images/logos/hatteras.svg: SVG files must not contain length or width attributes . This is verified automatically and makes the test fail. Could you please remove those from all the SVG files ?
Thanx

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@PipoCanaja PipoCanaja changed the title basic hatteras dslam integration Device - Basic hatteras dslam integration Aug 17, 2022
- serConsole
good_if:
- ras #all interfaces has 'Hatteras' in it...
discovery_modules:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We prefer to not set these at all if not for good reason, like if the device crashes or so

@murrant
Copy link
Copy Markdown
Member

murrant commented Nov 5, 2022

I'm going to remove the modules so we can merge this.
You are more than welcome to disable them on your local install:
lnms config:set os.hatteras.discovery_modules.wireless false

@murrant murrant merged commit 7f3301c into librenms:master Nov 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Device 🖥️ New or added device support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants