1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #6894: Fix available IP generation for prefix assigned to a VRF

This commit is contained in:
jeremystretch
2021-08-05 13:23:14 -04:00
parent 79f726e6cd
commit 42b961229f
4 changed files with 20 additions and 14 deletions

View File

@@ -331,7 +331,7 @@ class AvailableIPSerializer(serializers.Serializer):
return OrderedDict([
('family', self.context['parent'].family),
('address', f"{instance}/{self.context['parent'].mask_length}"),
('vrf', self.context['parent'].vrf),
('vrf', vrf),
])