submodule iana-geo-uri-type {
belongs-to "ietf-location" {
prefix loc;
} import ietf-yang-types {
prefix yang;
} organization "IANA";
contact
" Internet Assigned Numbers Authority Postal: ICANN
4676 Admiralty Way, Suite 330
Marina del Rey, CA 90292 Tel: +1 310 823 9358
E-Mail: iana&iana.org";
description
"This YANG module defines the iana-geo-uri-type typedef,
which contains YANG definitions for IANA-registered geo uri. This YANG module is maintained by IANA, serializes the existing
'geo' URI into YANG format, and reflects the 'geo URI
Parameters' registry and 'geo URI crs Parameter Values'
sub-registry. The latest revision of this YANG module can be obtained from
the IANA web site. Requests for new values should be made to IANA via
email (iana&iana.org).
Copyright (c) 2014 IETF Trust and the persons identified as
authors of the code. All rights reserved. Redistribution and use in source and binary forms, with or
without modification, is permitted pursuant to, and subject
to the license terms contained in, the Simplified BSD License
set forth in Section 4.c of the IETF Trust's Legal Provisions
Relating to IETF Documents
(http: description
"Initial revision.";
} typedef geo-uri {
type yang:uri {
pattern
'geo:'
+ '-?0*(90|(([1-8][0-9]|[0-9])(.[0-9]*)?))'
+ ',-?0*(180|((1[0-7][0-9]|[1-9][0-9]|[0-9])(.[0-9]*)?))'
+ '(,-?[0-9]+(.[0-9]*)?)?'
+ '(;crs=(wgs84|[-0-9a-zA-Z]+))?'
+ '(;u=[0-9]+(.[0-9]*)?)?'
+ '(;[-da-zA-Z]+'
+ '(=(([-_.!~*()[]:&+$da-zA-Z]*)(%[da-fA-F]{2})*)*)?)*';
}
description
"The geo-uri type reprents a Uniform Resource Identifier for
Geographic Locations ('geo' URI) as defined by RFC 5870.";
reference
"RFC 5870: A Uniform Resource Identifier for Geographic
Locations";
}
}