@Test public void testBuildFirewallSessionTraceInfo_protocolWithoutSessions() { Flow flow = Flow.builder() .setIngressNode("node") .setIngressVrf("vrf") .setIpProtocol(IpProtocol.HOPOPT) .build(); assertNull( buildFirewallSessionTraceInfo( "", flow, flow, Accept.INSTANCE, new OriginatingSessionScope("vrf"))); }
@Nullable private FirewallSessionTraceInfo buildFirewallSessionTraceInfo( @Nonnull FirewallSessionInterfaceInfo firewallSessionInterfaceInfo) { SessionAction action = getSessionAction( firewallSessionInterfaceInfo.getFibLookup(), _ingressInterface, _lastHopNodeAndOutgoingInterface); return buildFirewallSessionTraceInfo( action, new IncomingSessionScope(firewallSessionInterfaceInfo.getSessionInterfaces())); }
FlowTracer { @Nullable private FirewallSessionTraceInfo buildFirewallSessionTraceInfo( @Nonnull FirewallSessionInterfaceInfo firewallSessionInterfaceInfo) { SessionAction action = getSessionAction( firewallSessionInterfaceInfo.getFibLookup(), _ingressInterface, _lastHopNodeAndOutgoingInterface); return buildFirewallSessionTraceInfo( action, new IncomingSessionScope(firewallSessionInterfaceInfo.getSessionInterfaces())); } }
FlowTracer { @Nullable private FirewallSessionTraceInfo buildFirewallSessionTraceInfo( @Nonnull FirewallSessionInterfaceInfo firewallSessionInterfaceInfo) { SessionAction action = getSessionAction( firewallSessionInterfaceInfo.getFibLookup(), _ingressInterface, _lastHopNodeAndOutgoingInterface); return buildFirewallSessionTraceInfo( action, new IncomingSessionScope(firewallSessionInterfaceInfo.getSessionInterfaces())); } @VisibleForTesting  FlowTracer(
      TracerouteEngineImplContext tracerouteContext,
      Configuration currentConfig,
      @Nullable String ingressInterface,
      Node currentNode,
      TraceRecorder traceRecorder,
      @Nullable NodeInterfacePair lastHopNodeAndOutgoingInterface,
      List<FirewallSessionTraceInfo> newSessions,
      Flow originalFlow,
      @Nonnull String vrfName,
      List<HopInfo> hops,
      List<Step<?>> steps,
      Stack<Breadcrumb> breadcrumbs,
      Flow currentFlow,
      int origNewSessionsSize,
      int origBreadcrumbsSize); }
FlowTracer { @Nullable private FirewallSessionTraceInfo buildFirewallSessionTraceInfo( @Nonnull FirewallSessionInterfaceInfo firewallSessionInterfaceInfo) { SessionAction action = getSessionAction( firewallSessionInterfaceInfo.getFibLookup(), _ingressInterface, _lastHopNodeAndOutgoingInterface); return buildFirewallSessionTraceInfo( action, new IncomingSessionScope(firewallSessionInterfaceInfo.getSessionInterfaces())); } @VisibleForTesting  FlowTracer(
      TracerouteEngineImplContext tracerouteContext,
      Configuration currentConfig,
      @Nullable String ingressInterface,
      Node currentNode,
      TraceRecorder traceRecorder,
      @Nullable NodeInterfacePair lastHopNodeAndOutgoingInterface,
      List<FirewallSessionTraceInfo> newSessions,
      Flow originalFlow,
      @Nonnull String vrfName,
      List<HopInfo> hops,
      List<Step<?>> steps,
      Stack<Breadcrumb> breadcrumbs,
      Flow currentFlow,
      int origNewSessionsSize,
      int origBreadcrumbsSize);  }
FlowTracer { @Nullable private FirewallSessionTraceInfo buildFirewallSessionTraceInfo( @Nonnull FirewallSessionInterfaceInfo firewallSessionInterfaceInfo) { SessionAction action = getSessionAction( firewallSessionInterfaceInfo.getFibLookup(), _ingressInterface, _lastHopNodeAndOutgoingInterface); return buildFirewallSessionTraceInfo( action, new IncomingSessionScope(firewallSessionInterfaceInfo.getSessionInterfaces())); } @VisibleForTesting  FlowTracer(
      TracerouteEngineImplContext tracerouteContext,
      Configuration currentConfig,
      @Nullable String ingressInterface,
      Node currentNode,
      TraceRecorder traceRecorder,
      @Nullable NodeInterfacePair lastHopNodeAndOutgoingInterface,
      List<FirewallSessionTraceInfo> newSessions,
      Flow originalFlow,
      @Nonnull String vrfName,
      List<HopInfo> hops,
      List<Step<?>> steps,
      Stack<Breadcrumb> breadcrumbs,
      Flow currentFlow,
      int origNewSessionsSize,
      int origBreadcrumbsSize);   }