23 lines
666 B
JavaScript
23 lines
666 B
JavaScript
require('dotenv').config();
|
|
const mikrotik = require('./services/mikrotikService');
|
|
|
|
async function test() {
|
|
console.log("Searching for interface 'vlan_88_PtP_Dell'...");
|
|
try {
|
|
const interfaces = await mikrotik.getInterfaces();
|
|
const target = interfaces.find(i => i.name === 'vlan_88_PtP_Dell');
|
|
|
|
if (target) {
|
|
console.log("Interface Found:");
|
|
console.log(target);
|
|
} else {
|
|
console.log("Interface 'vlan_88_PtP_Dell' NOT FOUND.");
|
|
console.log("Total interfaces:", interfaces.length);
|
|
}
|
|
} catch (error) {
|
|
console.error("Test Failed:", error);
|
|
}
|
|
}
|
|
|
|
test();
|