Fix FlowClassifier.logicalDestinationPort

Change-Id: Idb07b7b86fdfb1690605492164d1df8dc76f742f
Closes-Bug: #1608468
This commit is contained in:
Krzysztof Szukiełojć 2016-08-01 12:12:06 +02:00
parent 8d97e3c7ca
commit 30787e4fcb
1 changed files with 7 additions and 2 deletions

View File

@ -58,7 +58,7 @@ Properties:
Contract: $.class(NeutronPort)
logicalDestinationPort:
Contract: $.class(NeutronPort).notNull()
Contract: $.class(NeutronPort)
Methods:
.init:
@ -77,6 +77,11 @@ Methods:
Then:
- $sourcePortId: $.logicalSourcePort.openstackId
- $destinationPortId: null
- If: $.logicalDestinationPort != null
Then:
- $destinationPortId: $.logicalDestinationPort.openstackId
- $data: $.sfcClient.createFlowClassifier(
name => $.name, description => $.description,
ethertype => $.ethertype, protocol => $.protocol,
@ -87,7 +92,7 @@ Methods:
source_ip_prefix => $.sourceIpPrefix,
destination_ip_prefix => $.destinationIpPrefix,
logical_source_port => $sourcePortId,
logical_destination_port => $.logicalDestinationPort.openstackId)
logical_destination_port => $destinationPortId)
- $.id: $data.id
- $.setAttr(deployed, true)