
    >Tfc                     z   d dl mZ d dlmZmZ d dlT d dlmZ d dl	m
Z
 d dlmZ d dlmZ d dlmZmZmZmZ d d	lmZmZ d d
lmZmZ dZ G d de          Z G d de          Z G d de          Z G d de          Z G d dee          Z G d de          Z  G d dee          Z! G d de          Z"dS )    )gettext_lazy)CircuitCommitRateChoices"CircuitTerminationPortSpeedChoices)*)Site)ASN)NetBoxModelForm)TenancyForm)CommentFieldDynamicModelChoiceFieldDynamicModelMultipleChoiceField	SlugField)FieldSetTabbedGroups)
DatePickerNumberWithOptions)CircuitFormCircuitGroupAssignmentFormCircuitGroupFormCircuitTerminationFormCircuitTypeFormProviderFormProviderAccountFormProviderNetworkFormc                       e Zd Z e            Z eej                                         e	d          d          Z
 e            Z eddddd          fZ G d	 d
          ZdS )r   ASNsF)querysetlabelrequirednameslugasnsdescriptiontagsc                       e Zd ZeZg dZdS )ProviderForm.Meta)r    r!   r"   r#   commentsr$   N)__name__
__module____qualname__Providermodelfields     ?/var/www/html/netbox-4.1.3/netbox/circuits/forms/model_forms.pyMetar&   &   s$        
 
 
r/   r1   N)r(   r)   r*   r   r!   r   r   objectsall_r"   r   r'   r   	fieldsetsr1   r.   r/   r0   r   r      s        9;;D**""aii  D
 |~~H 	??I
 
 
 
 
 
 
 
 
 
r/   r   c                       e Zd Z e ed          ej                                                  Z e	            Z
 G d d          ZdS )r   r+   r   r   c                       e Zd ZeZg dZdS )ProviderAccountForm.Meta)providerr    accountr#   r'   r$   N)r(   r)   r*   ProviderAccountr,   r-   r.   r/   r0   r1   r9   4   $        
 
 
r/   r1   N)r(   r)   r*   r   r4   r+   r2   r3   r:   r   r'   r1   r.   r/   r0   r   r   -   s}        &&a
mm!%%''  H |~~H
 
 
 
 
 
 
 
 
 
r/   r   c                       e Zd Z e ed          ej                                                  Z e	            Z
 eddddd          fZ G d d	          Zd
S )r   r+   r7   r:   r    
service_idr#   r$   c                       e Zd ZeZg dZdS )ProviderNetworkForm.Meta)r:   r    r?   r#   r'   r$   N)r(   r)   r*   ProviderNetworkr,   r-   r.   r/   r0   r1   rA   F   r=   r/   r1   N)r(   r)   r*   r   r4   r+   r2   r3   r:   r   r'   r   r5   r1   r.   r/   r0   r   r   ;   s        &&a
mm!%%''  H |~~H 	V\=&III
 
 
 
 
 
 
 
 
 
r/   r   c                   \    e Zd Z e            Z eddddd          fZ G d d          ZdS )	r   r    r!   colorr#   r$   c                       e Zd ZeZg dZdS )CircuitTypeForm.Meta)r    r!   rD   r#   r$   N)r(   r)   r*   CircuitTyper,   r-   r.   r/   r0   r1   rF   T   s$        
 
 
r/   r1   N)r(   r)   r*   r   r!   r   r5   r1   r.   r/   r0   r   r   M   se        9;;D 	-@@I
 
 
 
 
 
 
 
 
 
r/   r   c                      e Zd Z e ed          ej                                        d          Z e ed          e	j                                        dddi          Z
 eej                                        	          Z e            Z ed
dddddd ed                     eddd ed                     edd ed                    fZ G d d          ZdS )r   r+   Tr   r   selectorzProvider accountFprovider_idz	$provider)r   r   r   query_params)r   r:   provider_accountcidtypestatusr#   r$   Circuitr    install_datetermination_datecommit_ratezService Parameterstenant_grouptenantTenancyc                   Z    e Zd ZeZg dZ e             e             ee          dZ	dS )CircuitForm.Meta)rN   rO   r:   rM   rP   rS   rT   rU   r#   rV   rW   r'   r$   options)rS   rT   rU   N)
r(   r)   r*   rQ   r,   r-   r   r   r   widgetsr.   r/   r0   r1   rZ   t   s\        
 
 

 'JLL *
