--- ../tmp/nav-3.1.0/src/getDeviceData/device-plugins/CiscoSwIOS/src/no/ntnu/nav/getDeviceData/deviceplugins/CiscoSwIOS/CiscoSwIOS.java	Fri Mar 10 13:12:12 2006
+++ src/getDeviceData/device-plugins/CiscoSwIOS/src/no/ntnu/nav/getDeviceData/deviceplugins/CiscoSwIOS/CiscoSwIOS.java	Fri Sep  1 13:06:47 2006
@@ -146,6 +146,11 @@
 					m.matches();
 					moduleCntSet.add(m.group(3));
 				}
+				boolean boo = nb.getSysname().matches("gw-core-vlan1");
+				if (nb.getSysname().matches("gw-core-vlan1")) { // freebsd
+					matchIfindex.add(s[0]);
+					moduleCntSet.add("0");
+				}
 			}
 		}
 		if (matchIfindex.isEmpty()) return;
@@ -239,6 +248,14 @@
 					if (!modPortMM.put(new Integer(module), port)) {
 						port = new Integer(Integer.parseInt(ifindex));
 					}
+					swp.setPort(port);
+				} catch (NumberFormatException e) { }
+			}
+			boolean boo = nb.getSysname().matches("gw-core-vlan1");
+			if (boo) {
+				try {
+					// If we have a submodule the port is one index higher
+					Integer port = Integer.valueOf(ifindex);
 					swp.setPort(port);
 				} catch (NumberFormatException e) { }
 			}
