Skip to content

Commit e3dc90c

Browse files
authored
Merge branch 'main' into 116_lint_intrf+first
2 parents 67aed51 + e57c857 commit e3dc90c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

vpcanalyzer_report.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Run `vpcanalyzer report` with one of the following subcommands.
1010
* **`vpcanalyzer report endpoints`** - Each output line is of the form: `src => dst : connection` , where each of `src` and `dst` is either a VPC endpoint (instance network interface) or an external CIDR, and `connection` is the set of allowed protocols and their relevant connection attributes (e.g., allowed source ports and/or destination ports for TCP/UDP).
1111
* **`vpcanalyzer report subnets`** - Each output line is of the form: `src => dst : connection` , where each of `src` and `dst` is either a VPC subnet or an external CIDR, and `connection` is as explained for `vpcanalyzer report endpoints`.
1212
* **`vpcanalyzer report single-subnet`** - The output consists of sections; one section per subnet (section header is the subnet's CIDR block). Each section consists of two sub-sections: `ingressConnectivity` and `egressConnectivity`. These sections detail the allowed connectivity to/from the subnet, as configured by the subnet's NACL resource.
13+
* **`vpcanalyzer report routing`** - The output is the expected routing path between given source and destination endpoints, considering only VPC routing resources.
1314

1415
### Options
1516

@@ -65,3 +66,14 @@ provides this output:
6566
|-----|-----|------|
6667
| subnet1-ky | Public Internet (all ranges) | All Connections |
6768
| subnet1-ky,subnet2-ky,subnet3-ky | subnet1-ky,subnet2-ky,subnet3-ky | All Connections |
69+
70+
71+
Running
72+
```shell
73+
vpcanalyzer report routing -c pkg/ibmvpc/examples/input/input_hub_n_spoke_1.json --src 10.1.0.4 --dst 192.168.0.4
74+
```
75+
Provides this output:
76+
```
77+
path for src 10.1.0.4, dst 192.168.0.4:
78+
NetworkInterface - tvpc-spoke0-z1-worker[10.1.0.4] -> TGW - tvpc-tgw -> nextHop: 10.1.15.196 [origDest: 192.168.0.4]
79+
```

0 commit comments

Comments
 (0)