コード例 #1
0
ファイル: sanity_check.py プロジェクト: zdj6373/neutron
def check_ovs_conntrack():
    result = checks.ovs_conntrack_supported()
    if not result:
        LOG.error('Check for Open vSwitch support of conntrack support '
                  'failed. OVS/CT firewall will not work. A newer '
                  'version of OVS (2.5+) and linux kernel (4.3+) are '
                  'required. See '
                  'https://github.com/openvswitch/ovs/blob/master/FAQ.md '
                  'for more information.')
    return result
コード例 #2
0
ファイル: sanity_check.py プロジェクト: eayunstack/neutron
def check_ovs_conntrack():
    result = checks.ovs_conntrack_supported()
    if not result:
        LOG.error('Check for Open vSwitch support of conntrack support '
                  'failed. OVS/CT firewall will not work. A newer '
                  'version of OVS (2.5+) and linux kernel (4.3+) are '
                  'required. See '
                  'https://github.com/openvswitch/ovs/blob/master/FAQ.md '
                  'for more information.')
    return result
コード例 #3
0
ファイル: test_firewall.py プロジェクト: whitepages/neutron
 def initialize_ovs(self):
     # Tests for ovs requires kernel >= 4.3 and OVS >= 2.5
     if not checks.ovs_conntrack_supported():
         self.skipTest("Open vSwitch with conntrack is not installed "
                       "on this machine. To run tests for OVS/CT firewall,"
                       " please meet the requirements (kernel>=4.3, "
                       "OVS>=2.5. More info at"
                       "https://github.com/openvswitch/ovs/blob/master/"
                       "FAQ.md")
     tester = self.useFixture(conn_testers.OVSConnectionTester())
     firewall_drv = openvswitch_firewall.OVSFirewallDriver(tester.bridge)
     return tester, firewall_drv
コード例 #4
0
 def initialize_ovs(self):
     # Tests for ovs requires kernel >= 4.3 and OVS >= 2.5
     if not checks.ovs_conntrack_supported():
         self.skipTest("Open vSwitch with conntrack is not installed "
                       "on this machine. To run tests for OVS/CT firewall,"
                       " please meet the requirements (kernel>=4.3, "
                       "OVS>=2.5. More info at"
                       "https://github.com/openvswitch/ovs/blob/master/"
                       "FAQ.md")
     tester = self.useFixture(conn_testers.OVSConnectionTester())
     firewall_drv = openvswitch_firewall.OVSFirewallDriver(tester.bridge)
     return tester, firewall_drv
コード例 #5
0
 def initialize_ovs(self):
     # Tests for ovs requires kernel >= 4.3 and OVS >= 2.5
     if not checks.ovs_conntrack_supported():
         self.skipTest("Open vSwitch with conntrack is not installed "
                       "on this machine. To run tests for OVS/CT firewall,"
                       " please meet the requirements (kernel>=4.3, "
                       "OVS>=2.5). More info at "
                       "https://github.com/openvswitch/ovs/blob/master/"
                       "FAQ.md")
     self.of_helper = l2_base.OVSOFControllerHelper()
     self.of_helper.addCleanup = self.addCleanup
     self.of_helper.start_of_controller(cfg.CONF)
     tester = self.useFixture(
         conn_testers.OVSConnectionTester(self.ip_cidr,
                                          self.of_helper.br_int_cls))
     firewall_drv = openvswitch_firewall.OVSFirewallDriver(tester.bridge)
     return tester, firewall_drv
コード例 #6
0
    def supports_ovsfirewall(cls):
        if cls.conntrack_supported is None:
            cls.conntrack_supported = checks.ovs_conntrack_supported()

        return cls.conntrack_supported
コード例 #7
0
    def supports_ovsfirewall(cls):
        if cls.conntrack_supported is None:
            cls.conntrack_supported = checks.ovs_conntrack_supported()

        return cls.conntrack_supported