[solved] How to enlarge the default number of Rows (Routes) displayed ?
-
Is there any chance, that we can change the default of the number of routes displayed to all?
Or to something higher than 100? Any patch or number deep in the configuration?
It´s really tedious to change it every time to something higher ...Maybe with a global setting ?
Again in FRR OSPF Routes :
-
For users with large route tables (e.g. full BGP feeds with hundreds of thousands of routes) having the default be 'all' breaks the page. We could maybe add a GUI knob to control that but it's really a safety measure to stop the page from consuming too much resources.
What's the use case for always needing to see all the routes on the same page without filtering? If you're looking for something specific, using the filter is much faster than eyeballing it.
-
I have a routing table with about 250 entries. The top 140 lines are mostly OVPN tunnel IPs starting at 10.1.X.X. So i don´t see the remote networks without enlarging the table row number. Looking for some errors as today, where i dont know what is wrong with the table, needs to expand it every time manually to full. With an adjustable default, or bigger default, it will be much faster to work.
Everytime inserting an IPv4 regex like this : '\b((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(.|$)){4}\b' is not really a choice, additional as an IPv6 regex isn´t really flowing out of my fingers that easy:IPv6 Regex Sample: (([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))
Is there is a chance to adjust the default number of Rows displayed manually to lets say 400 entries, maybe just a manual hack into the code?
-
If you just want to increase the limit for you, then edit this line:
https://github.com/pfsense/pfsense/blob/master/src/usr/local/www/diag_routes.php#L32
-
@jimp said in How to enlarge the default number of Rows (Routes) displayed ?:
https://github.com/pfsense/pfsense/blob/master/src/usr/local/www/diag_routes.php#L32
Works like a charm, thank you!