Merge "Disable autoconfiguration of rules on Edge"

This commit is contained in:
Jenkins
2015-07-14 11:21:59 +00:00
committed by Gerrit Code Review
2 changed files with 22 additions and 5 deletions

View File

@@ -51,6 +51,12 @@ LOG = logging.getLogger(__name__)
def get_router_fw_rules():
fw_rules = [
{
'name': 'VSERule',
'enabled': True,
'action': 'allow',
'vnicGroupId': ['vse']
},
{
'name': 'MDServiceIP',
'enabled': True,
@@ -345,16 +351,23 @@ class NsxVMetadataProxyHandler:
cfg.CONF.nsxv.nova_metadata_ips,
proxy_lb=True)
firewall_rule = {
'action': 'allow',
'enabled': True,
'source_ip_address': [INTERNAL_SUBNET]}
firewall_rules = [
{
'name': 'VSERule',
'enabled': True,
'action': 'allow',
'vnicGroupId': ['vse']
},
{
'action': 'allow',
'enabled': True,
'source_ip_address': [INTERNAL_SUBNET]}]
edge_utils.update_firewall(
self.nsxv_plugin.nsx_v,
self.context,
rtr_id,
{'firewall_rule_list': [firewall_rule]},
{'firewall_rule_list': firewall_rules},
allow_external=False)
if cfg.CONF.nsxv.mgt_net_default_gateway:

View File

@@ -54,6 +54,10 @@ class EdgeApplianceDriver(object):
'cliSettings': {
'remoteAccess': remote_access
},
'autoConfiguration': {
'enabled': False,
'rulePriority': 'high'
},
'appliances': {
'applianceSize': appliance_size
},