mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* add types for netconf * refactor: set `strictNullChecks` to true * refactor: change to 'dt.json' from 'dtslint.json' * docs: add notes * docs: minor change
22 lines
360 B
TypeScript
22 lines
360 B
TypeScript
import * as netconf from 'netconf';
|
|
|
|
const router = new netconf.Client({
|
|
host: '172.28.128.3',
|
|
username: 'vagrant',
|
|
password: 'password',
|
|
});
|
|
|
|
router.open((err) => {
|
|
if (err) {
|
|
throw err;
|
|
}
|
|
|
|
router.rpc('get-arp-table-information', (err, reply) => {
|
|
router.close();
|
|
if (err) {
|
|
throw err;
|
|
}
|
|
// console.log(reply);
|
|
});
|
|
});
|