We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ea9cbf commit 3b4b903Copy full SHA for 3b4b903
src/modules/cisco-iosxe/container/services/interface-setvlantrunk.js
@@ -7,6 +7,11 @@ const ciscoIOSXEApi = require("@utils/ciscoiosxe-api");
7
module.exports = async (interfaceId, untaggedVlan = 1, taggedVlans = []) => {
8
const config = await configGet();
9
10
+ // we have to add the untagged vlan to the tagged vlans (it's a thing...)
11
+ if (!taggedVlans.includes(untaggedVlan)) {
12
+ taggedVlans.push(untaggedVlan);
13
+ }
14
+
15
// fetch interface details
16
const interfacesCollection = await mongoCollection("interfaces");
17
const dbInterface = await interfacesCollection.findOne({ interfaceId: interfaceId });
0 commit comments