Statistics
| Branch: | Tag: | Revision:

root / hooks / network-add-post.d / snf-network @ d2b16e51

History | View | Annotate | Download (425 Bytes)

1
#!/bin/bash
2

    
3
DEFAULT=/etc/default/snf-network
4

    
5
source $DEFAULT
6

    
7
source $CONF
8

    
9
NETWORK=$GANETI_NETWORK_NAME
10

    
11

    
12
NETFILE=$SHAREDDIR/networks/$NETWORK
13

    
14

    
15
cat > $NETFILE <<EOF
16
NETWORK=$GANETI_NETWORK_NAME
17
SUBNET=$GANETI_NETWORK_SUBNET
18
GATEWAY=$GANETI_NETWORK_GATEWAY
19

    
20
SUBNET6=$GANETI_NETWORK_SUBNET6
21
GATEWAY6=$GANETI_NETWORK_GATEWAY6
22

    
23
MAC_PREFIX=$GANETI_NETWORK_MAC_PREFIX
24

    
25
TYPE=$GANETI_NETWORK_TYPE
26
EOF
27

    
28
sed -i 's/None//' $NETFILE