Commit 9b8becb5 authored by Philip Makedonski's avatar Philip Makedonski
Browse files

+ updated examples

parent 66254b4d
Loading
Loading
Loading
Loading
+1937 −0

File added.

Preview size limit exceeded, changes collapsed.

+0 −1123

File deleted.

Preview size limit exceeded, changes collapsed.

+204 −0
Original line number Diff line number Diff line
Package generated_from_simple {
    Type String
    Type TODO_RESOLVE_REFERENCED
    Use "simple" as SOURCE_MAPPING
    Structure system (
        string host_name,
        string_collection domain_search,
        system___login login
    )
    Type string
    Collection string_collection of string
    Structure system___login (
        string message,
        login___user_collection user
    )
    Structure login___user (
        string ^name,
        string full_name,
        string class
    )
    Collection login___user_collection of login___user
    Structure parent_container (
        parent_container___parent_ordered_list_collection child_container
    )
    Structure parent_container___parent_ordered_list (
        string parent_key_leaf,
        string parent_ordinary_leaf,
        parent_ordered_list___child_ordered_list_collection child_ordered_list
    )
    Structure parent_ordered_list___child_ordered_list (
        string child_key_leaf,
        string child_ordinary_leaf
    )
    Collection parent_ordered_list___child_ordered_list_collection of parent_ordered_list___child_ordered_list
    Collection parent_container___parent_ordered_list_collection of parent_container___parent_ordered_list
    Structure sports (
        sports___person_collection person,
        sports___team_collection team,
        sports___protocol_collection protocol
    )
    Structure sports___person (
        string ^name,
        date_and_time birthday
    )
    Type date_and_time extends string
    Collection sports___person_collection of sports___person
    Structure sports___team (
        string ^name,
        team___player_collection player,
        protocol protocol
    )
    Structure team___player (
        @LeafRefPath : "/sports/person/name"
        leafref ^name,
        season season,
        uint16 number,
        scores scores,
        uint16_collection score_list
    )
    Type leafref
    Annotation LeafRefPath
    Type season extends string
    Type uint16
    Type scores extends uint16
    Collection uint16_collection of uint16
    Collection team___player_collection of team___player
    Enumerated protocol {
        protocol tcp,
        protocol udp,
        protocol icmp
    }
    Collection sports___team_collection of sports___team
    Structure sports___protocol (
        string associated_layer_protocol,
        protocoly protocoly,
        protocol___ext_cpd_collection ext_cpd,
        protocol___case_ext_cpd_collection case_ext_cpd,
        string protocolz,
        protocol___port_map_collection port_map
    )
    Enumerated protocoly {
        protocoly tcp,
        protocoly udp,
        protocoly icmp
    }
    Structure protocol___ext_cpd (
        string k,
        ext_cpd___cp_connection cp_connection
    )
    Structure ext_cpd___cp_connection (
        cp_connection___int_virtual_link_desc int_virtual_link_desc,
        cp_connection___int_cpd int_cpd
    )
    Structure cp_connection___int_virtual_link_desc (
        string int_virtual_link_desc
    )
    Structure cp_connection___int_cpd (
        int_cpd___int_cpd int_cpd
    )
    Structure int_cpd___int_cpd (
        string vdu_id,
        string cpd
    )
    Collection protocol___ext_cpd_collection of protocol___ext_cpd
    Structure protocol___case_ext_cpd (
        string k,
        case_ext_cpd___cp_connection cp_connection
    )
    Structure case_ext_cpd___cp_connection (
        cp_connection___a ^a,
        cp_connection___b b
    )
    Structure cp_connection___a (
        string int_virtual_link_desc
    )
    Structure cp_connection___b (
        b___int_cpd int_cpd
    )
    Structure b___int_cpd (
        string vdu_id,
        string cpd
    )
    Collection protocol___case_ext_cpd_collection of protocol___case_ext_cpd
    Structure protocol___port_map (
        string port_ref,
        port_map___map_type map_type
    )
    Structure port_map___map_type (
        map_type___static_filtering_entries static_filtering_entries,
        map_type___static_vlan_registration_entries static_vlan_registration_entries
    )
    Structure map_type___static_filtering_entries (
        static_filtering_entries___static_filtering_entries static_filtering_entries
    )
    Structure static_filtering_entries___static_filtering_entries (
        enumeration control_element,
        string connection_identifier
    )
    Type enumeration
    Structure map_type___static_vlan_registration_entries (
        static_vlan_registration_entries___static_vlan_registration_entries static_vlan_registration_entries
    )
    Structure static_vlan_registration_entries___static_vlan_registration_entries (
        enumeration registrar_admin_control
    )
    Collection protocol___port_map_collection of protocol___port_map
    Collection sports___protocol_collection of sports___protocol
    Structure config (
        config___link_collection links,
        config___queueDiscipline_collection queueDisciplines,
        config___linkLimitation_collection linkLimitations,
        config___defaultLink defaultLink
    )
    Structure config___link (
        string ^name,
        link___flags flags,
        mac_address addr,
        mac_address brd,
        mtu mtu
    )
    Structure link___flags (
        empty UP,
        empty NOARP,
        empty BROADCAST,
        empty MULTICAST,
        empty LOOPBACK,
        empty NOTRAILERS
    )
    Type empty
    Type mac_address extends string
    Type mtu extends uint32
    Type uint32
    Collection config___link_collection of config___link
    Structure config___queueDiscipline (
        @LeafRefPath : "/config/links/link/name"
        leafref linkName,
        QueueDisciplineType ^type,
        uint32 length
    )
    Enumerated QueueDisciplineType {
        QueueDisciplineType pfifo_fast,
        QueueDisciplineType noqueue,
        QueueDisciplineType noop,
        QueueDisciplineType htb
    }
    Collection config___queueDiscipline_collection of config___queueDiscipline
    Structure config___linkLimitation (
        @LeafRefPath : "/config/links/link/name"
        leafref linkName,
        linkLimitation___limitations limitations
    )
    Structure linkLimitation___limitations (
        only10Mbps only10Mbps,
        onlyHalfDuplex onlyHalfDuplex
    )
    Type only10Mbps extends boolean
    Type boolean
    Type onlyHalfDuplex extends boolean
    Collection config___linkLimitation_collection of config___linkLimitation
    Structure config___defaultLink (
        @LeafRefPath : "/config/links/link/name"
        leafref linkName
    )
}
 No newline at end of file
+8 −0
Original line number Diff line number Diff line
@@ -91,6 +91,10 @@ module example-sports {
            default "tcp";
        }
        list ext-cpd {
        	key "k";
        	leaf k {
        		type string;
        	}
            choice cp-connection {
                // no case
                leaf int-virtual-link-desc {
@@ -107,6 +111,10 @@ module example-sports {
            }
        }
        list case-ext-cpd {
        	key "k";
        	leaf k {
        		type string;
        	}
            choice cp-connection {
                // case
                case a {
+79 −1254

File changed.

Preview size limit exceeded, changes collapsed.