Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (337 Bytes)

1
#!/bin/bash
2

    
3
source /etc/default/snf-network
4

    
5

    
6
NETFILE=$SHAREDDIR/networks/$NETWORK
7

    
8

    
9
cat > $NETFILE <<EOF
10
NETWORK=$GANETI_NETWORK_NAME
11
SUBNET=$GANETI_NETWORK_SUBNET
12
GATEWAY=$GANETI_NETWORK_GATEWAY
13

    
14
SUBNET6=$GANETI_NETWORK_SUBNET6
15
GATEWAY6=$GANETI_NETWORK_GATEWAY6
16

    
17
MAC_PREFIX=$GANETI_NETWORK_MAC_PREFIX
18

    
19
TYPE=$GANETI_NETWORK_TYPE
20
EOF
21

    
22