Skip to content

Commit a84cbcd

Browse files
TUN-5669: Change network command to vnet
1 parent 1a92f1a commit a84cbcd

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

cfapi/ip_route_filter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ var (
3636
Usage: "Show only routes with this comment.",
3737
}
3838
filterIpRouteByVnet = cli.StringFlag{
39-
Name: "filter-virtual-network-id",
39+
Name: "filter-vnet-id",
4040
Usage: "Show only routes that are attached to the given virtual network ID.",
4141
}
4242

cmd/cloudflared/tunnel/teamnet_subcommands.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717

1818
var (
1919
vnetFlag = &cli.StringFlag{
20-
Name: "virtual-network",
20+
Name: "vnet",
2121
Aliases: []string{"vn"},
2222
Usage: "The ID or name of the virtual network to which the route is associated to.",
2323
}
@@ -35,7 +35,7 @@ determine who can reach certain routes.
3535
By default IP routes all exist within a single virtual network. If you use the same IP
3636
space(s) in different physical private networks, all meant to be reachable via IP routes,
3737
then you have to manage the ambiguous IP routes by associating them to virtual networks.
38-
See "cloudflared tunnel network --help" for more information.`,
38+
See "cloudflared tunnel vnet --help" for more information.`,
3939
Subcommands: []*cli.Command{
4040
{
4141
Name: "add",
@@ -50,9 +50,9 @@ the specified Tunnel, and reach an IP in the given CIDR, as long as that IP is
5050
reachable from cloudflared.
5151
If the CIDR exists in more than one private network, to be connected with Cloudflare
5252
Tunnels, then you have to manage those IP routes with virtual networks (see
53-
"cloudflared tunnel network --help)". In those cases, you then have to tell
53+
"cloudflared tunnel vnet --help)". In those cases, you then have to tell
5454
which virtual network's routing table you want to add the route to with:
55-
"cloudflared tunnel route ip add --virtual-network [ID/name] [CIDR] [TUNNEL]".`,
55+
"cloudflared tunnel route ip add --vnet [ID/name] [CIDR] [TUNNEL]".`,
5656
Flags: []cli.Flag{vnetFlag},
5757
},
5858
{

cmd/cloudflared/tunnel/vnets_subcommands.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ var (
3737

3838
func buildVirtualNetworkSubcommand(hidden bool) *cli.Command {
3939
return &cli.Command{
40-
Name: "network",
40+
Name: "vnet",
4141
Usage: "Configure and query virtual networks to manage private IP routes with overlapping IPs.",
4242
UsageText: "cloudflared tunnel [--config FILEPATH] network COMMAND [arguments...]",
4343
Description: `cloudflared allows to manage IP routes that expose origins in your private network space via their IP directly
@@ -177,7 +177,7 @@ func listVirtualNetworksCommand(c *cli.Context) error {
177177
if len(vnets) > 0 {
178178
formatAndPrintVnetsList(vnets)
179179
} else {
180-
fmt.Println("No virtual networks were found for the given filter flags. You can use 'cloudflared tunnel network add' to add a virtual network.")
180+
fmt.Println("No virtual networks were found for the given filter flags. You can use 'cloudflared tunnel vnet add' to add a virtual network.")
181181
}
182182

183183
return nil

0 commit comments

Comments
 (0)