What this diff addresses
This diff addresses Issue #261. I have added support to enumerate addresses for all child interfaces. I have also adjusted the unit tests to test that this works as expected.
The list of addresses would be a list of its own addresses, appended by all addresses of each child interface.
In [1]: circuits = Circuit.objects.all()
In [2]: circuits
Out[2]: <ResourceSetTheoryQuerySet [<Circuit: foo1-bb01:ae0_foo1-bb02:ae0>, <Circuit: foo1-bb01:ae0.0_foo1-bb02:ae0.0>]>
In [3]: circuit_of_parent_ifaces = circuits[0]
In [4]: circuit_of_parent_ifaces.addresses
Out[4]:
[<Network: 185.45.21.10/32>,
<Network: 185.45.21.8/32>,
<Network: 185.45.21.6/32>,
<Network: 185.45.21.7/32>,
<Network: 185.45.21.5/32>]
Note that the first two are addresses are associated with the circuit's a side interface, the third is the address associated with child interface on the a side, and the last two with the child interface on the z side.
What this diff addresses This diff addresses Issue #261. I have added support to enumerate addresses for all child interfaces. I have also adjusted the unit tests to test that this works as expected.
See it in action For the following interfaces:
The list of addresses would be a list of its own addresses, appended by all addresses of each child interface.
Note that the first two are addresses are associated with the circuit's a side interface, the third is the address associated with child interface on the a side, and the last two with the child interface on the z side.
TESTING