openconfig / public

Repository for publishing OpenConfig models, documentation, and other material for the community.
Apache License 2.0
876 stars 643 forks source link

Add GEO location information to global system config #386

Open jmenok opened 3 years ago

jmenok commented 3 years ago

GEO location information of a system should be added to the global system config.

YANG definition proposal:

container geoLocation {
      description
        "GPS location and elevation of the system";
      leaf latitude {
        type decimal64 {
          fraction-digits 16;
          range "-90 .. 90";
        }
        description
          "[From wikipedia] Latitude is an angle (defined below)
           which ranges from 0 at the Equator to 90 (North or
           South) at the poles";
      }
      leaf longitude {
        type decimal64 {
          fraction-digits 16;
          range "-180 .. 180";
        }
        description
          "[From wikipedia] The longitude is measured as the
           angle east or west from the Prime Meridian, ranging
           from 0 at the Prime Meridian to +180 eastward and
           -180 westward.";
      }
      leaf elevation {
        type int16 {
          range "-11000 .. 8848";
        }
        units m;        
        description
          "The elevation of the geographic system location is its height above or below the Earth's sea level (in meters)";
      }
}

Reference: https://github.com/openconfig/public/blob/8062b1b45208b952598ad3c3aa9e5ebc4f03cc67/release/models/system/openconfig-system.yang#L206

aashaikh commented 3 years ago

Can you please provide some pointers to existing platforms that support this configuration data?

github-actions[bot] commented 1 month ago

This issue is stale because it has been open 180 days with no activity. If you wish to keep this issue active, please remove the stale label or add a comment, otherwise will be closed in 14 days.