smalenfant commented on issue #6563:
URL: 
https://github.com/apache/trafficcontrol/issues/6563#issuecomment-1335517430

   I have been having similar issues with API 3.0 because it won't return 
ipAddress and ipAddress6 anymore. This is now change with interfaces.
   
   This is quite a breaking change and I think the "main" interfaces should 
still be populated as the existing 2.0 fields.
   
   In API (up to 2.0):
   
   ```
   $ ./toApi.sh /api/2.0/servers?hostName=cdn1cdedge0001 | jq
   {
     "response": [
       {
         "interfaceMtu": 1500,
         "interfaceName": "eth0",
         "ip6Address": "2001:578:30:9101:68:1:14:141/64",
         "ip6Gateway": "2001:578:30:9101::1",
         "ipAddress": "68.1.14.141",
         "ipGateway": "68.1.14.129",
         "ipNetmask": "255.255.255.192",
   ```
   
   After 3.0:
   
   ```
         "interfaces": [
           {
             "ipAddresses": [
               {
                 "address": "68.1.14.141/26",
                 "gateway": "68.1.14.129",
                 "serviceAddress": true
               },
               {
                 "address": "2001:578:30:9101:68:1:14:141/64",
                 "gateway": "2001:578:30:9101::1",
                 "serviceAddress": true
               }
             ],
             "maxBandwidth": null,
             "monitor": true,
             "mtu": 1500,
             "name": "eth0"
           }
         ],
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to