For nested cases, nested host can inherit its host's property for
dhcp watch setup and ether_prefix property setup.
Signed-off-by: Robert Ho <robert.hu@intel.com>
Tested-by: Robert Ho <robert.hu@intel.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
---
v15: New patch
sub dhcp_watch_setup ($$) {
my ($ho,$gho) = @_;
- my $meth = get_host_property($ho,'dhcp-watch-method',undef);
+ my $meth = get_target_property($ho,'dhcp-watch-method',undef);
$gho->{DhcpWatch} = get_host_method_object($ho, 'DhcpWatch', $meth);
}
sub ether_prefix($) {
my ($ho) = @_;
- my $prefix = get_host_property($ho, 'gen-ether-prefix-base');
+ my $prefix = get_target_property($ho, 'gen-ether-prefix-base');
$prefix =~ m/^(\w+:\w+):(\w+):(\w+)$/ or die "$prefix ?";
my $lhs = $1;
my $pv = (hex($2)<<8) | (hex($3));