[cli] output service ID when listing services in network data (#10408)

This commit is contained in:
Abtin Keshavarzian
2024-06-20 20:12:16 -07:00
committed by GitHub
parent 387831b697
commit 1b87190509
2 changed files with 7 additions and 5 deletions
+3 -2
View File
@@ -374,6 +374,7 @@ Service entries are listed under `Services` header:
- Flags
- s: Stable flag
- RLOC16 of devices which added the service entry
- Service ID
6LoWPAN Context IDs are listed under `Contexts` header:
@@ -400,7 +401,7 @@ Routes:
fd00:1234:0:0::/64 s med a000
fd00:4567:0:0::/64 s med 8000
Services:
44970 5d fddead00beef00007bad0069ce45948504d2 s a000
44970 5d fddead00beef00007bad0069ce45948504d2 s a000 0
Contexts:
fd00:dead:beef:cafe::/64 1 c
Commissioning:
@@ -417,7 +418,7 @@ fd00:dead:beef:cafe::/64 paros med a000
Routes:
fd00:1234:0:0::/64 s med a000
Services:
44970 5d fddead00beef00007bad0069ce45948504d2 s a000
44970 5d fddead00beef00007bad0069ce45948504d2 s a000 0
Done
```
+4 -3
View File
@@ -170,7 +170,7 @@ void NetworkData::OutputService(const otServiceConfig &aConfig)
OutputFormat(" s");
}
OutputLine(" %04x", aConfig.mServerConfig.mRloc16);
OutputLine(" %04x %u", aConfig.mServerConfig.mRloc16, aConfig.mServiceId);
}
/**
@@ -713,8 +713,8 @@ exit:
* Routes:
* fd49:7770:7fc5:0::/64 s med 4000
* Services:
* 44970 5d c000 s 4000
* 44970 01 9a04b000000e10 s 4000
* 44970 5d c000 s 4000 0
* 44970 01 9a04b000000e10 s 4000 1
* Contexts:
* fd00:dead:beef:cafe::/64 1 c
* Commissioning:
@@ -771,6 +771,7 @@ exit:
* * Flags
* * s: Stable flag
* * RLOC16 of devices which added the service entry
* * Service ID
* @par
* 6LoWPAN Context IDs are listed under `Contexts` header:
* * The prefix