From b28c77c999a1164742686b3a2e73220da2271562 Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Sat, 4 Jan 2020 09:37:03 +0100 Subject: [PATCH] Fix YANG file formatting in concepts We have mis-indented models here, making them hard to read. Fix indentation. Change-Id: I80aa153e419292a24379f383d36c15e1fad5716e Signed-off-by: Robert Varga --- concepts/src/main/yang/iana.yang | 35 +++++++++++++------------- concepts/src/main/yang/ieee754.yang | 39 ++++++++++++++--------------- concepts/src/main/yang/rfc2385.yang | 2 -- 3 files changed, 36 insertions(+), 40 deletions(-) diff --git a/concepts/src/main/yang/iana.yang b/concepts/src/main/yang/iana.yang index fd7423c6b4..f140b81486 100644 --- a/concepts/src/main/yang/iana.yang +++ b/concepts/src/main/yang/iana.yang @@ -1,27 +1,26 @@ module iana { - yang-version 1; - namespace "urn:opendaylight:params:xml:ns:yang:iana"; - prefix "iana"; + yang-version 1; + namespace "urn:opendaylight:params:xml:ns:yang:iana"; + prefix "iana"; - organization "Cisco Systems, Inc."; - contact "Robert Varga "; + organization "Cisco Systems, Inc."; + contact "Robert Varga "; - description - "This module contains the definition of types related to - Internet Assigned Numbers Authority. + description + "This module contains the definition of types related to + Internet Assigned Numbers Authority. - Copyright (c)2013 Cisco Systems, Inc. All rights reserved. + Copyright (c)2013 Cisco Systems, Inc. All rights reserved. - This program and the accompanying materials are made available - under the terms of the Eclipse Public License v1.0 which - accompanies this distribution, and is available at - http://www.eclipse.org/legal/epl-v10.html"; + This program and the accompanying materials are made available + under the terms of the Eclipse Public License v1.0 which + accompanies this distribution, and is available at + http://www.eclipse.org/legal/epl-v10.html"; - revision "2013-08-16" { - description - "Initial revision."; - reference "https://www.iana.org/"; - } + revision "2013-08-16" { + description "Initial revision."; + reference "https://www.iana.org/"; + } typedef enterprise-number { description "Private enterprise number."; diff --git a/concepts/src/main/yang/ieee754.yang b/concepts/src/main/yang/ieee754.yang index c64c84a1e8..92cac8a3f3 100644 --- a/concepts/src/main/yang/ieee754.yang +++ b/concepts/src/main/yang/ieee754.yang @@ -1,40 +1,39 @@ module ieee754 { - yang-version 1; - namespace "urn:opendaylight:params:xml:ns:yang:ieee754"; - prefix "ieee754"; + yang-version 1; + namespace "urn:opendaylight:params:xml:ns:yang:ieee754"; + prefix "ieee754"; - organization "Cisco Systems, Inc."; - contact "Robert Varga "; + organization "Cisco Systems, Inc."; + contact "Robert Varga "; - description - "This module contains the definition of basic float types. + description + "This module contains the definition of basic float types. - Copyright (c)2013 Cisco Systems, Inc. All rights reserved. + Copyright (c)2013 Cisco Systems, Inc. All rights reserved. - This program and the accompanying materials are made available - under the terms of the Eclipse Public License v1.0 which - accompanies this distribution, and is available at - http://www.eclipse.org/legal/epl-v10.html"; + This program and the accompanying materials are made available + under the terms of the Eclipse Public License v1.0 which + accompanies this distribution, and is available at + http://www.eclipse.org/legal/epl-v10.html"; - revision "2013-08-19" { - description - "Initial revision."; - reference "IEEE 754-2008"; - } + revision "2013-08-19" { + description "Initial revision."; + reference "IEEE 754-2008"; + } - typedef float32 { + typedef float32 { type binary { length 4; } } - typedef float64 { + typedef float64 { type binary { length 8; } } - typedef float128 { + typedef float128 { type binary { length 16; } diff --git a/concepts/src/main/yang/rfc2385.yang b/concepts/src/main/yang/rfc2385.yang index 9912144e69..eb00969e69 100644 --- a/concepts/src/main/yang/rfc2385.yang +++ b/concepts/src/main/yang/rfc2385.yang @@ -24,12 +24,10 @@ module rfc2385 { "Initial revision"; } - typedef rfc2385-key { reference "https://tools.ietf.org/html/rfc2385#section-4.5"; type string { length 1..80; } } - } -- 2.36.6