1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-11 23:49:35 +00:00
gcloud-help/gcloud/alpha/edge-cloud/networking/routers/add-interface

126 lines
4.7 KiB
Text
Raw Normal View History

2022-04-13 08:33:42 +00:00
NAME
gcloud alpha edge-cloud networking routers add-interface - add an interface
to a Distributed Cloud Edge Network router
SYNOPSIS
gcloud alpha edge-cloud networking routers add-interface
(ROUTER : --location=LOCATION --zone=ZONE)
--interface-name=INTERFACE_NAME
2022-06-02 08:41:25 +00:00
(--loopback-ip-addresses=[LOOPBACK_IP_ADDRESSES,...]
| --subnetwork=SUBNETWORK
2022-04-13 08:33:42 +00:00
| --interconnect-attachment=INTERCONNECT_ATTACHMENT
--ip-address=IP_ADDRESS --ip-mask-length=IP_MASK_LENGTH) [--async]
[GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(ALPHA) Create an interface to a Distributed Cloud Edge Network router.
EXAMPLES
To create and add a northbound interface for Distributed Cloud Edge Network
router 'my-router' in edge zone 'us-central1-edge-den1' , run:
$ gcloud alpha edge-cloud networking routers add-interface \
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:
$ gcloud alpha edge-cloud networking routers add-interface \
my-router --interface-name=my-int-r2 --subnetwork=my-subnet \
--location=us-central1 --zone=us-central1-edge-den1
POSITIONAL ARGUMENTS
Router resource - The router to which we add an interface. The arguments
in this group can be used to specify the attributes of this resource.
(NOTE) Some attributes are not given arguments in this group but can be
2023-05-04 10:43:54 +00:00
set in other ways.
To set the project attribute:
2022-04-13 08:33:42 +00:00
◆ provide the argument router on the command line with a fully
specified name;
◆ provide the argument --project on the command line;
◆ set the property core/project.
This must be specified.
ROUTER
2023-05-04 10:43:54 +00:00
ID of the router or fully qualified identifier for the router.
To set the router attribute:
2022-04-13 08:33:42 +00:00
▸ provide the argument router on the command line.
2022-08-10 08:48:58 +00:00
This positional argument must be specified if any of the other
arguments in this group are specified.
2022-04-13 08:33:42 +00:00
--location=LOCATION
2023-05-04 10:43:54 +00:00
The Cloud location for the router.
To set the location attribute:
2022-04-13 08:33:42 +00:00
▸ provide the argument router on the command line with a fully
specified name;
▸ provide the argument --location on the command line.
--zone=ZONE
2023-05-04 10:43:54 +00:00
The zone of the router.
To set the zone attribute:
2022-04-13 08:33:42 +00:00
▸ provide the argument router on the command line with a fully
specified name;
▸ provide the argument --zone on the command line.
REQUIRED FLAGS
--interface-name=INTERFACE_NAME
The name of the interface being added.
The argument group for configuring the interface for the router.
Exactly one of these must be specified:
2022-06-02 08:41:25 +00:00
The argument group for adding loopback interfaces to edge router.
--loopback-ip-addresses=[LOOPBACK_IP_ADDRESSES,...]
The list of ip ranges for the loopback interface.
2022-04-27 09:13:09 +00:00
The argument group for adding southbound interfaces to edge router.
2022-04-13 08:33:42 +00:00
2022-04-27 09:13:09 +00:00
--subnetwork=SUBNETWORK
2023-03-24 11:31:22 +00:00
Subnetwork of the interface being added.
2022-04-27 09:13:09 +00:00
The argument group for adding northbound interfaces to edge router.
2022-04-13 08:33:42 +00:00
--interconnect-attachment=INTERCONNECT_ATTACHMENT
2023-03-24 11:31:22 +00:00
Interconnect attachment of the interface being added.
2022-04-13 08:33:42 +00:00
--ip-address=IP_ADDRESS
2023-03-24 11:31:22 +00:00
Link-local address of the router for this interface.
2022-04-13 08:33:42 +00:00
--ip-mask-length=IP_MASK_LENGTH
2023-03-24 11:31:22 +00:00
Subnet mask for the link-local IP range of the interface. The
2022-04-13 08:33:42 +00:00
interface IP address and BGP peer IP address must be selected from
the subnet defined by this link-local range.
OPTIONAL FLAGS
--async
Return immediately, without waiting for the operation in progress to
complete.
GCLOUD WIDE FLAGS
These flags are available to all commands: --access-token-file, --account,
--billing-project, --configuration, --flags-file, --flatten, --format,
--help, --impersonate-service-account, --log-http, --project, --quiet,
--trace-token, --user-output-enabled, --verbosity.
Run $ gcloud help for details.
NOTES
This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct
project, you might be trying to access an API with an invitation-only early
2023-02-15 10:13:15 +00:00
access allowlist. This variant is also available:
$ gcloud edge-cloud networking routers add-interface
2022-04-13 08:33:42 +00:00