[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Ginger-dev-list] [RFC] Networking use case for ginger host management
From: |
Jayavardhan Katta |
Subject: |
[Ginger-dev-list] [RFC] Networking use case for ginger host management |
Date: |
Tue, 6 Oct 2015 19:38:14 +0530 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 |
Hi All,
Currently ginger plugin is dependent on libvirt module for its
networking management operations. This has to be replaced with iproute2
or ifup/ifdown commands or networkmanager.
Based on the investigation, we feel using ifup/ifdown commands and
configuring the ifcfg files in networking path is the better possible
solution.
Reasons:
=======
-->Given that network manager does not exists or we dont want user to
use NM forcefully.
-->ifup/ifdown scripts internally will use
iproute if Network manager is not enabled.
Networkmanager if it is enabled.
-->So rather than we manually execute iproute commands its better to
execute the wrapper scripts ifup/ifdown provided by distros. The input
ifup/ifdown needs is configuring a ifcfg file for an interface.
Networking use case
1)Creation of interface
a)Create ifcfg file under /etc/sysconfig/networkscripts
Sample ex :- Created ifcfg-enccw0.0.3b00. Refer attachment
ifcfg-enccw0.0.3b00.
Here we have to consider architecture specific keys while
defining
the config files.
b)ifup enccw0.0.3b00
2)Deletion of interface
a)ifdown enccw0.0.3b00
b)delete the ifcfg file.
3)Creation of bond
a)Create a ifcfg-bondX file
Refer sample ifcfg-bond8
b)Update the slave cfg files with below parameters
MASTER=bondX
SLAVE=yes
c)ifup bondX
4)Deletion of bond
a)ifdown bondX
b)Remove the entries in the slave
MASTER=bondX
SLAVE=yes
c)delete ifcfg-bondX file
Please let us know your suggestions/feedback with the above approach.
ifcfg-bond8
Description: Text document
ifcfg-enccw0.0.3b00
Description: Text document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Ginger-dev-list] [RFC] Networking use case for ginger host management,
Jayavardhan Katta <=