Ask Your Question
0

What is the use of the Dead VLAN tag 4095 on quantum openvswitch plugin?

asked 2013-07-03 14:23:04 -0500

cyberang3l gravatar image

When I run "ovs-vsctl show", sometimes I see some ports with VLAN tag 4095

After doing some search I couldn't find much references on it except the source file "ovs_quantum_agent.py" which looks like this:

A placeholder for dead vlans.

DEAD_VLAN_TAG = "4095" ... ... def port_dead(self, port): '''Once a port has no binding, put it on the "dead vlan".

    :param port: a ovs_lib.VifPort object.'''
    self.int_br.set_db_attribute("Port", port.port_name, "tag",
                                 DEAD_VLAN_TAG)
    self.int_br.add_flow(priority=2, in_port=port.ofport, actions="drop")

The question is why '''Once a port has no binding, put it on the "dead vlan" and not destory it?

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted
0

answered 2013-07-03 22:25:09 -0500

cyberang3l gravatar image

Thanks Salvatore Orlando, that solved my question.

edit flag offensive delete link more
0

answered 2013-07-03 22:26:45 -0500

cyberang3l gravatar image

Thanks Salvatore, it makes sense now.

edit flag offensive delete link more
0

answered 2013-07-03 14:54:19 -0500

gongysh gravatar image

I think it is just for the sake of 'safety'. we don't want the quantum components to make mistake. but I am not sure.

edit flag offensive delete link more
0

answered 2013-07-03 21:30:13 -0500

salvatore-orlando gravatar image

Every port on the integration bridge which cannot be mapped to a neutron port, and is therefore unknown to neutron, is put on this vlan, thus avoiding this port cannot snoop or generate traffic on tenants' networks.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-07-03 14:23:04 -0500

Seen: 476 times

Last updated: Jul 03 '13