ML2PortSecurityExtensionDriver is working

2024-04-16 14:58

本文主要是介绍ML2PortSecurityExtensionDriver is working,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

在openstack的kilo版本终于加上了这个ML2PortSecurityExtensionDriver,这样在openstack里做NFV的实验就会轻松很多,因为很多时候需要让流量通过VM;

Openstack kilo的最新port-security介绍文档如下
http://specs.openstack.org/openstack/neutron-specs/specs/kilo/ml2-ovs-portsecurity.html
Openstack kilo的最新port-security配置文档如下
https://wiki.openstack.org/wiki/Neutron/ML2PortSecurityExtensionDriver

port-security代码如下:

from neutron.api import extensions
from neutron.api.v2 import attributes
from neutron.common import exceptions as nexceptionclass PortSecurityPortHasSecurityGroup(nexception.InUse):message = _("Port has security group associated. Cannot disable port ""security or ip address until security group is removed")class PortSecurityAndIPRequiredForSecurityGroups(nexception.InvalidInput):message = _("Port security must be enabled and port must have an IP"" address in order to use security groups.")class PortSecurityBindingNotFound(nexception.InvalidExtensionEnv):message = _("Port does not have port security binding.")PORTSECURITY = 'port_security_enabled'
EXTENDED_ATTRIBUTES_2_0 = {'networks': {PORTSECURITY: {'allow_post': True, 'allow_put': True,'convert_to': attributes.convert_to_boolean,'enforce_policy': True,'default': True,'is_visible': True},},'ports': {PORTSECURITY: {'allow_post': True, 'allow_put': True,'convert_to': attributes.convert_to_boolean,'default': attributes.ATTR_NOT_SPECIFIED,'enforce_policy': True,'is_visible': True},}
}class Portsecurity(extensions.ExtensionDescriptor):"""Extension class supporting port security."""@classmethoddef get_name(cls):return "Port Security"@classmethoddef get_alias(cls):return "port-security"@classmethoddef get_description(cls):return "Provides port security"@classmethoddef get_updated(cls):return "2012-07-23T10:00:00-00:00"def get_extended_resources(self, version):if version == "2.0":return EXTENDED_ATTRIBUTES_2_0else:return {}

在 /etc/neutron/plugins/ml2/ml2_conf.ini 添加如下配置

这里写图片描述

新建network如下:
neutron net-create net2 –port-security-enabled=False
neutron subnet-create net2 6.6.6.0/24 –enable-dhcp=False –name subnet2

这里写图片描述

发现port-security已经false了,这样今后的ipables就可以不用删除了。

接下去把floodlight和opendaylight装进去

whole picture如下:

这里写图片描述

这篇关于ML2PortSecurityExtensionDriver is working的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/909118

相关文章

Eclipse或MyEclipse中Java Working Set管理项目

随着学习JAVA的时间的越来越久,项目也越来越多,Eclipse或MyEclipse界面中显示一堆! 每次工作使用到的项目肯定不会太多...... 每次从这么大数量的工程当中找到自己要使用的, 必须大规模的滚动滚动条...... 图片一   Project Explorer中:    图片二:Package Explorer中: 这样就好找很多了,分类放!

Working with excel files using Pandas

https://www.geeksforgeeks.org/working-with-excel-files-using-pandas/

Ubuntu 18.04 This page isn’t working xxx.com didn’t send any data. ERR_EMPTY_RESPONSE

Ubuntu18.04 chrome Firefox 都试了一遍 提示如下: This page isn’t working xxx.com didn’t send any data. ERR_EMPTY_RESPONSE 本地 curl xxx.com 都可以出数据,找了一天的问题,最终发现是 Network-> Network Proxy 网络有代理 http://xxx.xxx.

How to working with dates and times?

1.How to formatting date for display? Problem You need to format dates or time for output Solution Use the date command with a strftime format specification. 3. How to automating date Ranges?

Os bootup and stop working when the / directory is ful

From the Gnome UI, there is no response in the command line. So telnet from other machine, and cleanup and make up some space in / dir, it will work as normal.

Working with Containers

[外链图片转存失败(img-fui4VSTG-1566044208471)(http://7xizmp.com1.z0.glb.clouddn.com/Docker-colorful.png)] ##回顾之前学习过的一些命令 docker run -i...交互式运行docker run -d...background运行`daemon`守护进程docker ps...Lists cont

svn working copy locked问题

问题描述: 用svn在项目文件夹下commit或者update时会出现错误提示“working copy locked” 解决: 1、在项目文件夹下,单机鼠标右键,选择tortoisesvn-》cleanup; 2、如果cleanup没有效果的话只好手动删除锁定文件。 cd 到svn项目目录下,然后执行如下命令 del lock /q/s E:\项目\卫生局\监督局

svn 无法提交,报错Solve svn : Working copy is too old (format 10, created by Subversion 1.6)

今儿做东西,svn除了问题。问题是 1.svn无法提交。选中文件,右键svn都没有commit的提示。后来发现在该文件夹下,都没有svn控制的那些符号,比如问号,感叹号之类的。最后,是因为我当时从svncheck out下来是check到桌面,后来又移动该文件夹到其他地方,那么当初记录的路径已经改变了,自然不会再接受svn的管理,也就无法提交了。解决办法,想了一个笨办法,从新从svn上ch

warning: in the working copy of ‘wxss/8.wxss‘, LF will be replaced by

git add --renormalize . git commit -m "Normalize line endings"

Private Bytes、Working Set、Virtual Size 的区别

Private Bytes、Working Set、Virtual Size 的区别 Private Bytes 进程占用内存、进程申请的内存和进程所依赖的动态库申请的内存总和,不包括进程所依赖的动态库占用的内存、mmap的内存。不一定在物理内存上,可以被交换到磁盘上,所以可以比Working Set大。由于也包括进程依赖动态库所申请的内存,所以不能判断内存泄漏是由进程导致的还是动态库导致的。