-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stateful NFV Packet Filtering #403
Conversation
@@ -59,8 +59,8 @@ function create_config (input_dir, output_dir, hostname) | |||
{ vlan = vif_details.zone_vlan, | |||
mac_address = port.mac_address, | |||
port_id = port.id, | |||
ingress_filter = filter(port, secbindings, secrules, 'ingress'), | |||
egress_filter = filter(port, secbindings, secrules, 'egress'), | |||
ingress_filter = filter(port, secbindings, secrules, 'ingress', vif_details.packetfilter), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The packetfilter
setting should be in profile
rather than vif_details
.
profile
contains configuration supplied by the user and vif_details
contains information determined by the OpenStack code. (This is OpenStack Neutron semantics and not some funny invention of mine :-))
@N-Nikolaev How do these changes look to you? |
ingress_filter = filter(port, secbindings, secrules, 'ingress'), | ||
egress_filter = filter(port, secbindings, secrules, 'egress'), | ||
ingress_filter = filter(port, secbindings, secrules, 'ingress', vif_details.packetfilter), | ||
egress_filter = filter(port, secbindings, secrules, 'egress', vif_details.packetfilter), | ||
gbps = vif_details.zone_gbps, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The packetfilter setting should be in profile rather than vif_details.
@lukego This line looks a bit fishy too now that I think about it. We never use the gbps
field in nfvconfig
... (and some sort of tx_police_gbps
is missing too).
824188a
to
13930f4
Compare
`profile.packetfilter' is "stateless".
rules are defined.
format (cce8b3).
`secbindings[port.id]' is a true value.
Resolved simple conflict in neutron2snabb where lines were modified in the PR that were adjacent to a removed line on master. Conflicts: src/program/snabbnfv/neutron2snabb/neutron2snabb.lua
snabbvmx query to xml
Implement NFV packet filtering as described in Neutron API Extensions/Stateless Packet Filtering.
E.g. if
vif_details
containspacketfilter="stateless"
do stateless packet filtering. Otherwise do standard Neutron packet filtering.