1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

feature #863: VLAN drivers also sets firewall rules for VMs

This commit is contained in:
Ruben S. Montero 2011-12-05 01:51:39 +01:00
parent d1307b3349
commit 93827b4c24
6 changed files with 51 additions and 11 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env ruby
# -------------------------------------------------------------------------- #
# Copyright 2002-2011, OpenNebula Project Leads (OpenNebula.org) #
@ -16,4 +16,12 @@
# limitations under the License. #
#--------------------------------------------------------------------------- #
exit 0
$: << File.dirname(__FILE__)
$: << File.join(File.dirname(__FILE__), "..")
require 'OpenNebulaNetwork'
require 'Firewall'
fw = OpenNebulaFirewall.from_base64(ARGV[0])
fw.deactivate

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env ruby
# -------------------------------------------------------------------------- #
# Copyright 2002-2011, OpenNebula Project Leads (OpenNebula.org) #
@ -16,4 +16,12 @@
# limitations under the License. #
#--------------------------------------------------------------------------- #
exit 0
$: << File.dirname(__FILE__)
$: << File.join(File.dirname(__FILE__), "..")
require 'OpenNebulaNetwork'
require 'Firewall'
fw = OpenNebulaFirewall.from_base64(ARGV[0])
fw.activate

View File

@ -20,9 +20,12 @@ $: << File.dirname(__FILE__)
$: << File.join(File.dirname(__FILE__), "..")
require 'Ebtables'
require 'Firewall'
template = ARGV[0]
onevlan = EbtablesVLAN.from_base64(ARGV[0])
onevlan = EbtablesVLAN.from_base64(template)
onevlan.deactivate
exit onevlan.deactivate
fw = OpenNebulaFirewall.from_base64(ARGV[0])
fw.deactivate

View File

@ -20,6 +20,12 @@ $: << File.dirname(__FILE__)
$: << File.join(File.dirname(__FILE__), "..")
require 'Ebtables'
require 'Firewall'
onevlan = EbtablesVLAN.from_base64(ARGV[0])
exit onevlan.activate
onevlan.activate
fw = OpenNebulaFirewall.from_base64(ARGV[0])
fw.activate

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env ruby
# -------------------------------------------------------------------------- #
# Copyright 2002-2011, OpenNebula Project Leads (OpenNebula.org) #
@ -16,4 +16,12 @@
# limitations under the License. #
#--------------------------------------------------------------------------- #
exit 0
$: << File.dirname(__FILE__)
$: << File.join(File.dirname(__FILE__), "..")
require 'OpenNebulaNetwork'
require 'Firewall'
fw = OpenNebulaFirewall.from_base64(ARGV[0])
fw.deactivate

View File

@ -20,6 +20,13 @@ $: << File.dirname(__FILE__)
$: << File.join(File.dirname(__FILE__), "..")
require 'OpenvSwitch'
require 'Firewall'
onevlan = OpenvSwitchVLAN.from_base64(ARGV[0])
exit onevlan.activate()
onevlan.activate
fw = OpenNebulaFirewall.from_base64(ARGV[0])
fw.activate