Skip to content

Commit

Permalink
[IM] Also ensure deterministic ordering of acls for route server configs
Browse files Browse the repository at this point in the history
  • Loading branch information
barryo committed Dec 15, 2014
1 parent 1183685 commit 9cec6bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion application/Repositories/IrrdbAsn.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ public function getForCustomerAndProtocol( $cust, $protocol )
{
return $this->getEntityManager()->createQuery(
"SELECT p.asn FROM \\Entities\\IrrdbAsn p
WHERE p.Customer = :cust AND p.protocol = :protocol"
WHERE p.Customer = :cust AND p.protocol = :protocol
ORDER BY p.asn ASC, p.id ASC"
)
->setParameter( 'cust', $cust )
->setParameter( 'protocol', $protocol )
Expand Down
5 changes: 3 additions & 2 deletions application/Repositories/IrrdbPrefix.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ public function getForCustomerAndProtocol( $cust, $protocol )
{
return $this->getEntityManager()->createQuery(
"SELECT p.prefix FROM \\Entities\\IrrdbPrefix p
WHERE p.Customer = :cust AND p.protocol = :protocol"
WHERE p.Customer = :cust AND p.protocol = :protocol
ORDER BY p.prefix ASC, p.id ASC"
)
->setParameter( 'cust', $cust )
->setParameter( 'protocol', $protocol )
->getScalarResult();
}

/**
* Utility function to get the number of prefixes a customer has for a given protocol
*
Expand Down

0 comments on commit 9cec6bd

Please sign in to comment.