Revision 228ec78d
b/common.sh | ||
---|---|---|
81 | 81 |
|
82 | 82 |
# pick a firewall profile per NIC, based on tags (and apply it) |
83 | 83 |
function routed_setup_firewall { |
84 |
ifprefix="synnefo:network:$INTERFACE_INDEX:" |
|
84 |
# for latest ganeti there is no need to check other but uuid |
|
85 |
ifprefixindex="synnefo:network:$INTERFACE_INDEX:" |
|
86 |
ifprefixname="synnefo:network:$INTERFACE_NAME:" |
|
87 |
ifprefixuuid="synnefo:network:$INTERFACE_UUID:" |
|
85 | 88 |
for tag in $TAGS; do |
86 |
case ${tag#$ifprefix} in |
|
89 |
tag=${tag#$ifprefixindex} |
|
90 |
tag=${tag#$ifprefixname} |
|
91 |
tag=${tag#$ifprefixuuid} |
|
92 |
case $tag in |
|
87 | 93 |
protected) |
88 | 94 |
chain=protected |
89 | 95 |
;; |
Also available in: Unified diff