From 775697a736bf9c6df6a3327de83fe7b9f3d630df Mon Sep 17 00:00:00 2001 From: Abdul Karim Date: Fri, 15 Sep 2023 20:15:49 +0100 Subject: [PATCH] ncm-network: nmstate: add mac-address to nmstate config setup mac-address for interface. --- ncm-network/src/main/perl/nmstate.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/ncm-network/src/main/perl/nmstate.pm b/ncm-network/src/main/perl/nmstate.pm index 3a1bc3b48f..029877b509 100644 --- a/ncm-network/src/main/perl/nmstate.pm +++ b/ncm-network/src/main/perl/nmstate.pm @@ -293,6 +293,7 @@ sub generate_nmstate_config my $ifaceconfig->{name} = $name; $ifaceconfig->{mtu} = $iface->{mtu} if $iface->{mtu}; + $ifaceconfig->{'mac-address'} = $iface->{hwaddr} if $iface->{hwaddr}; if ($is_eth) { $ifaceconfig->{type} = "ethernet"; if ($is_bond_eth) {