# Copyright (c) 2016 Cisco and/or its affiliates.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Contains RPC sequences to trigger specific issues through Netconf."""
# Test data for issue: https://jira.fd.io/browse/HONEYCOMB-105
# Creating and removing interfaces may result in duplicated interface indices.
trigger_105 = u"""
4fe335c8-6fdc-4654-b12c-d256e9b39229
]]>]]>
]]>]]>
none4fe335c8-6fdc-4654-b12c-d256e9b39229neutron portenabledclient/tmp/socket_4fe335c8-6fdc-4654-b12c-d256e9b39229x:vhost-usertrue
]]>]]>
]]>]]>
]]>]]>
]]>]]>
none4fe335c8-6fdc-4654-b12c-d256e9b39229
]]>]]>
]]>]]>
]]>]]>
]]>]]>
none4fe335c8-6fdc-4654-b12c-d256e9b39229neutron portenabledclient/tmp/socket_4fe335c8-6fdc-4654-b12c-d256e9b39229x:vhost-usertrue
]]>]]>
]]>]]>
]]>]]>
]]>]]>
noned7611278-88ff-40e1-81e2-602e94e96fc7neutron portenabledclient/tmp/socket_d7611278-88ff-40e1-81e2-602e94e96fc7x:vhost-usertrue
]]>]]>
]]>]]>
]]>]]>
]]>]]>
none1f96a665-4351-4984-b1a8-dc6f54683123neutron portenabledclient/tmp/socket_1f96a665-4351-4984-b1a8-dc6f54683123x:vhost-usertrue
]]>]]>
]]>]]>
]]>]]>
]]>]]>
nonee86740a2-042c-4e64-a43b-cc224e0d5240truetruetruetruefalse
]]>]]>
]]>]]>
]]>]]>
]]>]]>
]]>]]>"""
# Test data for issue: https://jira.fd.io/browse/HONEYCOMB-255
# Reverting transaction fails with "missing writer"
trigger_revert1 = u"""
vxlan3
v3po:vxlan-tunneltrue192.168.1.6192.168.1.790
]]>]]>
vxlan4
v3po:vxlan-tunneltrue192.168.1.6192.168.1.790
]]>]]>
]]>]]>"""
# Test data for issue: https://jira.fd.io/browse/HONEYCOMB-255, part 2
# Reverting transaction fails with "transaction has been closed"
trigger_revert2 = u"""
tapv3po:taptruetap
]]>]]>
tap2v3po:taptruetap
]]>]]>
]]>]]>"""