Dependency checking for Northbound API (NEUTRON-158)

[NEUTRON-179] port dependency checking (NeutronPortInterface) Created: 31/Jul/18  Updated: 07/Aug/18

Status: In Review
Project: neutron
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Sub-task Priority: Medium
Reporter: Michael Vorburger Assignee: Vishal Thapar
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Comments   
Comment by Vishal Thapar [ 02/Aug/18 ]

Dependencies in N-ODL:
Create/Update Deps:
def _generate_port_deps(data):
object_ids = set(fixed_ip['subnet_id'] for fixed_ip in data['fixed_ips'])
object_ids = list(object_ids)
object_ids.append(data['network_id'])
qos_policy_id = data.get('qos_policy_id')
if qos_policy_id is not None:
object_ids.append(qos_policy_id)
return object_ids

DeleteDeps:
odl_const.ODL_PORT: (odl_const.ODL_TRUNK,),

NeutronNorthbound model:
https://github.com/opendaylight/neutron/blob/master/model/src/main/yang/neutron-ports.yang

Generated at Wed Feb 07 20:25:46 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.