# 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 ]]>]]> ]]>]]> none 4fe335c8-6fdc-4654-b12c-d256e9b39229 neutron port enabled client /tmp/socket_4fe335c8-6fdc-4654-b12c-d256e9b39229 x:vhost-user true ]]>]]> ]]>]]> ]]>]]> ]]>]]> none 4fe335c8-6fdc-4654-b12c-d256e9b39229 ]]>]]> ]]>]]> ]]>]]> ]]>]]> none 4fe335c8-6fdc-4654-b12c-d256e9b39229 neutron port enabled client /tmp/socket_4fe335c8-6fdc-4654-b12c-d256e9b39229 x:vhost-user true ]]>]]> ]]>]]> ]]>]]> ]]>]]> none d7611278-88ff-40e1-81e2-602e94e96fc7 neutron port enabled client /tmp/socket_d7611278-88ff-40e1-81e2-602e94e96fc7 x:vhost-user true ]]>]]> ]]>]]> ]]>]]> ]]>]]> none 1f96a665-4351-4984-b1a8-dc6f54683123 neutron port enabled client /tmp/socket_1f96a665-4351-4984-b1a8-dc6f54683123 x:vhost-user true ]]>]]> ]]>]]> ]]>]]> ]]>]]> none e86740a2-042c-4e64-a43b-cc224e0d5240 true true true true false ]]>]]> ]]>]]> ]]>]]> ]]>]]> ]]>]]>""" # Test data for issue: https://jira.fd.io/browse/HONEYCOMB-255 # Reverting transaction fails with "missing writer" trigger_revert1 = u""" vxlan3 v3po:vxlan-tunnel true 192.168.1.6 192.168.1.7 9 0 ]]>]]> vxlan4 v3po:vxlan-tunnel true 192.168.1.6 192.168.1.7 9 0 ]]>]]> ]]>]]>""" # Test data for issue: https://jira.fd.io/browse/HONEYCOMB-255, part 2 # Reverting transaction fails with "transaction has been closed" trigger_revert2 = u""" tap v3po:tap true tap ]]>]]> tap2 v3po:tap true tap ]]>]]> ]]>]]>"""