Diameter Peer Reporting

The print_diameter_peers.py script reports current peer connections in detail. It includes information about the mapping of destinations to connections.

The print_diameter_peers.py generates output similar to the following.
External Peers: 
    host                       : ThePreferred.abc
    realm                      : abc
    TRA host                   : 
    TRA realm                  : 
    end to end id              : 5
    hop by hop id              : 6
    outgoing origin host       : myhost
    outgoing origin realm      : matrixxsw.com
    routing id                 : diam:external:client:(bladeId=1, ioModuleId=1, id=0)
    routing id raw             : 0x10010000
    external routing id        : socket:(ioModuleId=0, socket fd=0)
    external routing id raw    : 0x0
    fd                         : 25
    state                      : 0
    is internal                : N
    pending close              : N
    capabilities exchange state: 3
    device watchdog state      : 0
    internal index             : 0
    relayed peers (host, realm): AnotherHost1, AnotherRealm1
                                 AnotherHost2, AnotherRealm2
                                 AnotherHost3, AnotherRealm3
                                 AnotherHost4, AnotherRealm4
                                 TestHost, GXRealm
    ---------------------------
    host                       : ThePreferred.abc
    realm                      : abc
    TRA host                   : 
    TRA realm                  : 
    end to end id              : 1
    hop by hop id              : 2
    outgoing origin host       : myhost
    outgoing origin realm      : matrixxsw.com
    routing id                 : diam:external:client:(bladeId=1, ioModuleId=1, id=1)
    routing id raw             : 0x10010001
    external routing id        : socket:(ioModuleId=0, socket fd=0)
    external routing id raw    : 0x0
    fd                         : 28
    state                      : 0
    is internal                : N
    pending close              : N
    capabilities exchange state: 3
    device watchdog state      : 0
    internal index             : 1
    relayed peers (host, realm): TestHost, GYRealm
    ---------------------------
    host                       : ThePreferred.abc
    realm                      : abc
    TRA host                   : 
    TRA realm                  : 
    end to end id              : 1
    hop by hop id              : 2
    outgoing origin host       : myhost
    outgoing origin realm      : matrixxsw.com
    routing id                 : diam:external:client:(bladeId=1, ioModuleId=1, id=2)
    routing id raw             : 0x10010002
    external routing id        : socket:(ioModuleId=0, socket fd=0)
    external routing id raw    : 0x0
    fd                         : 29
    state                      : 0
    is internal                : N
    pending close              : N
    capabilities exchange state: 3
    device watchdog state      : 0
    internal index             : 2
    relayed peers (host, realm): TestHost, GZRealm
    ---------------------------
Internal Peers:
    None