mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fixed PeeringDB module (#9158)
DO NOT DELETE THIS TEXT #### Please note > Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting. - [X] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/) #### Testers If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926` Fixed "Show connected IXes" that I broke in my past PR (Sorry for that) Changed remote_as in pdb_ix_peers from varchar to unsigned int for correct ordering. Also I've corrected a typo in the "Show connected IXes" button
This commit is contained in:
committed by
Neil Lathwood
parent
4d9924242f
commit
4bb9ac7797
@@ -38,7 +38,7 @@ foreach (dbFetchRows($sql) as $asn) {
|
||||
$response[] = array(
|
||||
'bgpLocalAs' => $asn['bgpLocalAs'],
|
||||
'asname' => $astext,
|
||||
'action' => "<a class='btn btn-sm btn-primary' href='" . generate_url(array('page' => 'peering', 'section' => 'ix-list', 'bgpLocalAs' => $asn['bgpLocalAs'])) . "' role='button'>Show connectd IXes</a>",
|
||||
'action' => "<a class='btn btn-sm btn-primary' href='" . generate_url(array('page' => 'peering', 'section' => 'ix-list', 'bgpLocalAs' => $asn['bgpLocalAs'])) . "' role='button'>Show connected IXes</a>",
|
||||
);
|
||||
}
|
||||
|
||||
|
@@ -22,7 +22,7 @@
|
||||
* @author Neil Lathwood <neil@lathwood.co.uk>
|
||||
*/
|
||||
|
||||
$asn = $vars['asn'];
|
||||
$asn = $vars['bgpLocalAs'];
|
||||
|
||||
?>
|
||||
<div class="row">
|
||||
|
@@ -1054,7 +1054,7 @@ pdb_ix_peers:
|
||||
- { Field: pdb_ix_peers_id, Type: 'int(10) unsigned', 'Null': false, Extra: auto_increment }
|
||||
- { Field: ix_id, Type: 'int(10) unsigned', 'Null': false, Extra: '' }
|
||||
- { Field: peer_id, Type: 'int(10) unsigned', 'Null': false, Extra: '' }
|
||||
- { Field: remote_asn, Type: varchar(16), 'Null': false, Extra: '' }
|
||||
- { Field: remote_asn, Type: 'int(10) unsigned', 'Null': false, Extra: '' }
|
||||
- { Field: remote_ipaddr4, Type: varchar(15), 'Null': true, Extra: '' }
|
||||
- { Field: remote_ipaddr6, Type: varchar(128), 'Null': true, Extra: '' }
|
||||
- { Field: name, Type: varchar(255), 'Null': true, Extra: '' }
|
||||
|
1
sql-schema/264.sql
Normal file
1
sql-schema/264.sql
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TABLE `pdb_ix_peers` CHANGE `remote_asn` `remote_asn` INT UNSIGNED NOT NULL;
|
Reference in New Issue
Block a user