summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2017-05-31 10:49:10 +0000
committerclaudio <claudio@openbsd.org>2017-05-31 10:49:10 +0000
commitf872142b32bc686daf1eef4d17348d3f704ead78 (patch)
treecad88a6a04f6c78f33951dced9520fbeffaea01e
parentUpdate ext community printer to the changes done in bgpd. (diff)
downloadwireguard-openbsd-f872142b32bc686daf1eef4d17348d3f704ead78.tar.xz
wireguard-openbsd-f872142b32bc686daf1eef4d17348d3f704ead78.zip
Man page bits for ext-community which grew a few more subtypes.
Based on a diff from Job Snijders
-rw-r--r--usr.sbin/bgpd/bgpd.815
-rw-r--r--usr.sbin/bgpd/bgpd.conf.535
2 files changed, 43 insertions, 7 deletions
diff --git a/usr.sbin/bgpd/bgpd.8 b/usr.sbin/bgpd/bgpd.8
index c978ea79a94..ce7bece5274 100644
--- a/usr.sbin/bgpd/bgpd.8
+++ b/usr.sbin/bgpd/bgpd.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: bgpd.8,v 1.53 2017/05/26 20:55:30 phessler Exp $
+.\" $OpenBSD: bgpd.8,v 1.54 2017/05/31 10:49:10 claudio Exp $
.\"
.\" Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: May 26 2017 $
+.Dd $Mdocdate: May 31 2017 $
.Dt BGPD 8
.Os
.Sh NAME
@@ -400,6 +400,17 @@ control socket
.%R draft-ietf-idr-shutdown
.%T BGP Administrative Shutdown Communication
.Re
+.Pp
+.Rs
+.%A P. Mohapatra
+.%A K. Patel
+.%A J. Scudder
+.%A D. Ward
+.%A R. Bush
+.%D March 2017
+.%R RFC 8097
+.%T BGP Prefix Origin Validation State Extended Community
+.Re
.Sh HISTORY
The
.Nm
diff --git a/usr.sbin/bgpd/bgpd.conf.5 b/usr.sbin/bgpd/bgpd.conf.5
index cadee390296..6cecd7a5a80 100644
--- a/usr.sbin/bgpd/bgpd.conf.5
+++ b/usr.sbin/bgpd/bgpd.conf.5
@@ -1,4 +1,4 @@
-.\" $OpenBSD: bgpd.conf.5,v 1.159 2017/05/29 20:23:18 benno Exp $
+.\" $OpenBSD: bgpd.conf.5,v 1.160 2017/05/31 10:49:10 claudio Exp $
.\"
.\" Copyright (c) 2004 Claudio Jeker <claudio@openbsd.org>
.\" Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -16,7 +16,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: May 29 2017 $
+.Dd $Mdocdate: May 31 2017 $
.Dt BGPD.CONF 5
.Os
.Sh NAME
@@ -1234,6 +1234,11 @@ which is expanded to the locally assigned AS number.
.Ic ext-community
.Ar subtype Ar numvalue
.Xc
+.It Xo
+.Ic ext-community
+.Ar ovs
+.Pq Ic valid | not-found | invalid
+.Xc
This rule applies only to
.Em UPDATES
where the
@@ -1495,6 +1500,11 @@ to do wildcard matching.
.Ic ext-community Op Ar delete
.Ar subtype Ar numvalue
.Xc
+.It Xo
+.Ic ext-community Op Ar delete
+.Ar ovs
+.Pq Ic valid | not-found | invalid
+.Xc
Set or delete the
.Em Extended Community
AS path attribute.
@@ -1512,14 +1522,29 @@ is bigger than 65535 or if the AS_DOT encoding is used.
IPv4 Address Specific Extended Communities are encoded as
.Ar IP : Ns Ar local .
Opaque Extended Communities are encoded with a single numeric value.
+The
+.Ar ovs
+subtype can only be set to
+.Ar valid ,
+.Ar not-found ,
+or
+.Ar invalid .
Currently the following subtypes are supported:
.Bd -literal -offset indent
-rt Route Target
-soo Source of Origin
+bdc BGP Data Collection
+defgw Default Gateway
+esi-lab ESI Label
+esi-rt ES-Import Route Target
+l2vid L2VPN Identifier
+mac-mob MAC Mobility
odi OSPF Domain Identifier
ort OSPF Route Type
ori OSPF Router ID
-bdc BGP Data Collection
+ovs BGP Origin Validation State
+rt Route Target
+soo Route Origin / Source of Origin
+srcas Source AS
+vrfri VRF Route Import
.Ed
.Pp
Not all type and subtype value pairs are allowed by IANA and the parser