Sho SHIMIZU
Committed by Gerrit Code Review

Remove API deprecated in Falcon

Change-Id: I80a8afbcd577a9cce174d3fc1e511b711d3c68d4
...@@ -149,7 +149,7 @@ public class ControlPlaneRedirectManagerTest { ...@@ -149,7 +149,7 @@ public class ControlPlaneRedirectManagerTest {
149 @Test 149 @Test
150 public void testAddDevice() { 150 public void testAddDevice() {
151 ConnectPoint sw1eth4 = new ConnectPoint(DEVICE_ID, PortNumber.portNumber(4)); 151 ConnectPoint sw1eth4 = new ConnectPoint(DEVICE_ID, PortNumber.portNumber(4));
152 - Set<InterfaceIpAddress> interfaceIpAddresses4 = Sets.newHashSet(); 152 + List<InterfaceIpAddress> interfaceIpAddresses4 = new ArrayList<>();
153 interfaceIpAddresses4 153 interfaceIpAddresses4
154 .add(new InterfaceIpAddress(IpAddress.valueOf("192.168.40.101"), IpPrefix.valueOf("192.168.40.0/24"))); 154 .add(new InterfaceIpAddress(IpAddress.valueOf("192.168.40.101"), IpPrefix.valueOf("192.168.40.0/24")));
155 155
...@@ -168,7 +168,7 @@ public class ControlPlaneRedirectManagerTest { ...@@ -168,7 +168,7 @@ public class ControlPlaneRedirectManagerTest {
168 @Test 168 @Test
169 public void testUpdateNetworkConfig() { 169 public void testUpdateNetworkConfig() {
170 ConnectPoint sw1eth4 = new ConnectPoint(DEVICE_ID, PortNumber.portNumber(4)); 170 ConnectPoint sw1eth4 = new ConnectPoint(DEVICE_ID, PortNumber.portNumber(4));
171 - Set<InterfaceIpAddress> interfaceIpAddresses4 = Sets.newHashSet(); 171 + List<InterfaceIpAddress> interfaceIpAddresses4 = new ArrayList<>();
172 interfaceIpAddresses4 172 interfaceIpAddresses4
173 .add(new InterfaceIpAddress(IpAddress.valueOf("192.168.40.101"), IpPrefix.valueOf("192.168.40.0/24"))); 173 .add(new InterfaceIpAddress(IpAddress.valueOf("192.168.40.101"), IpPrefix.valueOf("192.168.40.0/24")));
174 174
...@@ -189,7 +189,7 @@ public class ControlPlaneRedirectManagerTest { ...@@ -189,7 +189,7 @@ public class ControlPlaneRedirectManagerTest {
189 @Test 189 @Test
190 public void testAddInterface() { 190 public void testAddInterface() {
191 ConnectPoint sw1eth4 = new ConnectPoint(DEVICE_ID, PortNumber.portNumber(4)); 191 ConnectPoint sw1eth4 = new ConnectPoint(DEVICE_ID, PortNumber.portNumber(4));
192 - Set<InterfaceIpAddress> interfaceIpAddresses4 = Sets.newHashSet(); 192 + List<InterfaceIpAddress> interfaceIpAddresses4 = new ArrayList<>();
193 interfaceIpAddresses4 193 interfaceIpAddresses4
194 .add(new InterfaceIpAddress(IpAddress.valueOf("192.168.40.101"), IpPrefix.valueOf("192.168.40.0/24"))); 194 .add(new InterfaceIpAddress(IpAddress.valueOf("192.168.40.101"), IpPrefix.valueOf("192.168.40.0/24")));
195 195
...@@ -209,7 +209,7 @@ public class ControlPlaneRedirectManagerTest { ...@@ -209,7 +209,7 @@ public class ControlPlaneRedirectManagerTest {
209 @Test 209 @Test
210 public void testRemoveInterface() { 210 public void testRemoveInterface() {
211 ConnectPoint sw1eth4 = new ConnectPoint(DEVICE_ID, PortNumber.portNumber(4)); 211 ConnectPoint sw1eth4 = new ConnectPoint(DEVICE_ID, PortNumber.portNumber(4));
212 - Set<InterfaceIpAddress> interfaceIpAddresses4 = Sets.newHashSet(); 212 + List<InterfaceIpAddress> interfaceIpAddresses4 = new ArrayList<>();
213 interfaceIpAddresses4 213 interfaceIpAddresses4
214 .add(new InterfaceIpAddress(IpAddress.valueOf("192.168.40.101"), IpPrefix.valueOf("192.168.40.0/24"))); 214 .add(new InterfaceIpAddress(IpAddress.valueOf("192.168.40.101"), IpPrefix.valueOf("192.168.40.0/24")));
215 215
...@@ -329,21 +329,21 @@ public class ControlPlaneRedirectManagerTest { ...@@ -329,21 +329,21 @@ public class ControlPlaneRedirectManagerTest {
329 * Setup Interface expectation for all Testcases. 329 * Setup Interface expectation for all Testcases.
330 **/ 330 **/
331 private void setUpInterfaceService() { 331 private void setUpInterfaceService() {
332 - Set<InterfaceIpAddress> interfaceIpAddresses1 = Sets.newHashSet(); 332 + List<InterfaceIpAddress> interfaceIpAddresses1 = new ArrayList<>();
333 interfaceIpAddresses1 333 interfaceIpAddresses1
334 .add(new InterfaceIpAddress(IpAddress.valueOf("192.168.10.101"), IpPrefix.valueOf("192.168.10.0/24"))); 334 .add(new InterfaceIpAddress(IpAddress.valueOf("192.168.10.101"), IpPrefix.valueOf("192.168.10.0/24")));
335 Interface sw1Eth1 = new Interface(SW1_ETH1.deviceId().toString(), SW1_ETH1, interfaceIpAddresses1, 335 Interface sw1Eth1 = new Interface(SW1_ETH1.deviceId().toString(), SW1_ETH1, interfaceIpAddresses1,
336 MacAddress.valueOf("00:00:00:00:00:01"), VlanId.NONE); 336 MacAddress.valueOf("00:00:00:00:00:01"), VlanId.NONE);
337 interfaces.add(sw1Eth1); 337 interfaces.add(sw1Eth1);
338 338
339 - Set<InterfaceIpAddress> interfaceIpAddresses2 = Sets.newHashSet(); 339 + List<InterfaceIpAddress> interfaceIpAddresses2 = new ArrayList<>();
340 interfaceIpAddresses2 340 interfaceIpAddresses2
341 .add(new InterfaceIpAddress(IpAddress.valueOf("192.168.20.101"), IpPrefix.valueOf("192.168.20.0/24"))); 341 .add(new InterfaceIpAddress(IpAddress.valueOf("192.168.20.101"), IpPrefix.valueOf("192.168.20.0/24")));
342 Interface sw1Eth2 = new Interface(SW1_ETH1.deviceId().toString(), SW1_ETH2, interfaceIpAddresses2, 342 Interface sw1Eth2 = new Interface(SW1_ETH1.deviceId().toString(), SW1_ETH2, interfaceIpAddresses2,
343 MacAddress.valueOf("00:00:00:00:00:02"), VlanId.NONE); 343 MacAddress.valueOf("00:00:00:00:00:02"), VlanId.NONE);
344 interfaces.add(sw1Eth2); 344 interfaces.add(sw1Eth2);
345 345
346 - Set<InterfaceIpAddress> interfaceIpAddresses3 = Sets.newHashSet(); 346 + List<InterfaceIpAddress> interfaceIpAddresses3 = new ArrayList<>();
347 interfaceIpAddresses3 347 interfaceIpAddresses3
348 .add(new InterfaceIpAddress(IpAddress.valueOf("192.168.30.101"), IpPrefix.valueOf("192.168.30.0/24"))); 348 .add(new InterfaceIpAddress(IpAddress.valueOf("192.168.30.101"), IpPrefix.valueOf("192.168.30.0/24")));
349 Interface sw1Eth3 = new Interface(SW1_ETH1.deviceId().toString(), SW1_ETH3, interfaceIpAddresses3, 349 Interface sw1Eth3 = new Interface(SW1_ETH1.deviceId().toString(), SW1_ETH3, interfaceIpAddresses3,
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
15 */ 15 */
16 package org.onosproject.sdnip; 16 package org.onosproject.sdnip;
17 17
18 +import com.google.common.collect.ImmutableList;
18 import com.google.common.collect.Sets; 19 import com.google.common.collect.Sets;
19 import org.junit.Before; 20 import org.junit.Before;
20 import org.junit.Test; 21 import org.junit.Test;
...@@ -216,10 +217,11 @@ public class PeerConnectivityManagerTest extends AbstractIntentTest { ...@@ -216,10 +217,11 @@ public class PeerConnectivityManagerTest extends AbstractIntentTest {
216 InterfaceIpAddress ia4 = 217 InterfaceIpAddress ia4 =
217 new InterfaceIpAddress(IpAddress.valueOf("192.168.40.101"), 218 new InterfaceIpAddress(IpAddress.valueOf("192.168.40.101"),
218 IpPrefix.valueOf("192.168.40.0/24")); 219 IpPrefix.valueOf("192.168.40.0/24"));
219 - Interface intfsw3eth1 = new Interface(s3Eth1, 220 + Interface intfsw3eth1 = new Interface(Interface.NO_INTERFACE_NAME,
220 - Collections.singleton(ia4), 221 + s3Eth1,
221 - MacAddress.valueOf("00:00:00:00:00:04"), 222 + ImmutableList.of(ia4),
222 - VLAN10); 223 + MacAddress.valueOf("00:00:00:00:00:04"),
224 + VLAN10);
223 225
224 configuredInterfaces.put(interfaceSw3Eth1, intfsw3eth1); 226 configuredInterfaces.put(interfaceSw3Eth1, intfsw3eth1);
225 227
...@@ -227,10 +229,11 @@ public class PeerConnectivityManagerTest extends AbstractIntentTest { ...@@ -227,10 +229,11 @@ public class PeerConnectivityManagerTest extends AbstractIntentTest {
227 InterfaceIpAddress ia5 = 229 InterfaceIpAddress ia5 =
228 new InterfaceIpAddress(IpAddress.valueOf("192.168.50.101"), 230 new InterfaceIpAddress(IpAddress.valueOf("192.168.50.101"),
229 IpPrefix.valueOf("192.168.50.0/24")); 231 IpPrefix.valueOf("192.168.50.0/24"));
230 - Interface intfsw3eth1intf2 = new Interface(s3Eth1, 232 + Interface intfsw3eth1intf2 = new Interface(Interface.NO_INTERFACE_NAME,
231 - Collections.singleton(ia5), 233 + s3Eth1,
232 - MacAddress.valueOf("00:00:00:00:00:05"), 234 + ImmutableList.of(ia5),
233 - VLAN20); 235 + MacAddress.valueOf("00:00:00:00:00:05"),
236 + VLAN20);
234 237
235 configuredInterfaces.put(interfaceSw3Eth1intf2, intfsw3eth1intf2); 238 configuredInterfaces.put(interfaceSw3Eth1intf2, intfsw3eth1intf2);
236 239
......
...@@ -185,7 +185,8 @@ public class HostMonitorTest { ...@@ -185,7 +185,8 @@ public class HostMonitorTest {
185 185
186 InterfaceService interfaceService = createMock(InterfaceService.class); 186 InterfaceService interfaceService = createMock(InterfaceService.class);
187 expect(interfaceService.getMatchingInterface(TARGET_IPV4_ADDR)) 187 expect(interfaceService.getMatchingInterface(TARGET_IPV4_ADDR))
188 - .andReturn(new Interface(cp, Collections.singletonList(IA1), sourceMac, VlanId.NONE)) 188 + .andReturn(new Interface(Interface.NO_INTERFACE_NAME,
189 + cp, Collections.singletonList(IA1), sourceMac, VlanId.NONE))
189 .anyTimes(); 190 .anyTimes();
190 replay(interfaceService); 191 replay(interfaceService);
191 192
...@@ -253,7 +254,8 @@ public class HostMonitorTest { ...@@ -253,7 +254,8 @@ public class HostMonitorTest {
253 254
254 InterfaceService interfaceService = createMock(InterfaceService.class); 255 InterfaceService interfaceService = createMock(InterfaceService.class);
255 expect(interfaceService.getMatchingInterface(TARGET_IPV6_ADDR)) 256 expect(interfaceService.getMatchingInterface(TARGET_IPV6_ADDR))
256 - .andReturn(new Interface(cp, Collections.singletonList(IA2), sourceMac2, VlanId.NONE)) 257 + .andReturn(new Interface(Interface.NO_INTERFACE_NAME, cp,
258 + Collections.singletonList(IA2), sourceMac2, VlanId.NONE))
257 .anyTimes(); 259 .anyTimes();
258 replay(interfaceService); 260 replay(interfaceService);
259 261
...@@ -323,7 +325,8 @@ public class HostMonitorTest { ...@@ -323,7 +325,8 @@ public class HostMonitorTest {
323 325
324 InterfaceService interfaceService = createMock(InterfaceService.class); 326 InterfaceService interfaceService = createMock(InterfaceService.class);
325 expect(interfaceService.getMatchingInterface(TARGET_IPV4_ADDR)) 327 expect(interfaceService.getMatchingInterface(TARGET_IPV4_ADDR))
326 - .andReturn(new Interface(cp, Collections.singletonList(IA1), sourceMac, VlanId.vlanId(vlan))) 328 + .andReturn(new Interface(Interface.NO_INTERFACE_NAME, cp,
329 + Collections.singletonList(IA1), sourceMac, VlanId.vlanId(vlan)))
327 .anyTimes(); 330 .anyTimes();
328 replay(interfaceService); 331 replay(interfaceService);
329 332
...@@ -392,7 +395,8 @@ public class HostMonitorTest { ...@@ -392,7 +395,8 @@ public class HostMonitorTest {
392 395
393 InterfaceService interfaceService = createMock(InterfaceService.class); 396 InterfaceService interfaceService = createMock(InterfaceService.class);
394 expect(interfaceService.getMatchingInterface(TARGET_IPV6_ADDR)) 397 expect(interfaceService.getMatchingInterface(TARGET_IPV6_ADDR))
395 - .andReturn(new Interface(cp, Collections.singletonList(IA2), sourceMac2, VlanId.vlanId(vlan))) 398 + .andReturn(new Interface(Interface.NO_INTERFACE_NAME, cp,
399 + Collections.singletonList(IA2), sourceMac2, VlanId.vlanId(vlan)))
396 .anyTimes(); 400 .anyTimes();
397 replay(interfaceService); 401 replay(interfaceService);
398 402
......
...@@ -296,12 +296,10 @@ public class ProxyArpManagerTest { ...@@ -296,12 +296,10 @@ public class ProxyArpManagerTest {
296 InterfaceIpAddress ia4 = new InterfaceIpAddress(addr4, prefix4); 296 InterfaceIpAddress ia4 = new InterfaceIpAddress(addr4, prefix4);
297 297
298 // Setting up interfaces 298 // Setting up interfaces
299 - Interface intf1 = new Interface(cp, Lists.newArrayList(ia1, ia3), 299 + Interface intf1 = new Interface(Interface.NO_INTERFACE_NAME, cp,
300 - MacAddress.valueOf(2 * i - 1), 300 + Lists.newArrayList(ia1, ia3), MacAddress.valueOf(2 * i - 1), VlanId.vlanId((short) 1));
301 - VlanId.vlanId((short) 1)); 301 + Interface intf2 = new Interface(Interface.NO_INTERFACE_NAME, cp,
302 - Interface intf2 = new Interface(cp, Lists.newArrayList(ia2, ia4), 302 + Lists.newArrayList(ia2, ia4), MacAddress.valueOf(2 * i), VlanId.NONE);
303 - MacAddress.valueOf(2 * i),
304 - VlanId.NONE);
305 303
306 interfaces.add(intf1); 304 interfaces.add(intf1);
307 interfaces.add(intf2); 305 interfaces.add(intf2);
...@@ -313,7 +311,7 @@ public class ProxyArpManagerTest { ...@@ -313,7 +311,7 @@ public class ProxyArpManagerTest {
313 } 311 }
314 for (int i = LAST_CONF_DEVICE_INTF_VLAN_IP + 1; i <= LAST_CONF_DEVICE_INTF_VLAN; i++) { 312 for (int i = LAST_CONF_DEVICE_INTF_VLAN_IP + 1; i <= LAST_CONF_DEVICE_INTF_VLAN; i++) {
315 ConnectPoint cp = new ConnectPoint(getDeviceId(i), P1); 313 ConnectPoint cp = new ConnectPoint(getDeviceId(i), P1);
316 - Interface intf1 = new Interface(cp, Collections.emptyList(), 314 + Interface intf1 = new Interface(Interface.NO_INTERFACE_NAME, cp, Collections.emptyList(),
317 MacAddress.NONE, 315 MacAddress.NONE,
318 VlanId.vlanId((short) 1)); 316 VlanId.vlanId((short) 1));
319 317
...@@ -850,7 +848,7 @@ public class ProxyArpManagerTest { ...@@ -850,7 +848,7 @@ public class ProxyArpManagerTest {
850 848
851 expect(hostService.getHostsByIp(theirIp)).andReturn(Collections.emptySet()); 849 expect(hostService.getHostsByIp(theirIp)).andReturn(Collections.emptySet());
852 expect(interfaceService.getInterfacesByIp(ourIp)) 850 expect(interfaceService.getInterfacesByIp(ourIp))
853 - .andReturn(Collections.singleton(new Interface(getLocation(1), 851 + .andReturn(Collections.singleton(new Interface(Interface.NO_INTERFACE_NAME, getLocation(1),
854 Collections.singletonList(new InterfaceIpAddress(ourIp, IpPrefix.valueOf("10.0.1.1/24"))), 852 Collections.singletonList(new InterfaceIpAddress(ourIp, IpPrefix.valueOf("10.0.1.1/24"))),
855 ourMac, VLAN1))); 853 ourMac, VLAN1)));
856 expect(hostService.getHost(HostId.hostId(ourMac, VLAN1))).andReturn(null); 854 expect(hostService.getHost(HostId.hostId(ourMac, VLAN1))).andReturn(null);
...@@ -883,7 +881,7 @@ public class ProxyArpManagerTest { ...@@ -883,7 +881,7 @@ public class ProxyArpManagerTest {
883 881
884 expect(hostService.getHostsByIp(theirIp)).andReturn(Collections.emptySet()); 882 expect(hostService.getHostsByIp(theirIp)).andReturn(Collections.emptySet());
885 expect(interfaceService.getInterfacesByIp(ourIp)) 883 expect(interfaceService.getInterfacesByIp(ourIp))
886 - .andReturn(Collections.singleton(new Interface(getLocation(1), 884 + .andReturn(Collections.singleton(new Interface(Interface.NO_INTERFACE_NAME, getLocation(1),
887 Collections.singletonList(new InterfaceIpAddress( 885 Collections.singletonList(new InterfaceIpAddress(
888 ourIp, 886 ourIp,
889 IpPrefix.valueOf("1000::1/64"))), 887 IpPrefix.valueOf("1000::1/64"))),
......
...@@ -64,60 +64,6 @@ public class Interface { ...@@ -64,60 +64,6 @@ public class Interface {
64 } 64 }
65 65
66 /** 66 /**
67 - * Creates new Interface with the provided configuration.
68 - *
69 - * @param name name of the interface
70 - * @param connectPoint the connect point this interface maps to
71 - * @param ipAddresses set of IP addresses
72 - * @param macAddress MAC address
73 - * @param vlan VLAN ID
74 - * @deprecated in Falcon release, in favour of ordered list
75 - */
76 - @Deprecated
77 - public Interface(String name, ConnectPoint connectPoint,
78 - Set<InterfaceIpAddress> ipAddresses,
79 - MacAddress macAddress, VlanId vlan) {
80 - this.name = name == null ? NO_INTERFACE_NAME : name;
81 - this.connectPoint = checkNotNull(connectPoint);
82 - this.ipAddresses = ipAddresses == null ? Lists.newArrayList() :
83 - ipAddresses.stream().collect(Collectors.toList());
84 - this.macAddress = macAddress == null ? MacAddress.NONE : macAddress;
85 - this.vlan = vlan == null ? VlanId.NONE : vlan;
86 - }
87 -
88 - /**
89 - * Creates new Interface with the provided configuration.
90 - *
91 - * @param connectPoint the connect point this interface maps to
92 - * @param ipAddresses Set of IP addresses
93 - * @param macAddress MAC address
94 - * @param vlan VLAN ID
95 - * @deprecated in Falcon release - use constructors with names instead
96 - */
97 - @Deprecated
98 - public Interface(ConnectPoint connectPoint,
99 - Set<InterfaceIpAddress> ipAddresses,
100 - MacAddress macAddress, VlanId vlan) {
101 - this(NO_INTERFACE_NAME, connectPoint, ipAddresses, macAddress, vlan);
102 - }
103 -
104 - /**
105 - * Creates new Interface with the provided configuration.
106 - *
107 - * @param connectPoint the connect point this interface maps to
108 - * @param ipAddresses Set of IP addresses
109 - * @param macAddress MAC address
110 - * @param vlan VLAN ID
111 - * @deprecated in Falcon release - use constructors with names instead
112 - */
113 - @Deprecated
114 - public Interface(ConnectPoint connectPoint,
115 - List<InterfaceIpAddress> ipAddresses,
116 - MacAddress macAddress, VlanId vlan) {
117 - this(NO_INTERFACE_NAME, connectPoint, ipAddresses, macAddress, vlan);
118 - }
119 -
120 - /**
121 * Retrieves the name of the interface. 67 * Retrieves the name of the interface.
122 * 68 *
123 * @return name 69 * @return name
......
...@@ -88,7 +88,7 @@ public class InterfaceManagerTest { ...@@ -88,7 +88,7 @@ public class InterfaceManagerTest {
88 88
89 InterfaceIpAddress ia = InterfaceIpAddress.valueOf("192.168." + i + ".1/24"); 89 InterfaceIpAddress ia = InterfaceIpAddress.valueOf("192.168." + i + ".1/24");
90 90
91 - Interface intf = new Interface(cp, 91 + Interface intf = new Interface(Interface.NO_INTERFACE_NAME, cp,
92 Collections.singletonList(ia), 92 Collections.singletonList(ia),
93 MacAddress.valueOf(i), 93 MacAddress.valueOf(i),
94 VlanId.vlanId((short) i)); 94 VlanId.vlanId((short) i));
...@@ -151,7 +151,7 @@ public class InterfaceManagerTest { ...@@ -151,7 +151,7 @@ public class InterfaceManagerTest {
151 // Create a new InterfaceConfig which will get added 151 // Create a new InterfaceConfig which will get added
152 VlanId vlanId = VlanId.vlanId((short) 1); 152 VlanId vlanId = VlanId.vlanId((short) 1);
153 ConnectPoint cp = ConnectPoint.deviceConnectPoint("of:0000000000000001/2"); 153 ConnectPoint cp = ConnectPoint.deviceConnectPoint("of:0000000000000001/2");
154 - Interface newIntf = new Interface(cp, 154 + Interface newIntf = new Interface(Interface.NO_INTERFACE_NAME, cp,
155 Collections.emptyList(), 155 Collections.emptyList(),
156 MacAddress.valueOf(100), 156 MacAddress.valueOf(100),
157 vlanId); 157 vlanId);
...@@ -188,11 +188,11 @@ public class InterfaceManagerTest { ...@@ -188,11 +188,11 @@ public class InterfaceManagerTest {
188 Interface intf = createInterface(1); 188 Interface intf = createInterface(1);
189 List<InterfaceIpAddress> addresses = Lists.newArrayList(intf.ipAddresses()); 189 List<InterfaceIpAddress> addresses = Lists.newArrayList(intf.ipAddresses());
190 addresses.add(InterfaceIpAddress.valueOf("192.168.100.1/24")); 190 addresses.add(InterfaceIpAddress.valueOf("192.168.100.1/24"));
191 - intf = new Interface(intf.connectPoint(), addresses, intf.mac(), intf.vlan()); 191 + intf = new Interface(Interface.NO_INTERFACE_NAME, intf.connectPoint(), addresses, intf.mac(), intf.vlan());
192 192
193 // Create a new interface on the same connect point as the existing one 193 // Create a new interface on the same connect point as the existing one
194 InterfaceIpAddress newAddr = InterfaceIpAddress.valueOf("192.168.101.1/24"); 194 InterfaceIpAddress newAddr = InterfaceIpAddress.valueOf("192.168.101.1/24");
195 - Interface newIntf = new Interface(cp, 195 + Interface newIntf = new Interface(Interface.NO_INTERFACE_NAME, cp,
196 Collections.singletonList(newAddr), 196 Collections.singletonList(newAddr),
197 MacAddress.valueOf(101), 197 MacAddress.valueOf(101),
198 VlanId.vlanId((short) 101)); 198 VlanId.vlanId((short) 101));
......