[VTN-77] Unable to determine actual type of VTN flow match/action via RESTCONF. Created: 17/Jun/15 Updated: 19/Oct/17 Resolved: 18/Jun/15 |
|
| Status: | Resolved |
| Project: | vtn |
| Component/s: | VTN Manager |
| Affects Version/s: | unspecified |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Shigeru Yasuda | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 3789 |
| Description |
|
Some VTN flow data models are defined using YANG choice statement.
Branch name of YANG choice does not appear in XML/JSON serialized data. For example, a data-flow-action list which contains a vtn-pop-vlan-action will be converted to JSON notation like this: "data-flow-action": [ { "order": 0 }], REST client cannot determine the actual type of above action because no type information appears. VTN YANG models defined by choice statement should be modified as follows:
case vtn-pop-vlan-action-case { The name of the container always appears in XML/JSON serialized data. "data-flow-action": [
grouping vtn-icmp-match-fields { leaf icmp-code { type uint8; } } A data-flow-match which contains a vtn-icmp-match will be converted to JSON as follows. "data-flow-match": { , }, REST client can determine ICMP match conditions by "icmp-" prefix in field name. |
| Comments |
| Comment by Shigeru Yasuda [ 17/Jun/15 ] |
| Comment by Hideyuki Tai [ 17/Jun/15 ] |
|
https://git.opendaylight.org/gerrit/22838 (stable/lithium) |