Beispiel #1
0
 def Args(cls, parser):
     parser.display_info.AddFormat(flags.DEFAULT_LIST_FORMAT)
     cls.NETWORK_ARG = network_flags.NetworkArgumentForOtherResource(
         'The network for this router')
     cls.NETWORK_ARG.AddArgument(parser)
     cls.ROUTER_ARG = flags.RouterArgument()
     cls.ROUTER_ARG.AddArgument(parser, operation_type='create')
     flags.AddCreateRouterArgs(parser)
Beispiel #2
0
    def Args(cls, parser):
        """See base.CreateCommand."""

        parser.display_info.AddFormat(flags.DEFAULT_LIST_FORMAT)
        cls.NETWORK_ARG = network_flags.NetworkArgumentForOtherResource(
            'The network for this router')
        cls.NETWORK_ARG.AddArgument(parser)
        cls.ROUTER_ARG = flags.RouterArgument()
        cls.ROUTER_ARG.AddArgument(parser, operation_type='create')
        base.ASYNC_FLAG.AddToParser(parser)
        flags.AddCreateRouterArgs(parser)
        flags.AddReplaceCustomAdvertisementArgs(parser, 'router')
Beispiel #3
0
 def _Args(cls, parser, support_keepalive_interval=False):
   parser.display_info.AddFormat(flags.DEFAULT_LIST_FORMAT)
   cls.NETWORK_ARG = network_flags.NetworkArgumentForOtherResource(
       'The network for this router')
   cls.NETWORK_ARG.AddArgument(parser)
   cls.ROUTER_ARG = flags.RouterArgument()
   cls.ROUTER_ARG.AddArgument(parser, operation_type='create')
   base.ASYNC_FLAG.AddToParser(parser)
   flags.AddCreateRouterArgs(parser)
   if support_keepalive_interval:
     flags.AddKeepaliveIntervalArg(parser)
   flags.AddReplaceCustomAdvertisementArgs(parser, 'router')
   parser.display_info.AddCacheUpdater(flags.RoutersCompleter)