consul/website/source
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
..
api Add some config entry docs (#5808) 2019-05-08 16:19:37 -04:00
assets [docs] Updated Landing Page (#5803) 2019-05-09 14:55:06 -05:00
docs docs/agent/options: Add go-sockaddr template examples for -bind (#5701) 2019-05-13 14:08:05 +01:00
intro Remove old UI, option to use it, and its build processes 2019-04-12 09:02:27 -06:00
layouts Add some config entry docs (#5808) 2019-05-08 16:19:37 -04:00
.gitignore
404.html.md Tweaks 404 message. 2017-04-14 09:00:59 -07:00
android-manifest.json.erb Move to new branding 2017-03-30 18:46:50 -04:00
community.html.erb Update community.html.erb 2017-12-19 20:57:42 -08:00
configuration.html.erb [docs] Fixing API broken links (#5732) 2019-04-30 12:20:51 -05:00
discovery.html.erb website: fix carousel bugs 2019-01-07 13:39:14 -05:00
downloads.html.erb Doc changes for 1.4 Final (#4870) 2018-11-13 13:43:53 +00:00
downloads_tools.html.erb [docs] Add IntelliJ Consul to the list of community tools (#5379) 2019-03-05 13:58:03 +01:00
favicon.ico Move to new branding 2017-03-30 18:46:50 -04:00
index.html.erb website: update to 1.5 on homepage link (#5817) 2019-05-08 16:49:51 -07:00
microsoft-tile.xml.builder Move to new branding 2017-03-30 18:46:50 -04:00
redirects.txt redirecting the containers guide until its complete (#5790) 2019-05-06 16:57:43 -05:00
robots.txt
security.html.erb Move to new branding 2017-03-30 18:46:50 -04:00
segmentation.html.erb Fixes URL paths to learn.hashicorp.com 2018-11-28 15:39:28 -08:00
sitemap.xml.builder