
                            S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSK	J
r
  SSKJr  SS	KJr  S
rSr\R$                  " \R&                  R(                  \R&                  R*                  5       " S S\R,                  5      5       rg)zGCommand to add an interface to a Distributed Cloud Edge Network router.    )absolute_import)division)unicode_literals)routers)base)resource_args)flags)logz?Create an interface to a Distributed Cloud Edge Network router.at      To create and add a northbound interface for Distributed Cloud Edge Network router 'my-router' in edge zone 'us-central1-edge-den1' , run:

        $ {command} my-router --interface-name=my-int-r1 --interconnect-attachment=my-link-attachment --ip-address=208.117.254.233 --ip-mask-length=31 --location=us-central1 --zone=us-central1-edge-den1

    To create and add a southbound interface for Distributed Cloud Edge Network router 'my-router' in edge zone 'us-central1-edge-den1', run:

         $ {command} my-router --interface-name=my-int-r2 --subnetwork=my-subnet --location=us-central1 --zone=us-central1-edge-den1

   c                   8    \ rS rSrSr\\S.r\S 5       r	S r
Srg)AddInterface(   zAdd an interface to a Distributed Cloud Edge Network router.

*{command}* is used to add an interface to a Distributed Cloud Edge Network
router.
)DESCRIPTIONEXAMPLESc                     [         R                  " USS5        [        R                  " U5        [        R
                  R                  U5        g )Nzto which we add an interfaceT)r   AddRouterResourceArgrouters_flagsAddInterfaceArgsr   
ASYNC_FLAGAddToParser)clsparsers     :lib/surface/edge_cloud/networking/routers/add_interface.pyArgsAddInterface.Args2   s:    &&. ""6*OO'    c                    [         R                  " U R                  5       5      nUR                  R                  R                  5       nUR                  X15      n[        USS5      nU(       d6  UR                  U5      n[        R                  " UR                  5       SS9  U$ [        R                  R                  SR                  UR                  5       UR                  5      5        g )Nasync_FzOperation was successful.)detailsz$Updating [{0}] with operation [{1}].)r   RoutersClientReleaseTrackCONCEPTSrouterParser   getattrWaitForOperationr
   UpdatedResourceRelativeNamestatusPrintformatname)selfargsrouters_client
router_refupdate_req_opr   responses          r   RunAddInterface.Run:   s    **4+<+<+>?N%%++-J"//
AMT8U+F00?h	

!
!
#-H oJJ.55##%}'9'9	
r    N)__name__
__module____qualname____firstlineno____doc__r   r   detailed_helpclassmethodr   r2   __static_attributes__r4   r   r   r   r   (   s*     #.8D-( (r   r   N)r9   
__future__r   r   r   4googlecloudsdk.api_lib.edge_cloud.networking.routersr   googlecloudsdk.callioper   0googlecloudsdk.command_lib.edge_cloud.networkingr   8googlecloudsdk.command_lib.edge_cloud.networking.routersr	   r   googlecloudsdk.corer
   r   r   ReleaseTracksr    ALPHAGAUpdateCommandr   r4   r   r   <module>rG      sv    N &  ' H ( J [ #O	 D%%++T->->-A-AB"4%% " C"r   