Fix checkstyle complains
[bgpcep.git] / bgp / rib-impl / src / test / java / org / opendaylight / protocol / bgp / rib / impl / SynchronizationAndExceptionTest.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.protocol.bgp.rib.impl;
10
11 import static org.mockito.Matchers.any;
12 import static org.mockito.Matchers.eq;
13 import static org.mockito.Mockito.doAnswer;
14 import static org.mockito.Mockito.doNothing;
15 import static org.mockito.Mockito.doReturn;
16 import static org.mockito.Mockito.mock;
17 import static org.mockito.Mockito.verify;
18 import static org.mockito.internal.verification.VerificationModeFactory.times;
19 import static org.opendaylight.protocol.bgp.rib.impl.AdjRibInWriter.ATTRIBUTES_UPTODATE_FALSE;
20
21 import com.google.common.base.Optional;
22 import com.google.common.collect.ImmutableList;
23 import com.google.common.collect.ImmutableMap;
24 import com.google.common.collect.Lists;
25 import com.google.common.util.concurrent.FluentFuture;
26 import io.netty.channel.Channel;
27 import io.netty.channel.ChannelFuture;
28 import io.netty.channel.ChannelHandler;
29 import io.netty.channel.ChannelPipeline;
30 import io.netty.channel.EventLoop;
31 import io.netty.channel.embedded.EmbeddedChannel;
32 import io.netty.util.concurrent.GlobalEventExecutor;
33 import java.net.InetAddress;
34 import java.net.InetSocketAddress;
35 import java.util.Collections;
36 import java.util.List;
37 import java.util.Map;
38 import java.util.concurrent.Executor;
39 import java.util.concurrent.TimeUnit;
40 import org.junit.Before;
41 import org.junit.Test;
42 import org.mockito.Matchers;
43 import org.mockito.Mock;
44 import org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType;
45 import org.opendaylight.controller.md.sal.dom.api.DOMDataBroker;
46 import org.opendaylight.controller.md.sal.dom.api.DOMDataTreeChangeService;
47 import org.opendaylight.controller.md.sal.dom.api.DOMDataWriteTransaction;
48 import org.opendaylight.controller.md.sal.dom.api.DOMTransactionChain;
49 import org.opendaylight.mdsal.common.api.CommitInfo;
50 import org.opendaylight.protocol.bgp.mode.api.PathSelectionMode;
51 import org.opendaylight.protocol.bgp.mode.impl.base.BasePathSelectionModeFactory;
52 import org.opendaylight.protocol.bgp.parser.BgpExtendedMessageUtil;
53 import org.opendaylight.protocol.bgp.parser.BgpTableTypeImpl;
54 import org.opendaylight.protocol.bgp.rib.spi.RibSupportUtils;
55 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber;
56 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress;
57 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address;
58 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Prefix;
59 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev180329.Notify;
60 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev180329.Open;
61 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev180329.OpenBuilder;
62 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev180329.ProtocolVersion;
63 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev180329.UpdateBuilder;
64 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev180329.open.message.BgpParameters;
65 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev180329.open.message.BgpParametersBuilder;
66 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev180329.open.message.bgp.parameters.OptionalCapabilities;
67 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev180329.open.message.bgp.parameters.OptionalCapabilitiesBuilder;
68 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev180329.open.message.bgp.parameters.optional.capabilities.CParametersBuilder;
69 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev180329.open.message.bgp.parameters.optional.capabilities.c.parameters.As4BytesCapabilityBuilder;
70 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev180329.path.attributes.AttributesBuilder;
71 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev180329.path.attributes.attributes.AsPath;
72 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev180329.path.attributes.attributes.AsPathBuilder;
73 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev180329.path.attributes.attributes.LocalPrefBuilder;
74 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev180329.path.attributes.attributes.Origin;
75 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev180329.path.attributes.attributes.OriginBuilder;
76 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev180329.update.message.Nlri;
77 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev180329.update.message.NlriBuilder;
78 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.BgpTableType;
79 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.CParameters1;
80 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.CParameters1Builder;
81 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.mp.capabilities.GracefulRestartCapabilityBuilder;
82 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.mp.capabilities.MultiprotocolCapabilityBuilder;
83 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev180329.BgpRib;
84 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev180329.PeerRole;
85 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev180329.RibId;
86 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev180329.bgp.rib.Rib;
87 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev180329.bgp.rib.rib.Peer;
88 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev180329.bgp.rib.rib.peer.AdjRibIn;
89 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev180329.rib.Tables;
90 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev180329.rib.TablesKey;
91 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev180329.rib.tables.Attributes;
92 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev180329.BgpId;
93 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev180329.BgpOrigin;
94 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev180329.Ipv4AddressFamily;
95 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev180329.UnicastSubsequentAddressFamily;
96 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev180329.next.hop.CNextHop;
97 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev180329.next.hop.c.next.hop.Ipv4NextHopCaseBuilder;
98 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev180329.next.hop.c.next.hop.ipv4.next.hop._case.Ipv4NextHopBuilder;
99 import org.opendaylight.yangtools.concepts.ListenerRegistration;
100 import org.opendaylight.yangtools.yang.common.QName;
101 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
102 import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
103 import org.opendaylight.yangtools.yang.data.impl.schema.ImmutableNodes;
104
105 public class SynchronizationAndExceptionTest extends AbstractAddPathTest {
106     private static final int HOLD_TIMER = 3;
107     private static final AsNumber AS_NUMBER = new AsNumber(30L);
108     private static final Ipv4Address BGP_ID = new Ipv4Address("1.1.1.2");
109     private static final String LOCAL_IP = "1.1.1.4";
110     private static final int LOCAL_PORT = 12345;
111     private static final String RIB_ID = "1.1.1.2";
112     private static final YangInstanceIdentifier PEER_PATH = YangInstanceIdentifier.builder()
113             .node(BgpRib.QNAME).node(Rib.QNAME)
114             .nodeWithKey(Rib.QNAME, QName.create(Rib.QNAME, "id").intern(), RIB_ID)
115             .node(Peer.QNAME).nodeWithKey(Peer.QNAME, AdjRibInWriter.PEER_ID_QNAME, "bgp://1.1.1.2").build();
116     private static final YangInstanceIdentifier TABLE_PATH = PEER_PATH.node(AdjRibIn.QNAME).node(Tables.QNAME)
117             .node(RibSupportUtils.toYangTablesKey(new TablesKey(Ipv4AddressFamily.class,
118                     UnicastSubsequentAddressFamily.class))).node(Attributes.QNAME)
119             .node(QName.create(Attributes.QNAME, "uptodate"));
120     private final IpAddress neighbor = new IpAddress(new Ipv4Address(LOCAL_IP));
121     private final BgpTableType ipv4tt = new BgpTableTypeImpl(Ipv4AddressFamily.class,
122             UnicastSubsequentAddressFamily.class);
123     private Open classicOpen;
124     @Mock
125     private EventLoop eventLoop;
126     @Mock
127     private ChannelPipeline pipeline;
128     @Mock
129     private Channel speakerListener;
130     @Mock
131     private DOMDataBroker domBroker;
132     @Mock
133     private DOMTransactionChain domChain;
134     @Mock
135     private DOMDataWriteTransaction tx;
136
137     @Override
138     @Before
139     public void setUp() throws Exception {
140         super.setUp();
141         new EmbeddedChannel();
142         final List<BgpParameters> tlvs = Lists.newArrayList();
143         this.classicOpen = new OpenBuilder().setMyAsNumber(AS_NUMBER.getValue().intValue()).setHoldTimer(HOLD_TIMER)
144                 .setVersion(new ProtocolVersion((short) 4)).setBgpParameters(tlvs).setBgpIdentifier(BGP_ID).build();
145
146         final List<OptionalCapabilities> capa = Lists.newArrayList();
147         capa.add(new OptionalCapabilitiesBuilder().setCParameters(new CParametersBuilder()
148                 .addAugmentation(CParameters1.class, new CParameters1Builder()
149                         .setMultiprotocolCapability(new MultiprotocolCapabilityBuilder()
150                                 .setAfi(this.ipv4tt.getAfi()).setSafi(this.ipv4tt.getSafi()).build())
151                         .setGracefulRestartCapability(new GracefulRestartCapabilityBuilder().build()).build())
152                 .setAs4BytesCapability(new As4BytesCapabilityBuilder().setAsNumber(AS_NUMBER).build()).build())
153                 .build());
154         capa.add(new OptionalCapabilitiesBuilder()
155                 .setCParameters(BgpExtendedMessageUtil.EXTENDED_MESSAGE_CAPABILITY).build());
156         tlvs.add(new BgpParametersBuilder().setOptionalCapabilities(capa).build());
157
158         doReturn(null).when(mock(ChannelFuture.class)).addListener(any());
159         doReturn(this.eventLoop).when(this.speakerListener).eventLoop();
160         doReturn(true).when(this.speakerListener).isActive();
161         doAnswer(invocation -> {
162             final Runnable command = (Runnable) invocation.getArguments()[0];
163             final long delay = (long) invocation.getArguments()[1];
164             final TimeUnit unit = (TimeUnit) invocation.getArguments()[2];
165             GlobalEventExecutor.INSTANCE.schedule(command, delay, unit);
166             return null;
167         }).when(this.eventLoop).schedule(any(Runnable.class), any(long.class), any(TimeUnit.class));
168         doReturn("TestingChannel").when(this.speakerListener).toString();
169         doReturn(true).when(this.speakerListener).isWritable();
170         doReturn(new InetSocketAddress(InetAddress.getByName(BGP_ID.getValue()), 179))
171                 .when(this.speakerListener).remoteAddress();
172         doReturn(new InetSocketAddress(InetAddress.getByName(LOCAL_IP), LOCAL_PORT))
173                 .when(this.speakerListener).localAddress();
174         doReturn(this.pipeline).when(this.speakerListener).pipeline();
175         doReturn(this.pipeline).when(this.pipeline).replace(any(ChannelHandler.class),
176                 any(String.class),
177                 any(ChannelHandler.class));
178         doReturn(null).when(this.pipeline).replace(Matchers.<Class<ChannelHandler>>any(),
179                 any(String.class),
180                 any(ChannelHandler.class));
181         doReturn(this.pipeline).when(this.pipeline).addLast(any(ChannelHandler.class));
182         final ChannelFuture futureChannel = mock(ChannelFuture.class);
183         doReturn(null).when(futureChannel).addListener(any());
184         doReturn(futureChannel).when(this.speakerListener).close();
185         doReturn(futureChannel).when(this.speakerListener).writeAndFlush(any(Notify.class));
186         doReturn(this.domChain).when(this.domBroker).createTransactionChain(any());
187         doReturn(this.tx).when(this.domChain).newWriteOnlyTransaction();
188         final DOMDataTreeChangeService dOMDataTreeChangeService = mock(DOMDataTreeChangeService.class);
189         final ListenerRegistration<?> listener = mock(ListenerRegistration.class);
190         doReturn(listener).when(dOMDataTreeChangeService).registerDataTreeChangeListener(any(), any());
191         doNothing().when(listener).close();
192
193         doReturn(Collections.singletonMap(DOMDataTreeChangeService.class, dOMDataTreeChangeService))
194                 .when(this.domBroker).getSupportedExtensions();
195         doNothing().when(this.tx).merge(eq(LogicalDatastoreType.OPERATIONAL),
196                 any(YangInstanceIdentifier.class), any(NormalizedNode.class));
197         doNothing().when(this.tx).put(eq(LogicalDatastoreType.OPERATIONAL),
198                 any(YangInstanceIdentifier.class), any(NormalizedNode.class));
199         doNothing().when(this.tx).delete(any(LogicalDatastoreType.class), any(YangInstanceIdentifier.class));
200         final FluentFuture<? extends CommitInfo> fluentFuture = mock(FluentFuture.class);
201         doAnswer(invocation -> {
202             final Runnable callback = (Runnable) invocation.getArguments()[0];
203             callback.run();
204             return null;
205         }).when(fluentFuture).addListener(any(Runnable.class), any(Executor.class));
206         doReturn(fluentFuture).when(this.tx).commit();
207         doReturn(mock(Optional.class)).when(fluentFuture).get();
208     }
209
210     @Test
211     public void testHandleMessageAfterException() {
212         final Map<TablesKey, PathSelectionMode> pathTables = ImmutableMap.of(TABLES_KEY,
213             BasePathSelectionModeFactory.createBestPathSelectionStrategy());
214         final RIBImpl ribImpl = new RIBImpl(this.tableRegistry, new RibId(RIB_ID), AS_NUMBER,  new BgpId(RIB_ID),
215                 this.ribExtension,
216                 this.serverDispatcher, this.codecsRegistry, this.domBroker, getDataBroker(), this.policies,
217                 ImmutableList.of(this.ipv4tt), pathTables);
218         ribImpl.instantiateServiceInstance();
219         ribImpl.onGlobalContextUpdated(this.schemaService.getGlobalContext());
220
221         final BGPPeer bgpPeer = new BGPPeer(this.tableRegistry, neighbor, ribImpl, PeerRole.Ibgp, null,
222                 AFI_SAFIS_ADVERTIZED, Collections.emptySet());
223         bgpPeer.instantiateServiceInstance();
224         final BGPSessionImpl bgpSession = new BGPSessionImpl(bgpPeer, this.speakerListener, this.classicOpen,
225                 this.classicOpen.getHoldTimer(), null);
226         bgpSession.setChannelExtMsgCoder(this.classicOpen);
227         bgpPeer.onSessionUp(bgpSession);
228
229         final Nlri n1 = new NlriBuilder().setPrefix(new Ipv4Prefix("8.0.1.0/28")).build();
230         final Nlri n2 = new NlriBuilder().setPrefix( new Ipv4Prefix("127.0.0.1/32")).build();
231         final Nlri n3 = new NlriBuilder().setPrefix( new Ipv4Prefix("2.2.2.2/24")).build();
232         final List<Nlri> nlris = Lists.newArrayList(n1, n2, n3);
233         final UpdateBuilder wrongMessage = new UpdateBuilder();
234         wrongMessage.setNlri(nlris);
235         final Origin origin = new OriginBuilder().setValue(BgpOrigin.Igp).build();
236         final AsPath asPath = new AsPathBuilder().setSegments(Collections.emptyList()).build();
237         final CNextHop nextHop = new Ipv4NextHopCaseBuilder().setIpv4NextHop(new Ipv4NextHopBuilder()
238                 .setGlobal(new Ipv4Address("127.0.0.1")).build()).build();
239         final AttributesBuilder ab = new AttributesBuilder();
240         wrongMessage.setAttributes(ab.setOrigin(origin).setAsPath(asPath).setCNextHop(nextHop).build());
241
242         final UpdateBuilder correct = new UpdateBuilder(wrongMessage.build());
243         correct.setAttributes(ab.setLocalPref(new LocalPrefBuilder().setPref((long) 100).build()).build());
244
245         bgpSession.handleMessage(correct.build());
246         verify(this.tx, times(2)).merge(eq(LogicalDatastoreType.OPERATIONAL),
247                 any(YangInstanceIdentifier.class), any(NormalizedNode.class));
248         bgpSession.handleMessage(wrongMessage.build());
249         verify(this.tx, times(2)).merge(eq(LogicalDatastoreType.OPERATIONAL),
250                 any(YangInstanceIdentifier.class), any(NormalizedNode.class));
251         bgpSession.handleMessage(new UpdateBuilder().build());
252         verify(this.tx, times(2)).merge(eq(LogicalDatastoreType.OPERATIONAL),
253                 any(YangInstanceIdentifier.class), any(NormalizedNode.class));
254         verify(this.tx).delete(eq(LogicalDatastoreType.OPERATIONAL), eq(PEER_PATH));
255         verify(this.tx, times(0)).merge(eq(LogicalDatastoreType.OPERATIONAL), eq(TABLE_PATH),
256                 eq(ImmutableNodes.leafNode(ATTRIBUTES_UPTODATE_FALSE.getNodeType(), Boolean.TRUE)));
257     }
258
259     @Test
260     public void testUseCase1() {
261         final Map<TablesKey, PathSelectionMode> pathTables = ImmutableMap.of(TABLES_KEY,
262                 BasePathSelectionModeFactory.createBestPathSelectionStrategy());
263         final RIBImpl ribImpl = new RIBImpl(this.tableRegistry, new RibId(RIB_ID), AS_NUMBER, new BgpId(RIB_ID),
264                 this.ribExtension,
265                 this.serverDispatcher, this.codecsRegistry, this.domBroker, getDataBroker(), this.policies,
266                 ImmutableList.of(this.ipv4tt), pathTables);
267         ribImpl.instantiateServiceInstance();
268         ribImpl.onGlobalContextUpdated(this.schemaService.getGlobalContext());
269
270         final BGPPeer bgpPeer = new BGPPeer(this.tableRegistry, neighbor, ribImpl, PeerRole.Ibgp, null,
271                 AFI_SAFIS_ADVERTIZED, Collections.emptySet());
272         bgpPeer.instantiateServiceInstance();
273         final BGPSessionImpl bgpSession = new BGPSessionImpl(bgpPeer, this.speakerListener, this.classicOpen,
274                 this.classicOpen.getHoldTimer(), null);
275         bgpSession.setChannelExtMsgCoder(this.classicOpen);
276         bgpPeer.onSessionUp(bgpSession);
277
278         final Nlri n1 = new NlriBuilder().setPrefix(new Ipv4Prefix("8.0.1.0/28")).build();
279         final Nlri n2 = new NlriBuilder().setPrefix( new Ipv4Prefix("127.0.0.1/32")).build();
280         final Nlri n3 = new NlriBuilder().setPrefix( new Ipv4Prefix("2.2.2.2/24")).build();
281         final List<Nlri> nlris = Lists.newArrayList(n1, n2, n3);
282         final UpdateBuilder wrongMessage = new UpdateBuilder();
283         wrongMessage.setNlri(nlris);
284         final Origin origin = new OriginBuilder().setValue(BgpOrigin.Igp).build();
285         final AsPath asPath = new AsPathBuilder().setSegments(Collections.emptyList()).build();
286         final CNextHop nextHop = new Ipv4NextHopCaseBuilder().setIpv4NextHop(new Ipv4NextHopBuilder()
287                 .setGlobal(new Ipv4Address("127.0.0.1")).build()).build();
288         final AttributesBuilder ab = new AttributesBuilder();
289         wrongMessage.setAttributes(ab.setOrigin(origin).setAsPath(asPath).setCNextHop(nextHop).build());
290
291         final UpdateBuilder correct = new UpdateBuilder(wrongMessage.build());
292         correct.setAttributes(ab.setLocalPref(new LocalPrefBuilder().setPref((long) 100).build()).build());
293
294         bgpSession.handleMessage(correct.build());
295         verify(this.tx, times(2)).merge(eq(LogicalDatastoreType.OPERATIONAL),
296                 any(YangInstanceIdentifier.class), any(NormalizedNode.class));
297         bgpSession.handleMessage(new UpdateBuilder().build());
298         verify(this.tx, times(3)).merge(eq(LogicalDatastoreType.OPERATIONAL),
299                 any(YangInstanceIdentifier.class), any(NormalizedNode.class));
300
301         verify(this.tx).merge(eq(LogicalDatastoreType.OPERATIONAL), eq(TABLE_PATH),
302                 eq(ImmutableNodes.leafNode(ATTRIBUTES_UPTODATE_FALSE.getNodeType(), Boolean.TRUE)));
303         verify(this.tx, times(0)).delete(eq(LogicalDatastoreType.OPERATIONAL), eq(PEER_PATH));
304     }
305 }