Definition at line 149 of file ipaddress-gw.h.
typedef OSB_LIB::ResourceList<OSB_LIB::IpGroup> OSB_DB::IpGroupGw::IpGroupList [private] |
typedef OSB_LIB::Id<OSB_LIB::Network> OSB_DB::IpGroupGw::NwOid [private] |
void OSB_DB::IpGroupGw::fetch | ( | const Session & | session, | |
IpGroupList & | dest, | |||
const NwOid & | nwId, | |||
bool | availOnly | |||
) |
Read IP group resources from database.
session | Database session to use. | |
dest | IP group resource list to populate. | |
nwId | Id of the network id for which to read the IP group resources. | |
availOnly | Flag if only available IP group resources should be read. |
OsbException | in case of database error. |
std::pair<bool, bool> OSB_DB::IpGroupGw::getCurIp4Assignments | ( | const Session & | session, | |
const OSB_LIB::Ip4Address::Oid & | ip4Id | |||
) | const [private] |
Determine if an IP4 address is currently assigned.
session | Database session to use. | |
ip4Id | IP4 address to check. |
bool OSB_DB::IpGroupGw::insert | ( | const Session & | session, | |
const OSB_LIB::IpGroup & | ipg | |||
) | const [private] |
Insert an IP group resource into the database.
bool OSB_DB::IpGroupGw::insIp4 | ( | const Session & | session, | |
const OSB_LIB::IpGroup::Oid & | ipgId, | |||
const OSB_LIB::IpGroup::AssignedIp4 & | assignedIp4 | |||
) | const [private] |
Assign an IP4 to an IP group.
session | Database session to use. | |
ipgId | IP group id. | |
assignedIp4 | IP4 to be assigned. |
OsbException | if the IP4 is already been assigned to an IP group. |
bool OSB_DB::IpGroupGw::read | ( | const Session & | session, | |
OSB_LIB::IpGroup & | ipg | |||
) | const [private] |
Read an IP group resource by its id.
bool OSB_DB::IpGroupGw::remove | ( | const Session & | session, | |
const OSB_LIB::IpGroup & | ipg | |||
) | const [private] |
Delete an IP group resource from the database.
bool OSB_DB::IpGroupGw::update | ( | const Session & | session, | |
const OSB_LIB::IpGroup & | ipg | |||
) | const [private] |
Update an IP group resource in the database.
bool OSB_DB::IpGroupGw::updIp4 | ( | const Session & | session, | |
const OSB_LIB::IpGroup::Oid & | ipgId, | |||
const OSB_LIB::Ip4Address::Oid & | ip4Id, | |||
OSB_LIB::IpGroup::Direction | dir | |||
) | const [private] |
Set the deassign date of an IP4 to an IP group.
session | Database session to use. | |
ipgId | IP group id. | |
ip4Id | IP4 id. | |
dir | Direction of the assignment. |
OsbException | if the IP4 is not assigned to the IP group. |
friend class OSB_LIB::IpGroup [friend] |
Allow IP group resource to calls its supporting functions.
Definition at line 151 of file ipaddress-gw.h.