Freeside:3:Documentation:Developer/FS/svc IP Mixin
From Freeside
- addr_block
- Returns the address block assigned to this service.
- router
- Returns the router assigned to this service, if there is one.
- NetAddr
- Returns the address as a NetAddr::IP object. Use $svc-NetAddr->addr> to put it into canonical string form.
- ip_addr
- Wrapper for set/get on the IP address field.
- allowed_routers
- Returns a list of FS::router objects allowed on this service.
- svc_ip_check
- Wrapper for ip_check which also checks the validity of the router.
- attached_router
- Returns the FS::router attached via this service (as opposed to the one this service is connected through), that is, a router whose "svcnum" field equals this service's primary key.
- If the 'router_routernum' pseudo-field is set, returns that router instead.
- attached_block
- Returns the address block (FS::addr_block) assigned to the attached_router, if there is one.
- If the 'router_blocknum' pseudo-field is set, returns that block instead.
- radius_check
- Returns nothing.
- radius_reply
- Returns RADIUS reply items that are relevant across all exports and necessary for the IP address configuration of the service. Currently, that means "Framed-Route" if there's an attached router.
POD ERRORS
Hey! The above document had some coding errors, which are explained below:
- Around line 8:
- '=item' outside of any '=over'