Interface ExampleDataCenterData

All Superinterfaces:
org.opendaylight.yangtools.yang.binding.DataRoot

@Generated("mdsal-binding-generator") public interface ExampleDataCenterData extends org.opendaylight.yangtools.yang.binding.DataRoot
Example of yang model for data center Copyright (c) 2021 PANTHEON.tech s.r.o. 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 https://www.eclipse.org/legal/epl-v10.html

This class represents the following YANG schema fragment defined in module example-data-center

 module example-data-center {
   yang-version 1.1;
   namespace urn:example:data-center;
   prefix sfarm;
   revision 2018-08-07;
   list server {
     key name;
     leaf name {
       type string;
     }
     action reset {
       input input {
         leaf reset-at {
           type string;
         }
       }
       output output {
         leaf reset-finished-at {
           type string;
         }
       }
     }
   }
   container device {
     action start {
       input input {
         leaf start-at {
           type string;
         }
       }
       output output {
         leaf start-finished-at {
           type string;
         }
       }
     }
   }
   container box-out {
     container box-in {
       action open;
     }
   }
 }
 
  • Method Details

    • getServer

      @Nullable Map<ServerKey,Server> getServer()
      Return server, or null if it is not present.
      Returns:
      Map<ServerKey, Server> server, or null if it is not present.
    • nonnullServer

      default @NonNull Map<ServerKey,Server> nonnullServer()
      Return server, or an empty list if it is not present.
      Returns:
      Map<ServerKey, Server> server, or an empty list if it is not present.
    • getDevice

      Device getDevice()
      Return device, or null if it is not present.
      Returns:
      Device device, or null if it is not present.
    • getBoxOut

      BoxOut getBoxOut()
      Return boxOut, or null if it is not present.
      Returns:
      BoxOut boxOut, or null if it is not present.