Security Advisories (1)
CVE-2022-24785 (2022-04-04)

Moment.js is a JavaScript date library for parsing, validating, manipulating, and formatting dates. A path traversal vulnerability impacts npm (server) users of Moment.js between versions 1.0.1 and 2.29.1, especially if a user-provided locale string is directly used to switch moment locale. This problem is patched in 2.29.2, and the patch can be applied to all affected versions. As a workaround, sanitize the user-provided locale name before passing it to Moment.js.

NAME

nd-import-topology - Import a Nedisco 1.x Manual Topology File

USAGE

~/bin/localenv nd-import-topology /path/to/netdisco-topology.txt

DESCRIPTION

This helper script will read and import the content of a Netdisco 1.x format Manual Topology file into the Netdisco 2.x database's topology table.

It's safe to run the script multiple times on the same file - any new data will be imported.

The file syntax must be like so:

left-device
  link:left-port,right-device,right-port

The devices can be either host names or IPs. Data will be imported even if the devices are currently unknown to Netdisco. All imported devices will have a discover job queued for them.