Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 1 | // SPDX-FileCopyrightText: 2021 Open Networking Foundation |
| 2 | // |
| 3 | // SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 4 | |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 5 | submodule onf-application { |
| 6 | belongs-to onf-enterprise { prefix ent; } |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 7 | |
| 8 | import ietf-inet-types{ prefix ietf; } |
| 9 | import ietf-yang-types{ prefix yg; } |
| 10 | import onf-aether-types{ prefix at; } |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 11 | |
| 12 | include onf-traffic-class; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 13 | |
| 14 | organization "Open Networking Foundation."; |
| 15 | contact "Scott Baker"; |
| 16 | description |
| 17 | "An Aether Application is an application that devices may |
| 18 | connect to. Includes a set of endpoints where services are |
| 19 | provided."; |
| 20 | |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 21 | revision "2022-01-14" { |
| 22 | description "Refactored as submodule"; |
| 23 | reference "RFC 6020"; |
| 24 | } |
| 25 | |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 26 | revision "2021-09-10" { |
| 27 | description "Aether Application."; |
| 28 | reference "RFC 6087"; |
| 29 | } |
| 30 | |
| 31 | typedef application-id { |
| 32 | type yg:yang-identifier { |
| 33 | length 1..32; |
| 34 | } |
| 35 | description "The typedef for application-id"; |
| 36 | } |
| 37 | |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 38 | grouping application { |
| 39 | description "The application grouping"; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 40 | |
| 41 | list application { |
Sean Condon | 9f7966e | 2022-02-03 10:55:06 +0000 | [diff] [blame] | 42 | key "application-id"; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 43 | description |
| 44 | "List of applications"; |
| 45 | |
Sean Condon | 9f7966e | 2022-02-03 10:55:06 +0000 | [diff] [blame] | 46 | leaf application-id { |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 47 | type application-id; |
| 48 | description "ID for this application."; |
| 49 | } |
| 50 | |
Sean Condon | 9f7966e | 2022-02-03 10:55:06 +0000 | [diff] [blame] | 51 | uses at:desc-display-name; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 52 | |
| 53 | leaf address { |
Scott Baker | ee0a68f | 2022-02-07 16:35:43 -0800 | [diff] [blame] | 54 | type at:host-or-network; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 55 | mandatory true; |
| 56 | description |
| 57 | "Address of this application. Either a hostname, an IP, or a subnet."; |
| 58 | } |
| 59 | |
| 60 | list endpoint { |
| 61 | key "endpoint-id"; |
| 62 | leaf endpoint-id { |
| 63 | type yg:yang-identifier; |
| 64 | description |
| 65 | "Id of this endpoint"; |
| 66 | } |
Sean Condon | 9f7966e | 2022-02-03 10:55:06 +0000 | [diff] [blame] | 67 | |
| 68 | uses at:desc-display-name; |
| 69 | |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 70 | leaf port-start { |
| 71 | type ietf:port-number; |
| 72 | description |
| 73 | "First port in range"; |
| 74 | } |
| 75 | leaf port-end { |
| 76 | type ietf:port-number; |
| 77 | description |
| 78 | "Last port in range"; |
| 79 | } |
| 80 | leaf protocol { |
| 81 | type at:protocol; |
| 82 | description |
| 83 | "Protocol of this endpoint"; |
| 84 | } |
| 85 | container mbr { |
| 86 | description "Maximum bitrate"; |
| 87 | leaf uplink { |
| 88 | type at:bitrate; |
| 89 | units bps; |
| 90 | description "Per-Device per-Application MBR uplink data rate in bps"; |
| 91 | } |
| 92 | |
| 93 | leaf downlink { |
| 94 | type at:bitrate; |
| 95 | units bps; |
| 96 | description "Per-Device per application MBR downlink data rate in bps"; |
| 97 | } |
| 98 | } |
| 99 | leaf traffic-class { |
| 100 | type leafref { |
Sean Condon | 9f7966e | 2022-02-03 10:55:06 +0000 | [diff] [blame] | 101 | path "../../../traffic-class/traffic-class-id"; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 102 | } |
| 103 | description |
| 104 | "Link to traffic class"; |
| 105 | } |
Sean Condon | 9f7966e | 2022-02-03 10:55:06 +0000 | [diff] [blame] | 106 | |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 107 | description "list for endpoint"; |
| 108 | } |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 109 | } |
| 110 | } |
| 111 | } |