- Added support for
ip neighbour get
. - Updated badges in README.
- Merged dependabot PR.
- Added missing CAN export for documentation purposes.
- (@cordellcalitz) Added support for CAN link interfaces.
- Removed
package-lock.json
to uploaded files to npm (npm ignore it anyway).
- Added
package-lock.json
to uploaded files to npm.
- Changed keyless properties support removing the need to specify a trailing dash
_
.
- Minor updates to README file to fix npm styles.
- Release v2.
- Added examples snippets to each command documentation block.
- Improved
monitor
command.
- Added support for specifying family shortcut global options, like
-4
. - Added support for batch mode.
- Added more commands:
addrlabel
,neighbour
,ntable
,tunnel
,tuntap
,maddress
,mroute
. - Add support for an array of tables to
routingTables.{add|del}
methods. - Added support for specifying family shortcut global options, like
-4
.
- Fixed badge links URL.
- Updated README image style to look good on npm.
- Refactored project to typescript.
- Added full documented interfaces and constants.
- Added input options validations with
ajv
. - Added almost all the operations (with some minor exceptions like
link {xstats|afstats|property}
) and all the missing options for the already supported commands from version1.0.0
. - Added tests checking the
cmd
generation and the real command execution. - Now all
show
commands use the nativeiproute
-json
flag, which prevents many parsing errors.
-
Treat this version as a new library, though I will document several changes you need to take into account.
-
After modifying the routing tables by using the module
utils
, you need now to flush the routing table cache by yourself:import { route } from 'iproute'; await route.flush({ table: RouteRoutingTables.Cache // 'cache' });
-
Some methods were renamed, fi,
delete
todel
,utils.routingTables.flush
toutils.routingTables.clear
. -
Since now all
show
commands use the nativeiproute
-json
flag, the output interface is different that the one provided byv1.0.0
. -
The native
monitor
command doesn't support the-json
flag yet, and since all the manual stdout parsing was removed the librarymonitor
will only give you the actualstdout
lines for now, not a parsed object.
- Added excluded file to
.gitignore
.
- Added simple clarification on README.
- (@damoclark) Fix for link devices being deleted in monitor output.
- As module was very stable, bumped version to
1.0.0
so is marked as stable for registries. - Added EditorConfig support.
- (@steirico) Fixed missing declaration.
- Fixed typo in docs.
- Removed year in license.
- Improved error logging: changed to use default
Error()
constructor so the stack do not get lost.
ip-address
: Changedutils.scopes
from an array type to a map (object) type.ip-rule
: Added two new parameters added toiproute
:suppress_prefixlength
andsuppress_ifgroup
.ip-route
: Added one new parameters fromiproute
:quickack
and fixedonlink
one to behave correctly as a boolean flag.
- Added initial
ip-monitor
support for links.
-
Added
ip-route
support. -
Added
ip-utils
utility functions to provide extra functionality that complementsiproute
.
- Added
ip-rule
support.
-
Improved error logging.
-
Improved options handling.
- Added
ip-address
support.
- Added
ip-link
support.