Skip to content

Commit 3b4b903

Browse files
committed
cisco-iosxe: fix missing native vlan on trunk
1 parent 6ea9cbf commit 3b4b903

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/modules/cisco-iosxe/container/services/interface-setvlantrunk.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ const ciscoIOSXEApi = require("@utils/ciscoiosxe-api");
77
module.exports = async (interfaceId, untaggedVlan = 1, taggedVlans = []) => {
88
const config = await configGet();
99

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+
1015
// fetch interface details
1116
const interfacesCollection = await mongoCollection("interfaces");
1217
const dbInterface = await interfacesCollection.findOne({ interfaceId: interfaceId });

0 commit comments

Comments
 (0)