# NetConfig — fixture site `ancout` (mid-chain relay).
#
# Receives the epic ADT feed on IB_ADT_muxS, routes intra-site to a local
# delivery thread, and ALSO re-hops cross-site into codamx — so the walker
# exercises a >2-site chain. Cross-site destination block is `XS_anc_to_codamx`
# (XS_ prefix, no protocol shares it).
#
# Chain (downstream from IB_ADT_muxS):
#   IB_ADT_muxS --> OB_ADT_deliver        (intra, local delivery leaf)
#   IB_ADT_muxS --> RLY_ADT_codamx ==> codamx/IB_ADT_cmx   (cross via XS_anc_to_codamx)

process recv_anc {
}
process route_anc {
}

protocol IB_ADT_muxS {
  { PROCESSNAME recv_anc }
  { PROTOCOL {
      { TYPE tcpip }
      { ISSERVER 1 }
      { PORT 62043 }
  } }
  { DATAXLATE {
      { ROUTE {
          { ROUTE_DETAILS {
              { DEST OB_ADT_deliver }
          } }
          { ROUTE_DETAILS {
              { DEST RLY_ADT_codamx }
          } }
      } }
  } }
}

protocol OB_ADT_deliver {
  { PROCESSNAME route_anc }
  { PROTOCOL {
      { TYPE tcpip }
      { ISSERVER 0 }
      { PORT 9100 }
  } }
}

protocol RLY_ADT_codamx {
  { PROCESSNAME route_anc }
  { PROTOCOL {
      { TYPE tcpip }
      { ISSERVER 0 }
      { PORT 62044 }
  } }
  { DATAXLATE {
      { ROUTE {
          { ROUTE_DETAILS {
              { DEST XS_anc_to_codamx }
          } }
      } }
  } }
}

destination XS_anc_to_codamx {
  { SITE codamx }
  { THREAD IB_ADT_cmx }
  { PORT 62044 }
}
