feat: Initialize project with core dependencies, Vultr API client, customer database service, and migration documentation.
This commit is contained in:
22
not_used/check_specific_interface.js
Normal file
22
not_used/check_specific_interface.js
Normal file
@@ -0,0 +1,22 @@
|
||||
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();
|
||||
Reference in New Issue
Block a user