File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 1+ Fixed PeerEndpoint validation to allow all interfaces (including Virtual Chassis)
Original file line number Diff line number Diff line change @@ -571,7 +571,9 @@ def clean(self):
571571
572572 # Ensure IP related to the routing instance
573573 if self .routing_instance :
574- if local_ip_value not in IPAddress .objects .filter (interfaces__device_id = self .routing_instance .device .id ):
574+ if local_ip_value not in IPAddress .objects .filter (
575+ interfaces__in = self .routing_instance .device .vc_interfaces
576+ ):
575577 raise ValidationError ("Peer IP not associated with Routing Instance" )
576578 # Enforce Routing Instance if local IP belongs to the Device
577579 elif not self .routing_instance and IPAddressToInterface .objects .filter (ip_address = local_ip_value ).exists ():
You can’t perform that action at this time.
0 commit comments