Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Network' object has no attribute 'get_missing_peering_sessions' #842

Closed
virtual-technologies opened this issue May 11, 2024 · 0 comments
Closed
Assignees

Comments

@virtual-technologies
Copy link

Peering Manager version

v1.8.3

Python version

3.10

Steps to Reproduce

{%- for ixp in autonomous_systems.1 | shared_ixps(autonomous_systems.0) %}
{% set sessions = autonomous_systems.1 | missing_sessions(autonomous_systems.0) %}
{%- if sessions | count > 0 %}

  • IX Name: {{ ixp.name }}
    AS{{ autonomous_systems.0.asn }} details:
    IPv6: {{ ixp | local_ips(6) | join(", ") }}
    IPv4: {{ ixp | local_ips(4) | join(", ") }}
    AS{{ autonomous_systems.1.asn }} details:
    {%- for s in sessions %}
    • {{ s.ipaddr4 }}
    • {{ s.ipaddr6 }}
      {%- endfor %}
      {%- endif %}
      {%- endfor %}

Expected Behavior

Should return the list of missing sessions

Observed Behavior

Traceback (most recent call last):
File "/opt/peering-manager/peering_manager/jinja2/init.py", line 30, in render_jinja2
return jinja2_template.render(**context)
File "/opt/peering-manager/venv/lib/python3.8/site-packages/jinja2/environment.py", line 1304, in render
self.environment.handle_exception()
File "/opt/peering-manager/venv/lib/python3.8/site-packages/jinja2/environment.py", line 939, in handle_exception
raise rewrite_traceback_stack(source=source)
File "", line 9, in top-level template code
File "/opt/peering-manager/peering_manager/jinja2/filters.py", line 650, in missing_sessions
return value.get_missing_peering_sessions(other, internet_exchange_point=ixp)
AttributeError: 'Network' object has no attribute 'get_missing_peering_sessions'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants