
User Guide
25
</module>
1. Changing speaker configuration
• Changing binding address: Uncomment tag binding-address and change the address
to e.g. 127.0.0.1. The default binding address is 0.0.0.0.
• Changing binding port: Uncomment tag binding-port and change the port to e.g.
1790. The default binding port is 179 as specified in BGP RFC.
2. Configuring incoming BGP connections
By default, the
BGP speaker drops all BGP connections from unknown BGP peers
. The
decision is made in component bgp-peer-registry that is injected into the speaker (The
registry is configured in 31-bgp.xml).
To add BGP Peer configuration into the registry, it is necessary to configure regular BGP
peer just like in example in
. Notice that the BGP peer depends on the
same
bgp-peer-registry as bgp-speaker
:
<module>
<type
xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">
prefix:bgp-peer
</type>
<name>example-bgp-peer</name>
<host>192.0.2.1</host>
...
<peer-registry>
<type
xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">
prefix:bgp-peer-registry
</type>
<name>global-bgp-peer-registry</name>
</peer-registry>
...
</module>
BGP peer registers itself into the registry, which allows incoming BGP connections handled
by the
bgp-speaker
. (Config attribute
peer-registry
is optional for now to preserve
backwards compatibility). With this configuration, the connection to 192.0.2.1 is initiated
by ODL but will also be accepted from 192.0.2.1. In case both connections are being
established, only one of them will be preserved and the other will be dropped. The
connection initiated from device with lower bgp id will be dropped by the registry.
There is a way to configure the peer only for incoming connections (The connection will
not be initiated by the ODL, ODL will only wait for incoming connection from the peer. The
peer is identified by its IP address). To configure peer only for incoming connection add
attribute
initiate-connection
to peer configuration:
<module>
<type
xmlns:prefix="urn:opendaylight:params:xml:ns:yang:controller:bgp:rib:impl">
prefix:bgp-peer
</type>
<name>example-bgp-peer</name>
<host>192.0.2.1</host> // IP address or hostname
of the speaker
Содержание Opendaylight
Страница 1: ...User Guide ...
Страница 2: ...User Guide ii User Guide ...
Страница 27: ...Part II Addons This second part of the user guide covers project specific usage instructions ...