consul/website/source/docs
Brian Flad 1fbe44d2c5 docs/agent/options: Add go-sockaddr template examples for -bind (#5701)
Reference: https://github.com/hashicorp/consul/issues/4090

Examples covering a variety of potential use cases. Verified via `sockaddr eval` and `console agent -bind` on a test machine:

```console
# Baseline
$ sockaddr eval 'GetAllInterfaces'
[127.0.0.1/8 {1 65536 lo  up|loopback} ::1 {1 65536 lo  up|loopback} 10.0.0.10/8 {2 1500 eth0 b8:27:eb:7b:36:95 up|broadcast|multicast} fe80::12dc:5e4d:8ff8:2d96/64 {2 1500 eth0 b8:27:eb:7b:36:95 up|broadcast|multicast} 192.168.1.10/24 {3 1500 wlan0 b8:27:eb:2e:63:c0 up|broadcast|multicast} fe80::b6dc:5758:c306:b15b/64 {3 1500 wlan0 b8:27:eb:2e:63:c0 up|broadcast|multicast}]

# Using address within a specific CIDR
$ sockaddr eval 'GetPrivateInterfaces | include "network" "10.0.0.0/8" | attr "address"'
10.0.0.10

# Using a static network interface name
$ sockaddr eval 'GetInterfaceIP "eth0"'
10.0.0.10

# Using regular expression matching for network interface name that is forwardable and up
$ sockaddr eval 'GetAllInterfaces | include "name" "^eth" | include "flags" "forwardable|up" | attr "address"'
10.0.0.10
```
2019-05-13 14:08:05 +01:00
..
acl [docs] ACL Legacy Docs (#5625) 2019-05-07 14:27:30 -05:00
agent docs/agent/options: Add go-sockaddr template examples for -bind (#5701) 2019-05-13 14:08:05 +01:00
commands Add some config entry docs (#5808) 2019-05-08 16:19:37 -04:00
connect Envoy L7 config docs (#5809) 2019-05-08 22:03:53 +01:00
enterprise rename refs to areas guide to advanced-federation (#5603) 2019-04-03 17:20:58 -04:00
guides Updating documentation of example systemd service to be of type notify. (#5689) 2019-05-13 14:04:45 +01:00
install [docs] WIP ports page (#5693) 2019-05-08 11:09:12 -05:00
internals [docs] Fixing API broken links (#5732) 2019-04-30 12:20:51 -05:00
platform/k8s Update documentation for clarity 2019-05-01 17:16:30 -05:00
common-errors.html.md [docs] New guide listing common error messages and what to do about them (#5433) 2019-05-02 16:59:48 -07:00
compatibility.html.md fix a couple html errors (#4456) 2018-07-26 16:30:24 -07:00
faq.html.md [docs] Server Performance (#5627) 2019-04-17 13:17:12 -05:00
index.html.erb [docs] Updated Landing Page (#5803) 2019-05-09 14:55:06 -05:00
upgrade-specific.html.md [docs] Server Performance (#5627) 2019-04-17 13:17:12 -05:00
upgrading.html.md Update to Consul Upgrading Doc 2019-05-01 09:49:05 -04:00