,,0  
 
r/   r1   N)r(   r)   r*   r   r4   r+   r2   r3   r:   r<   rM   rG   rO   r   r'   r   r5   r1   r.   r/   r0   r   r   [   sf       &&a
mm!%%''  H
 /.a"## (,,..;
	   #"$((**  D |~~H 	/-Y_fgfghqfrfrsss!3]K_I`I`aaa)===I
 
 
 
 
 
 
 
 
 
r/   r   c                      e Zd Z e ed          ej                                        d          Z e ed          e	j                                        dd          Z
 e ed          ej                                        dd          Z edd	d
d e ed ed                     ed ed                              d ed                     edddd ed                    fZ G d d          ZdS )r   rQ   TrI   r   F)r   r   r   rJ   zProvider networkcircuit	term_sider#   r$   siterR   provider_networkzProvider Networkmark_connectedzCircuit Termination
port_speedupstream_speedxconnect_idpp_infozTermination Detailsc                   L    e Zd ZeZg dZ ee           ee          dZdS )CircuitTerminationForm.Meta)r_   r`   ra   rb   rc   rd   re   rf   rg   r#   r$   r[   )rd   re   N)	r(   r)   r*   CircuitTerminationr,   r-   r   r   r]   r.   r/   r0   r1   ri      sd        "
 
 

 ,+:   0/:  	
 
r/   r1   N)r(   r)   r*   r   r4   rQ   r2   r3   r_   r   ra   rB   rb   r   r   r5   r1   r.   r/   r0   r   r      s       %%a	ll$$&&  G
 #"aii!!##	  D /.a"## (,,..	   	{M6Laaii000+!!4F2G2GHHH  11%:#;#;	
 	
 	
 	/	PQPQRgPhPhiii
I
 
 
 
 
 
 
 
 
 
r/   r   c            	           e Zd Z e            Z edddd ed                     edd ed	                    fZ G d
 d          ZdS )r   r    r!   r#   r$   zCircuit GrouprR   rV   rW   rX   c                       e Zd ZeZg dZdS )CircuitGroupForm.Meta)r    r!   r#   rV   rW   r$   N)r(   r)   r*   CircuitGroupr,   r-   r.   r/   r0   r1   rm      s$        
 
 
r/   r1   N)	r(   r)   r*   r   r!   r   r4   r5   r1   r.   r/   r0   r   r      s        9;;D 	QQ=O=OPPP)===I

 
 
 
 
 
 
 
 
 
r/   r   c                       e Zd Z e ed          ej                                                  Z e ed          e	j                                        d          Z
 G d d          ZdS )	r   Groupr7   rQ   TrI   c                       e Zd ZeZg dZdS )CircuitGroupAssignmentForm.Meta)groupr_   priorityr$   N)r(   r)   r*   CircuitGroupAssignmentr,   r-   r.   r/   r0   r1   rr      s$        &
 
 
r/   r1   N)r(   r)   r*   r   r4   rn   r2   r3   rs   rQ   r_   r1   r.   r/   r0   r   r      s        ##ajj%))++  E &%a	ll$$&&  G
 
 
 
 
 
 
 
 
 
r/   r   N)#django.utils.translationr   r4   circuits.choicesr   r   circuits.modelsdcim.modelsr   ipam.modelsr   netbox.formsr	   tenancy.formsr
   utilities.forms.fieldsr   r   r   r   utilities.forms.renderingr   r   utilities.forms.widgetsr   r   __all__r   r   r   r   r   r   r   r   r.   r/   r0   <module>r      s>   6 6 6 6 6 6 Y Y Y Y Y Y Y Y                 ( ( ( ( ( ( % % % % % % t t t t t t t t t t t t < < < < < < < < A A A A A A A A	
 
 
 
 
? 
 
 
(
 
 
 
 
/ 
 
 

 
 
 
 
/ 
 
 
$
 
 
 
 
o 
 
 
%
 %
 %
 %
 %
+ %
 %
 %
P,
 ,
 ,
 ,
 ,
_ ,
 ,
 ,
^
 
 
 
 
{O 
 
 

 
 
 
 
 
 
 
 
 
r/   