Let's use "point-to-point" and map "pointopoint" to it.
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
This commit is contained in:
parent
48c87e34c1
commit
6dc43a2bb4
4 changed files with 10 additions and 7 deletions
|
@ -70,10 +70,12 @@ the system will only respond to certain keywords by default:
|
||||||
is for backwards compatibility and should not be used in new
|
is for backwards compatibility and should not be used in new
|
||||||
deployments.
|
deployments.
|
||||||
|
|
||||||
*pointopoint*
|
*point-to-point* _address_
|
||||||
Sets the given IPv4 address as the peer address on the interface.
|
Sets the given IPv4 _address_ as the peer address on the
|
||||||
This setting only takes effect for the IPv4 address familiy and
|
interface. This setting only takes effect for the IPv4 address
|
||||||
only makes sense in combination with as /32 netmask.
|
familiy and only makes sense in combination with a /32 netmask.
|
||||||
|
For compatiblity with ifupdown and ifupdown2, _pointopoint_ is
|
||||||
|
an alias for this parameter.
|
||||||
|
|
||||||
*link-type* _link-type_
|
*link-type* _link-type_
|
||||||
Denotes the link-type of the interface. When set to _dummy_,
|
Denotes the link-type of the interface. When set to _dummy_,
|
||||||
|
|
|
@ -22,8 +22,8 @@ addr_family() {
|
||||||
configure_addresses() {
|
configure_addresses() {
|
||||||
for i in $(ifquery -p address -i $INTERFACES_FILE $IFACE); do
|
for i in $(ifquery -p address -i $INTERFACES_FILE $IFACE); do
|
||||||
addrfam=$(addr_family $i)
|
addrfam=$(addr_family $i)
|
||||||
if [ "${IF_POINTOPOINT}" -a "${addrfam}" = "-4" ]; then
|
if [ "${IF_POINT_TO_POINT}" -a "${addrfam}" = "-4" ]; then
|
||||||
PEER="peer ${IF_POINTOPOINT}"
|
PEER="peer ${IF_POINT_TO_POINT}"
|
||||||
else
|
else
|
||||||
PEER=""
|
PEER=""
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -79,6 +79,7 @@ static const struct remap_token tokens[] = {
|
||||||
{"offload-tso", "ethtool-offload-tso"}, /* Debian ethtool integration */
|
{"offload-tso", "ethtool-offload-tso"}, /* Debian ethtool integration */
|
||||||
{"offload-tx", "ethtool-offload-tx"}, /* Debian ethtool integration */
|
{"offload-tx", "ethtool-offload-tx"}, /* Debian ethtool integration */
|
||||||
{"offload-ufo", "ethtool-offload-ufo"}, /* Debian ethtool integration */
|
{"offload-ufo", "ethtool-offload-ufo"}, /* Debian ethtool integration */
|
||||||
|
{"pointopoint", "point-to-point"}, /* legacy ifupdown, ifupdown2 */
|
||||||
{"provider", "ppp-provider"}, /* legacy ifupdown, ifupdown2 */
|
{"provider", "ppp-provider"}, /* legacy ifupdown, ifupdown2 */
|
||||||
{"rx-offload", "ethtool-offload-rx"}, /* ifupdown2 */
|
{"rx-offload", "ethtool-offload-rx"}, /* ifupdown2 */
|
||||||
{"tso-offload", "ethtool-offload-tso"}, /* ifupdown2 */
|
{"tso-offload", "ethtool-offload-tso"}, /* ifupdown2 */
|
||||||
|
|
|
@ -25,7 +25,7 @@ up_body() {
|
||||||
|
|
||||||
up_ptp_body() {
|
up_ptp_body() {
|
||||||
export IFACE=eth0 PHASE=up MOCK=echo INTERFACES_FILE="$FIXTURES/static-eth0-ptp.interfaces" \
|
export IFACE=eth0 PHASE=up MOCK=echo INTERFACES_FILE="$FIXTURES/static-eth0-ptp.interfaces" \
|
||||||
IF_POINTOPOINT="192.0.2.1"
|
IF_POINT_TO_POINT="192.0.2.1"
|
||||||
atf_check -s exit:0 \
|
atf_check -s exit:0 \
|
||||||
-o match:'addr add 203.0.113.2/32 peer 192.0.2.1 dev eth0' \
|
-o match:'addr add 203.0.113.2/32 peer 192.0.2.1 dev eth0' \
|
||||||
-o match:'route add default via 192.0.2.1 metric 1 dev eth0' \
|
-o match:'route add default via 192.0.2.1 metric 1 dev eth0' \
|
||||||
|
|
Loading…
Reference in a new issue