diff --git a/ncm-network/src/main/perl/nmstate.pm b/ncm-network/src/main/perl/nmstate.pm index 8d65988457..772413382f 100644 --- a/ncm-network/src/main/perl/nmstate.pm +++ b/ncm-network/src/main/perl/nmstate.pm @@ -294,6 +294,7 @@ sub generate_nmstate_config $ifaceconfig->{mtu} = $iface->{mtu} if $iface->{mtu}; $ifaceconfig->{'mac-address'} = $iface->{hwaddr} if $iface->{hwaddr}; + $ifaceconfig->{'profile-name'} = $name; if ($is_eth) { $ifaceconfig->{type} = "ethernet"; if ($is_bond_eth) { @@ -334,6 +335,7 @@ sub generate_nmstate_config # TODO: append alias ip to ip_list as array, providing ips as array of hashref. $ifaceconfig->{ipv4}->{address} = [$ip_list]; + $ifaceconfig->{ipv4}->{dhcp} = $YFALSE; $ifaceconfig->{ipv4}->{enabled} = $YTRUE; } else { # TODO: configure IPV6 enteries diff --git a/ncm-network/src/test/perl/nmstate_simple.t b/ncm-network/src/test/perl/nmstate_simple.t index efe124fdc6..6b62c9a0dc 100644 --- a/ncm-network/src/test/perl/nmstate_simple.t +++ b/ncm-network/src/test/perl/nmstate_simple.t @@ -49,6 +49,7 @@ interfaces: - link-aggregation: port: [] name: eth0 + profile-name: eth0 type: bond EOF