[tr064] Add support for PPP connections (#9222)

* add PPP external IP
* fix connection status
* fix PPP uptime

Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
This commit is contained in:
J-N-K 2020-12-05 06:44:00 +01:00 committed by GitHub
parent de390b96be
commit b8bc020348
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 2 deletions

View File

@ -96,9 +96,12 @@ This is an optional parameter and multiple values are allowed.
| `tamEnable` | `Switch` | | Enable/Disable the answering machine with the given index. | | `tamEnable` | `Switch` | | Enable/Disable the answering machine with the given index. |
| `tamNewMessages` | `Number` | | The number of new messages of the given answering machine. | | `tamNewMessages` | `Number` | | The number of new messages of the given answering machine. |
| `uptime` | `Number:Time` | | Uptime | | `uptime` | `Number:Time` | | Uptime |
| `pppUptime` | `Number:Time` | | Uptime (if using PPP) |
| `wanAccessType` | `String` | x | Access Type | | `wanAccessType` | `String` | x | Access Type |
| `wanConnectionStatus` | `String` | | Connection Status | | `wanConnectionStatus` | `String` | | Connection Status |
| `wanPppConnectionStatus` | `String` | | Connection Status (if using PPP) |
| `wanIpAddress` | `String` | x | WAN IP Address | | `wanIpAddress` | `String` | x | WAN IP Address |
| `wanPppIpAddress` | `String` | x | WAN IP Address (if using PPP) |
| `wanMaxDownstreamRate` | `Number:DataTransferRate` | x | Max. Downstream Rate | | `wanMaxDownstreamRate` | `Number:DataTransferRate` | x | Max. Downstream Rate |
| `wanMaxUpstreamRate` | `Number:DataTransferRate` | x | Max. Upstream Rate | | `wanMaxUpstreamRate` | `Number:DataTransferRate` | x | Max. Upstream Rate |
| `wanPhysicalLinkStatus` | `String` | x | Link Status | | `wanPhysicalLinkStatus` | `String` | x | Link Status |

View File

@ -244,18 +244,34 @@
serviceId="urn:WANIPConnection-com:serviceId:WANIPConnection1"/> serviceId="urn:WANIPConnection-com:serviceId:WANIPConnection1"/>
<getAction name="GetInfo" argument="NewExternalIPAddress"/> <getAction name="GetInfo" argument="NewExternalIPAddress"/>
</channel> </channel>
<channel name="wanPppIpAddress" label="WAN PPP-IP Address">
<item type="String"/>
<service deviceType="urn:dslforum-org:device:WANConnectionDevice:1"
serviceId="urn:WANPPPConnection-com:serviceId:WANPPPConnection1"/>
<getAction name="GetInfo" argument="NewExternalIPAddress"/>
</channel>
<channel name="wanConnectionStatus" label="Connection Status"> <channel name="wanConnectionStatus" label="Connection Status">
<item type="String"/> <item type="String"/>
<service deviceType="urn:dslforum-org:device:WANConnectionDevice:1" <service deviceType="urn:dslforum-org:device:WANConnectionDevice:1"
serviceId="urn:WANIPConnection-com:serviceId:WANIPConnection1"/> serviceId="urn:WANIPConnection-com:serviceId:WANIPConnection1"/>
<getAction name="GetInfo" argument="NewConnectionStatus"/> <getAction name="GetInfo" argument="NewConnectionStatus"/>
</channel> </channel>
<channel name="wanPppConnectionStatus" label="Connection Status">
<item type="String"/>
<service deviceType="urn:dslforum-org:device:WANConnectionDevice:1"
serviceId="urn:WANPPPConnection-com:serviceId:WANPPPConnection1"/>
<getAction name="GetInfo" argument="NewConnectionStatus"/>
</channel>
<channel name="uptime" label="Uptime"> <channel name="uptime" label="Uptime">
<item type="Number:Time" unit="s" statePattern="%d s"/> <item type="Number:Time" unit="s" statePattern="%d s"/>
<service deviceType="urn:dslforum-org:device:WANConnectionDevice:1" <service deviceType="urn:dslforum-org:device:WANConnectionDevice:1"
serviceId="urn:WANIPConnection-com:serviceId:WANIPConnection1"/> serviceId="urn:WANIPConnection-com:serviceId:WANIPConnection1"/>
<getAction name="GetInfo" argument="NewUptime"/> <getAction name="GetInfo" argument="NewUptime"/>
</channel> </channel>
<channel name="pppUptime" label="Uptime">
<item type="Number:Time" unit="s" statePattern="%d s"/>
<service deviceType="urn:dslforum-org:device:WANConnectionDevice:1"
serviceId="urn:WANPPPConnection-com:serviceId:WANPPPConnection1"/>
<getAction name="GetInfo" argument="NewUptime"/>
</channel>
</channels> </channels>