Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 612526 Details for
Bug 857160
Unable to create bonded interface for the rhevm network
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Python code snippet for bond creation
sdk-create-bond-code.txt (text/plain), 1.41 KB, created by
Marcelo Giles
on 2012-09-13 17:25:21 UTC
(
hide
)
Description:
Python code snippet for bond creation
Filename:
MIME Type:
Creator:
Marcelo Giles
Created:
2012-09-13 17:25:21 UTC
Size:
1.41 KB
patch
obsolete
># Create bond0 using eth0 and eth1 >net_rhevm = cluster_id.networks.get(name = 'rhevm') >net_rhevm_bond = params.Bonding(slaves = params.Slaves(host_nic = [params.HostNIC(name = 'eth0'), params.HostNIC(name = 'eth1')])) > >host.nics.add(params.HostNIC(name = 'bond0', network = net_rhevm, bonding = net_rhevm_bond)) > ># Configure bond0 >bond0 = host.nics.get(name = 'bond0') >bond0.ip.address = '10.110.22.1' >bond0.ip.netmask = '255.255.254.0' >bond0.boot_protocol = 'static' >bond0.update() > ># Create bond1 using eth2 and eth3 >net_stor = cluster_id.networks.get(name = 'storage') >net_stor_bond = params.Bonding(slaves = params.Slaves(host_nic = [params.HostNIC(name = 'eth2'), params.HostNIC(name = 'eth3')])) > >host.nics.add(params.HostNIC(name = 'bond1', network = net_stor, bonding = net_stor_bond)) > ># Configure bond1 >bond1 = host.nics.get(name = 'bond1') >bond1.ip.address = '10.110.22.2' >bond1.ip.netmask = '255.255.254.0' >bond1.boot_protocol = 'static' >bond1.update() > ># Create bond2 using eth4 and eth5 >net_data = cluster_id.networks.get(name = 'data') >net_data_bond = params.Bonding(slaves = params.Slaves(host_nic = [params.HostNIC(name = 'eth4'), params.HostNIC(name = 'eth5')])) > >host.nics.add(params.HostNIC(name = 'bond1', network = net_data, bonding = net_data_bond)) > ># Configure bond2 >bond2 = host.nics.get(name = 'bond2') >bond2.ip.address = '10.110.22.3' >bond2.ip.netmask = '255.255.254.0' >bond2.boot_protocol = 'static' >bond2.update() >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 857160
: 612526 |
612527
|
614564
|
614565
|
614571