Skip to content
Snippets Groups Projects
Commit 3ffc83ff authored by skorpy's avatar skorpy :construction_worker:
Browse files

Update peering.py

parent 195fe6c6
No related branches found
No related tags found
1 merge request!580Update peering.py
Pipeline #32710 passed
......@@ -4,7 +4,7 @@ import logging
def all_peerings(proto):
tmp = []
selfBGP = __salt__['pillar.get']('peerings:ibgp:self:{}'.format(proto), [])
for name, peer in __salt__['pillar.get']('peerings').items():
for name, peer in sorted(__salt__['pillar.get']('peerings').items()):
peerproto = __salt__['pillar.get'](
'peerings:{0}:{1}'.format(name, proto), [])
if not peerproto:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment