DefinitelyTyped/types/netconf/netconf-tests.ts
Leodinas Hao c3471843aa Add types for netconf (#38287)
* add types for netconf

* refactor: set `strictNullChecks` to true

* refactor: change to 'dt.json' from 'dtslint.json'

* docs: add notes

* docs: minor change
2019-09-24 16:14:57 -07:00

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);
});
});