pub fn add_ip_addr_subnet<D: EventDispatcher>(
    ctx: &mut Ctx<D>,
    device: DeviceId,
    addr_sub: AddrSubnetEither,
) -> error::Result<()> {
    map_addr_version!(
        addr_sub: AddrSubnetEither;
        crate::device::add_ip_addr_subnet(ctx, device, addr_sub)
    )
    .map_err(From::from)
}
/// Set the IP address and subnet for a device.
Set the IP address and subnet for a device.
Set the IP address and subnet for a device .
pub fn add_ip_addr_subnet<D: EventDispatcher>(
    ctx: &mut Ctx<D>,
    device: DeviceId,
    addr_sub: AddrSubnetEither,
) -> error::Result<()> {
    map_addr_version!(
        addr_sub: AddrSubnetEither;
        crate::device::add_ip_addr_subnet(ctx, device, addr_sub)
    )
    .map_err(From::from)
}
pub fn add_ip_addr_subnet < D : EventDispatcher > ( ctx : & mut Ctx < D > , device : DeviceId , addr_sub : AddrSubnetEither , ) -> error :: Result < ( ) > { map_addr_version ! ( addr_sub AddrSubnetEither crate device add_ip_addr_subnet ( ctx device addr_sub ) ) . map_err ( From :: from ) }
Set the IP address and subnet for a device.
Set the IP address and subnet for a device .
ctx
&mut Ctx<D>
device
DeviceId
addr_sub
AddrSubnetEither
ctx
&mut Ctx<D>
device
DeviceId
addr_sub
AddrSubnetEither