flag no-struct

Mode: Configuration Mode

Description:

The no-struct flag dictate that the compiler not constructing C structures to represent the configuraiton object for which the flag is defined. If the attributes of a configuration object are defined in various files across multiple packages, the compiler cannot accurately create the corresponding C structures. The no-struct flag prevents it from even attempting the construction.

Example:

src/junos/lib/ddl/input/system.cnf.dd

        object juniper-system {
            ...

            object services {
            flag no-struct;
            require system;
            help "System services";
            ...

        }

src/junos/lib/ddl/input/dhcp.cnf.dd

        object juniper-system {
            ...

            object services {
                flag no-struct; /* already defined by jkernel */

                object dhcp {
                    help "Configure DHCP server";
                    ...
                }
            }
        }

Display:

        user@router# set system services ?
        Possible completions:
          <[Enter]>            Execute this command
        + apply-groups         Groups from which to inherit configuration data
        + apply-groups-except  Don't inherit configuration data from these groups
        > finger               Allow finger requests from remote systems
        > ftp                  Allow FTP file transfers
        > netconf              Allow NETCONF connections
        > service-deployment   Configuration for Service Deployment (SDXD) management application
        > ssh                  Allow ssh access
        > telnet               Allow telnet login
        > xnm-clear-text       Allow clear text-based JUNOScript connections
        > xnm-ssl              Allow SSL-based JUNOScript connections
          |                    Pipe through a command
        [edit]
        user@router# set system services dhcp ?
        Possible completions:
        + apply-groups         Groups from which to inherit configuration data
        + apply-groups-except  Don't inherit configuration data from these groups
          boot-file            Boot filename advertised to clients
          boot-server          Boot server advertised to clients
          default-lease-time   Default lease time advertised to clients (seconds)
          domain-name          Domain name advertised to clients
        > domain-search        Domain search list used to resolve hostnames
          maximum-lease-time   Maximum lease time advertised to clients (seconds)
        > name-server          Domain name servers available to the client
        > option               DHCP option
        > pool                 DHCP address pool
        > router               Routers advertised to clients
          server-identifier    DHCP server identifier advertised to clients
        > static-binding       DHCP client's hardware address
        > traceoptions         DHCP server trace options
        > wins-server          NetBIOS name servers
        [edit]

See also:

Reference (to programmers guide/style guide):


2007-2008 Juniper Networks, Inc. All rights reserved. The information contained herein is confidential information of Juniper Networks, Inc., and may not be used, disclosed, distributed, modified, or copied without the prior written consent of Juniper Networks, Inc. in an express license. This information is subject to change by Juniper Networks, Inc. Juniper Networks, the Juniper Networks logo, and JUNOS are trademarks of Juniper Networks, Inc.
Generated on Sun May 30 20:23:12 2010 for DDL Reference Guide by doxygen 1.4.5