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:
Oleksiy Molchanov 2015-04-22 20:22:05 +03:00
parent baabd0cd88
commit d00b54261c
2 changed files with 6 additions and 4 deletions

View File

@ -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

View File

@ -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