Set reserved network for conntrackd
Set reserved network 240.1.0.0/24 to be used for conntrackd sync Change-Id: Ia93c2880cbeeaab8d4f156d4a6c7f3ff2a4f7ceb Closes-Bug: 1444022
This commit is contained in:
parent
baabd0cd88
commit
d00b54261c
@ -1,10 +1,12 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
#
|
||||
# An OCF RA for conntrackd
|
||||
# An OCF RA for conntrackd in namespace
|
||||
# http://conntrack-tools.netfilter.org/
|
||||
#
|
||||
# Copyright (c) 2011 Dominik Klein
|
||||
# Originaly created by Dominik Klein
|
||||
#
|
||||
# Patched by Mirantis
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of version 2 of the GNU General Public License as
|
||||
@ -144,7 +146,7 @@ get_veth_pair() {
|
||||
ocf_run ip link set dev $OCF_RESKEY_ns_interface netns $OCF_RESKEY_ns
|
||||
ocf_run ip netns exec $OCF_RESKEY_ns ip link set up dev $OCF_RESKEY_ns_interface
|
||||
ocf_run ip link set up dev $OCF_RESKEY_host_interface
|
||||
ocf_run ip netns exec $OCF_RESKEY_ns ifconfig $OCF_RESKEY_ns_interface 10.0.0.${last_octet}/24
|
||||
ocf_run ip netns exec $OCF_RESKEY_ns ip addr add 240.1.0.${last_octet}/24 dev $OCF_RESKEY_ns_interface
|
||||
fi
|
||||
|
||||
add_to_bridge
|
||||
|
@ -93,7 +93,7 @@ Sync {
|
||||
# send the synchronization messages. Remember that you must
|
||||
# use a dedicated link for the synchronization messages.
|
||||
#
|
||||
IPv4_interface 10.0.0.<%= @ipaddress_br_mgmt.rpartition(".")[-1] %>
|
||||
IPv4_interface 240.1.0.<%= @ipaddress_br_mgmt.rpartition(".")[-1] %>
|
||||
|
||||
#
|
||||
# The name of the interface that you are going to use to
|
||||
|
Loading…
Reference in New Issue
Block a user