SHARP¶
SHARP is a daemon that provides miscellaneous functionality used for testing FRR and creating proof-of-concept labs.
Starting SHARP¶
Default configuration file for sharpd is sharpd.conf
. The typical
location of sharpd.conf
is /etc/frr/sharpd.conf.
If the user is using integrated config, then sharpd.conf
need not be
present and the frr.conf
is read instead.
SHARP supports all the common FRR daemon start options which are documented elsewhere.
Using SHARP¶
All sharp commands are under the enable node and preceeded by the sharp
keyword. At present, no sharp commands will be preserved in the config.
-
sharp install routes A.B.C.D nexthop <E.F.G.H|X:X::X:X> (1-1000000)
¶ Install up to 1,000,000 (one million) /32 routes starting at
A.B.C.D
with specified nexthopE.F.G.H
orX:X::X:X
. The nexthop is aNEXTHOP_TYPE_IPV4
orNEXTHOP_TYPE_IPV6
and must be reachable to be installed into the kernel. The routes are installed into zebra asZEBRA_ROUTE_SHARP
and can be used as part of a normal route redistribution. Route installation time is noted in the debug log. When zebra successfully installs a route into the kernel and SHARP receives success notifications for all routes this is logged as well.
-
sharp remove routes A.B.C.D (1-1000000)
¶ Remove up to 1,000,000 (one million) /32 routes starting at
A.B.C.D
. The routes are removed from zebra. Route deletion start is noted in the debug log and when all routes have been successfully deleted the debug log will be updated with this information as well.
-
sharp label <ipv4|ipv6> vrf NAME label (0-1000000)
¶ Install a label into the kernel that causes the specified vrf NAME table to be used for pop and forward operations when the specified label is seen.
-
sharp watch nexthop <A.B.C.D|X:X::X:X>
¶ Instruct zebra to monitor and notify sharp when the specified nexthop is changed. The notification from zebra is written into the debug log.