Skip to content

Commit 678d852

Browse files
committed
add create, delete, update routing table command
1 parent e48248a commit 678d852

24 files changed

+425
-64
lines changed

docs/stackit_routing-table.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Manage routing-tables and its according routes
66

77
Manage routing tables and their associated routes.
88

9-
This API is currently in a private alpha stage. To request access,
10-
please contact your Account Manager or open a support ticket.
9+
This API is currently available only to selected customers.
10+
To request access, please contact your account manager or submit a support ticket.
1111

1212
```
1313
stackit routing-table [flags]
@@ -33,6 +33,8 @@ stackit routing-table [flags]
3333
### SEE ALSO
3434

3535
* [stackit](./stackit.md) - Manage STACKIT resources using the command line
36+
* [stackit routing-table create](./stackit_routing-table_create.md) - Creates a routing-table
37+
* [stackit routing-table delete](./stackit_routing-table_delete.md) - Deletes a routing-table
3638
* [stackit routing-table describe](./stackit_routing-table_describe.md) - Describe a routing-table
3739
* [stackit routing-table list](./stackit_routing-table_list.md) - List all routing-tables
3840
* [stackit routing-table route](./stackit_routing-table_route.md) - Manage routes of a routing-table
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
## stackit routing-table create
2+
3+
Creates a routing-table
4+
5+
### Synopsis
6+
7+
Creates a routing-table.
8+
9+
```
10+
stackit routing-table create [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Create a routing table with name `rt`
17+
stackit routing-table create --organization-id xxx --network-area-id yyy --name "rt"
18+
19+
Create a routing table with name `rt` and description `some description`
20+
stackit routing-table create --organization-id xxx --network-area-id yyy --name "rt" --description "some description"
21+
22+
Create a routing table with name rt with system_routes disabled
23+
stackit routing-table create --organization-id xxx --network-area-id yyy --name "rt" --system-routes false
24+
```
25+
26+
### Options
27+
28+
```
29+
--description string Description of the routing-table
30+
--dynamic-routes A config setting for a routing-table which allows propagation of dynamic routes to this routing-table. (default true)
31+
-h, --help Help for "stackit routing-table create"
32+
--labels stringToString Key=value labels (default [])
33+
--name string Name of the routing-table
34+
--network-area-id string Network-Area ID
35+
--organization-id string Organization ID
36+
--system-routes This controls whether the routes for project-to-project communication are created automatically or not. (default true)
37+
```
38+
39+
### Options inherited from parent commands
40+
41+
```
42+
-y, --assume-yes If set, skips all confirmation prompts
43+
--async If set, runs the command asynchronously
44+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
45+
-p, --project-id string Project ID
46+
--region string Target region for region-specific requests
47+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
48+
```
49+
50+
### SEE ALSO
51+
52+
* [stackit routing-table](./stackit_routing-table.md) - Manage routing-tables and its according routes
53+
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
## stackit routing-table delete
2+
3+
Deletes a routing-table
4+
5+
### Synopsis
6+
7+
Deletes a routing-table
8+
9+
```
10+
stackit routing-table delete ROUTE_TABLE_ARG [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Deletes a a routing-table
17+
$ stackit routing-table delete xxxx-xxxx-xxxx-xxxx --organization-id yyy --network-area-id zzz
18+
```
19+
20+
### Options
21+
22+
```
23+
-h, --help Help for "stackit routing-table delete"
24+
--network-area-id string Network-Area ID
25+
--organization-id string Organization ID
26+
```
27+
28+
### Options inherited from parent commands
29+
30+
```
31+
-y, --assume-yes If set, skips all confirmation prompts
32+
--async If set, runs the command asynchronously
33+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
34+
-p, --project-id string Project ID
35+
--region string Target region for region-specific requests
36+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
37+
```
38+
39+
### SEE ALSO
40+
41+
* [stackit routing-table](./stackit_routing-table.md) - Manage routing-tables and its according routes
42+

docs/stackit_routing-table_describe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ stackit routing-table describe ROUTING_TABLE_ID_ARG [flags]
1414

1515
```
1616
Describe a routing-table
17-
$ stackit beta routing-table describe xxxx-xxxx-xxxx-xxxx --organization-id xxx --network-area-id yyy
17+
$ stackit routing-table describe xxxx-xxxx-xxxx-xxxx --organization-id xxx --network-area-id yyy
1818
```
1919

2020
### Options

docs/stackit_routing-table_list.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ stackit routing-table list [flags]
1414

1515
```
1616
List all routing-tables
17-
$ stackit beta routing-table list --organization-id xxx --network-area-id yyy
17+
$ stackit routing-table list --organization-id xxx --network-area-id yyy
1818
1919
List all routing-tables with labels
20-
$ stackit beta routing-table list --label-selector env=dev,env=rc --organization-id xxx --network-area-id yyy
20+
$ stackit routing-table list --label-selector env=dev,env=rc --organization-id xxx --network-area-id yyy
2121
2222
List all routing-tables with labels and set limit to 10
23-
$ stackit beta routing-table list --label-selector env=dev,env=rc --limit 10 --organization-id xxx --network-area-id yyy
23+
$ stackit routing-table list --label-selector env=dev,env=rc --limit 10 --organization-id xxx --network-area-id yyy
2424
```
2525

2626
### Options

docs/stackit_routing-table_route_create.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ stackit routing-table route create [flags]
1414

1515
```
1616
Create a route with CIDRv4 destination and IPv4 nexthop
17-
stackit beta routing-tables route create \
17+
stackit routing-table route create \
1818
--routing-table-id xxx --organization-id yyy --network-area-id zzz \
1919
--destination-type cidrv4 --destination-value <ipv4-cidr> \
2020
--nexthop-type ipv4 --nexthop-value <ipv4-address>
2121
2222
Create a route with CIDRv6 destination and IPv6 nexthop
23-
stackit beta routing-tables route create \
23+
stackit routing-table route create \
2424
--routing-table-id xxx --organization-id yyy --network-area-id zzz \
2525
--destination-type cidrv6 --destination-value <ipv6-cidr> \
2626
--nexthop-type ipv6 --nexthop-value <ipv6-address>
2727
2828
Create a route with CIDRv6 destination and Nexthop Internet
29-
stackit beta routing-tables route create \
29+
stackit routing-table route create \
3030
--routing-table-id xxx --organization-id yyy --network-area-id zzz \
3131
--destination-type cidrv6 --destination-value <ipv6-cidr> \
3232
--nexthop-type internet

docs/stackit_routing-table_route_delete.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ stackit routing-table route delete routing-table-id [flags]
1414

1515
```
1616
Deletes a route within a routing-table
17-
$ stackit beta routing-table route delete xxxx-xxxx-xxxx-xxxx --routing-table-id xxx --organization-id yyy --network-area-id zzz
17+
$ stackit routing-table route delete xxxx-xxxx-xxxx-xxxx --routing-table-id xxx --organization-id yyy --network-area-id zzz
1818
```
1919

2020
### Options

docs/stackit_routing-table_route_describe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ stackit routing-table route describe ROUTE_ID_ARG [flags]
1414

1515
```
1616
Describe a route within a routing-table
17-
$ stackit beta routing-table route describe xxxx-xxxx-xxxx-xxxx --routing-table-id xxx --organization-id yyy --network-area-id zzz
17+
$ stackit routing-table route describe xxxx-xxxx-xxxx-xxxx --routing-table-id xxx --organization-id yyy --network-area-id zzz
1818
```
1919

2020
### Options

docs/stackit_routing-table_route_list.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ stackit routing-table route list [flags]
1414

1515
```
1616
List all routes within a routing-table
17-
$ stackit beta routing-table route list --routing-table-id xxx --organization-id yyy --network-area-id zzz
17+
$ stackit routing-table route list --routing-table-id xxx --organization-id yyy --network-area-id zzz
1818
1919
List all routes within a routing-table with labels
20-
$ stackit beta routing-table list --routing-table-id xxx --organization-id yyy --network-area-id zzz --label-selector env=dev,env=rc
20+
$ stackit routing-table list --routing-table-id xxx --organization-id yyy --network-area-id zzz --label-selector env=dev,env=rc
2121
2222
List all routes within a routing-tables with labels and limit to 10
23-
$ stackit beta routing-table list --routing-table-id xxx --organization-id yyy --network-area-id zzz --label-selector env=dev,env=rc --limit 10
23+
$ stackit routing-table list --routing-table-id xxx --organization-id yyy --network-area-id zzz --label-selector env=dev,env=rc --limit 10
2424
```
2525

2626
### Options

docs/stackit_routing-table_route_update.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ stackit routing-table route update ROUTE_ID_ARG [flags]
1414

1515
```
1616
Updates the label(s) of a route with ID "xxx" in a routing-table ID "xxx" in organization with ID "yyy" and network-area with ID "zzz"
17-
$ stackit beta routing-table route update xxx --labels key=value,foo=bar --routing-table-id xxx --organization-id yyy --network-area-id zzz
17+
$ stackit routing-table route update xxx --labels key=value,foo=bar --routing-table-id xxx --organization-id yyy --network-area-id zzz
1818
```
1919

2020
### Options

0 commit comments

Comments
 (0)