guides:reference:templates:porttemplate
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
guides:reference:templates:porttemplate [2019/12/23 14:30] – external edit 127.0.0.1 | guides:reference:templates:porttemplate [2024/07/03 12:31] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{indexmenu_n> | ||
+ | |||
+ | ====== Port templates ====== | ||
+ | |||
+ | Port templates are used to configure ports. A port type must be entered and port templates can only be assigned to ports to which the hardware type is a match. (i.e. A FastEthernet port can only be assigned a FastEthernet port template) | ||
+ | |||
+ | In addition to the hardware ports (including the Loopback interface), port templates are also used to configure VLANs and VRFs. These are created as port templates, but they can only be assigned to either a VLAN or a VRF. | ||
+ | |||
+ | ===== Port ===== | ||
+ | |||
+ | Port templates are hardware ports. These templates can be used to configure a hardware port. | ||
+ | |||
+ | === Directives === | ||
+ | |||
+ | Port-templates can fully use any Relation to retrieve (lists of) variables. However, some Relationships become port-specific by referencing < | ||
+ | |||
+ | This behaviour is subject to YCE template directives, of which the ''# | ||
+ | |||
+ | The **''# | ||
+ | The #reload directive attempts to load all arguments as Relations: | ||
+ | |||
+ | < | ||
+ | #reload port_connections vlans_attached | ||
+ | </ | ||
+ | |||
+ | is equivalent to | ||
+ | |||
+ | < | ||
+ | #reload port_connections | ||
+ | #reload vlans_attached | ||
+ | </ | ||
+ | |||
+ | The **''# | ||
+ | |||
+ | The **''# | ||
+ | ==== Hardware types ==== | ||
+ | |||
+ | Hardware types cannot be defined by the user, but are part of the netYCE programming. Missing hardware types can be requested through a [[[email protected]|support request]]. | ||
+ | |||
+ | ===== VRF ===== | ||
+ | |||
+ | VRF templates can be assigned to VRFs. This can be done through a service task or with the [[menu: | ||
+ | |||
+ | ===== VLAN ===== | ||
+ | |||
+ | VLAN port templates can be used to configure VLAN interface just like physical interfaces on a network device, as mentioned before VLAN port templates can only be assigned to a VLAN. | ||