1 # Copyright (c) 2017 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
6 # http://www.apache.org/licenses/LICENSE-2.0
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
15 | Library | resources.libraries.python.honeycomb.DHCP.DHCPRelayKeywords
16 | Library | resources.libraries.python.Dhcp.DhcpProxy
17 | Library | resources.libraries.python.DUTSetup
18 | Documentation | Keywords used to test Honeycomb DHCP features.
21 | Convert data-plane interface to control-plane
22 | | [Documentation] | Unbinds an interface from VPP and binds it to kernel\
23 | | ... | driver specified in topology.
25 | | ... | *Arguments:*
26 | | ... | - node - Information about a DUT node. Type: dictionary
27 | | ... | - bd_name - Name of the interface in topology. Type: string
31 | | ... | \| Convert data-plane interface to control-plane \| ${nodes['DUT1']} \
34 | | [Arguments] | ${node} | ${interface}
35 | | ${new_driver}= | Get Variable Value
36 | | ... | ${node['interfaces']['${interface}']['driver']}
37 | | PCI Driver Unbind | ${node}
38 | | ... | ${node['interfaces']['${interface}']['pci_address']}
39 | | Run Keyword If | '${new_driver}' == 'None'
40 | | ... | PCI Driver Bind | ${node}
41 | | ... | ${node['interfaces']['${interface}']['pci_address']} | virtio-pci
43 | | ... | PCI Driver Bind | ${node}
44 | | ... | ${node['interfaces']['${interface}']['pci_address']} | ${new_driver}