]> git.puffer.fish Git - matthieu/frr.git/commit
ldpd: change the sorting algorithm of adjacencies
authorRenato Westphal <renato@opensourcerouting.org>
Sat, 18 Mar 2017 20:05:35 +0000 (17:05 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Tue, 21 Mar 2017 00:42:14 +0000 (21:42 -0300)
commitf2725627317af322faa926fb9098e0adb9c60ae4
tree88b66cdf67de552d40fa2643c1461d62dd9183c5
parent99cfc17f76c5a87ea51bd6a4682f37abae9aba25
ldpd: change the sorting algorithm of adjacencies

Now the "show mpls ldp discovery" command will display all LDP
adjancencies sorted by address family, neighbor ID and then type (link
or targeted).

Example:
vtysh# show mpls ldp discovery
AF   ID              Type     Source           Holdtime
ipv4 3.3.3.3         Link     rt2-eth1               15
ipv4 3.3.3.3         Link     rt2-eth2               15
ipv4 4.4.4.4         Link     rt2-eth1               15
ipv6 1.1.1.1         Link     rt2-eth0               15
ipv6 3.3.3.3         Link     rt2-eth1               15
ipv6 3.3.3.3         Link     rt2-eth2               15
ipv6 4.4.4.4         Link     rt2-eth1               15

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
ldpd/adjacency.c
ldpd/hello.c
ldpd/ldpe.h