Hi All,
I am looking inside /test/interface/ at ethernet-dhcp.xml and
ethernet-static.xml:
[1]ethernet-dhcp.xml
<interface type="ethernet" name="eth0">
<start mode="none"/>
<mac address="aa:bb:cc:dd:ee:ff"/>
<mtu size="1492"/>
<protocol family="ipv4">
<dhcp/><!-- peerdns="no"/>-->
</protocol>
</interface>
[2]ethernet-static.xml
<interface type="ethernet" name="eth1">
<start mode="onboot"/>
<protocol family="ipv4">
<ip address="192.168.0.5" prefix="24"/>
<route gateway="192.168.0.1"/>
</protocol>
</interface>
What I understand is, when "dumpxml em0" is called, if em0 is an ethernet
interface whose address has been provided by dhcp, the o/p *must* look like
[1] and if address is statically allocated, o/p *must* look like [2].
Please correct me if that is not accurate.
I want to understand rationale behind this format. How are these decided.
For example, why "mac address" and "mtu size" do not matter in [2]?
Thanks for all the work and help,
Hiren