Skip to content

Commit

Permalink
Merge branch 'vyos:current' into T6320
Browse files Browse the repository at this point in the history
  • Loading branch information
alainlamar authored Jun 5, 2024
2 parents 911ac6c + 77cb661 commit 99f8633
Show file tree
Hide file tree
Showing 44 changed files with 669 additions and 128 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/build-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Debian Package Build
on:
pull_request:
branches:
- current

jobs:
package-build:
runs-on: ubuntu-latest
container:
image: vyos/vyos-build:current
options: --sysctl net.ipv6.conf.lo.disable_ipv6=0
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build Debian package
run: dpkg-buildpackage -uc -us -tc -b
2 changes: 1 addition & 1 deletion .github/workflows/repo-sync.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Repo-sync

on:
pull_request:
pull_request_target:
types:
- closed
branches:
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ op_mode_definitions: $(op_xml_obj)
ln -s ../node.tag $(OP_TMPL_DIR)/ping/node.tag/node.tag/
ln -s ../node.tag $(OP_TMPL_DIR)/traceroute/node.tag/node.tag/
ln -s ../node.tag $(OP_TMPL_DIR)/mtr/node.tag/node.tag/
ln -s ../node.tag $(OP_TMPL_DIR)/monitor/traceroute/node.tag/node.tag/

# XXX: test if there are empty node.def files - this is not allowed as these
# could mask help strings or mandatory priority statements
Expand Down
4 changes: 3 additions & 1 deletion data/templates/accel-ppp/ipoe.config.j2
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ max-starting={{ max_concurrent_sessions }}
[log]
syslog=accel-ipoe,daemon
copy=1
level=5
{% if log.level is vyos_defined %}
level={{ log.level }}
{% endif %}

[ipoe]
verbose=1
Expand Down
4 changes: 3 additions & 1 deletion data/templates/accel-ppp/l2tp.config.j2
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ max-starting={{ max_concurrent_sessions }}
[log]
syslog=accel-l2tp,daemon
copy=1
level=5
{% if log.level is vyos_defined %}
level={{ log.level }}
{% endif %}

[client-ip-range]
0.0.0.0/0
Expand Down
4 changes: 3 additions & 1 deletion data/templates/accel-ppp/pppoe.config.j2
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ thread-count={{ thread_count }}
[log]
syslog=accel-pppoe,daemon
copy=1
level=5
{% if log.level is vyos_defined %}
level={{ log.level }}
{% endif %}

{% if authentication.mode is vyos_defined("noauth") %}
[auth]
Expand Down
4 changes: 3 additions & 1 deletion data/templates/accel-ppp/pptp.config.j2
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ max-starting={{ max_concurrent_sessions }}
[log]
syslog=accel-pptp,daemon
copy=1
level=5
{% if log.level is vyos_defined %}
level={{ log.level }}
{% endif %}

[client-ip-range]
0.0.0.0/0
Expand Down
4 changes: 3 additions & 1 deletion data/templates/accel-ppp/sstp.config.j2
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ max-starting={{ max_concurrent_sessions }}
[log]
syslog=accel-sstp,daemon
copy=1
level=5
{% if log.level is vyos_defined %}
level={{ log.level }}
{% endif %}

[client-ip-range]
0.0.0.0/0
Expand Down
3 changes: 3 additions & 0 deletions data/templates/frr/isisd.frr.j2
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ advertise-passive-only
{% if set_overload_bit is vyos_defined %}
set-overload-bit
{% endif %}
{% if metric_style is vyos_defined %}
metric-style {{ metric_style }}
{% endif %}
{% if domain_password.md5 is vyos_defined %}
domain-password md5 {{ domain_password.plaintext_password }}
{% elif domain_password.plaintext_password is vyos_defined %}
Expand Down
7 changes: 7 additions & 0 deletions data/templates/load-balancing/haproxy.cfg.j2
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,13 @@ frontend {{ front }}
{% if backend is vyos_defined %}
{% for back, back_config in backend.items() %}
backend {{ back }}
{% if back_config.health_check is vyos_defined %}
{% if back_config.health_check == 'smtp' %}
option smtpchk
{% else %}
option {{ back_config.health_check }}-check
{% endif %}
{% endif %}
{% if back_config.http_check is vyos_defined %}
option httpchk
{% endif %}
Expand Down
3 changes: 3 additions & 0 deletions data/templates/login/default_motd.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Welcome to VyOS!
. VyOS {{ version_data.version }}
└ ──┘ {{ version_data.release_train }}

{% if version_data.lts_build %}
* Support portal: {{ version_data.support_url }}
{% endif %}
* Documentation: {{ version_data.documentation_url }}
* Project news: {{ version_data.project_news_url }}
* Bug reports: {{ version_data.bugtracker_url }}
Expand Down
42 changes: 42 additions & 0 deletions interface-definitions/include/accel-ppp/log.xml.i
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<!-- include start from accel-ppp/log.xml.i -->
<node name="log">
<properties>
<help>Server logging </help>
</properties>
<children>
<leafNode name="level">
<properties>
<help>Specifies log level</help>
<valueHelp>
<format>0</format>
<description>Turn off logging</description>
</valueHelp>
<valueHelp>
<format>1</format>
<description>Log only error messages</description>
</valueHelp>
<valueHelp>
<format>2</format>
<description>Log error and warning messages</description>
</valueHelp>
<valueHelp>
<format>3</format>
<description>Log error, warning and minimum information messages</description>
</valueHelp>
<valueHelp>
<format>4</format>
<description>Log error, warning and full information messages</description>
</valueHelp>
<valueHelp>
<format>5</format>
<description>Log all messages including debug messages</description>
</valueHelp>
<constraint>
<validator name="numeric" argument="--range 0-5"/>
</constraint>
</properties>
<defaultValue>3</defaultValue>
</leafNode>
</children>
</node>
<!-- include end -->
15 changes: 15 additions & 0 deletions interface-definitions/include/qos/class-match-group.xml.i
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!-- include start from qos/class-match-group.xml.i -->
<leafNode name="match-group">
<properties>
<help>Filter group for QoS policy</help>
<valueHelp>
<format>txt</format>
<description>Match group name</description>
</valueHelp>
<completionHelp>
<script>${vyos_completion_dir}/qos/list_traffic_match_group.py</script>
</completionHelp>
<multi/>
</properties>
</leafNode>
<!-- include end -->
31 changes: 31 additions & 0 deletions interface-definitions/include/qos/class-match-ipv4.xml.i
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!-- include start from qos/class-match-ipv4.xml.i -->
<node name="ip">
<properties>
<help>Match IP protocol header</help>
</properties>
<children>
<node name="destination">
<properties>
<help>Match on destination port or address</help>
</properties>
<children>
#include <include/qos/class-match-ipv4-address.xml.i>
#include <include/port-number.xml.i>
</children>
</node>
#include <include/qos/match-dscp.xml.i>
#include <include/qos/max-length.xml.i>
#include <include/ip-protocol.xml.i>
<node name="source">
<properties>
<help>Match on source port or address</help>
</properties>
<children>
#include <include/qos/class-match-ipv4-address.xml.i>
#include <include/port-number.xml.i>
</children>
</node>
#include <include/qos/tcp-flags.xml.i>
</children>
</node>
<!-- include end -->
31 changes: 31 additions & 0 deletions interface-definitions/include/qos/class-match-ipv6.xml.i
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!-- include start from qos/class-match-ipv6.xml.i -->
<node name="ipv6">
<properties>
<help>Match IPv6 protocol header</help>
</properties>
<children>
<node name="destination">
<properties>
<help>Match on destination port or address</help>
</properties>
<children>
#include <include/qos/class-match-ipv6-address.xml.i>
#include <include/port-number.xml.i>
</children>
</node>
#include <include/qos/match-dscp.xml.i>
#include <include/qos/max-length.xml.i>
#include <include/ip-protocol.xml.i>
<node name="source">
<properties>
<help>Match on source port or address</help>
</properties>
<children>
#include <include/qos/class-match-ipv6-address.xml.i>
#include <include/port-number.xml.i>
</children>
</node>
#include <include/qos/tcp-flags.xml.i>
</children>
</node>
<!-- include end -->
14 changes: 14 additions & 0 deletions interface-definitions/include/qos/class-match-mark.xml.i
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!-- include start from qos/class-match-mark.xml.i -->
<leafNode name="mark">
<properties>
<help>Match on mark applied by firewall</help>
<valueHelp>
<format>u32</format>
<description>FW mark to match</description>
</valueHelp>
<constraint>
<validator name="numeric" argument="--range 0-4294967295"/>
</constraint>
</properties>
</leafNode>
<!-- include end -->
15 changes: 15 additions & 0 deletions interface-definitions/include/qos/class-match-vif.xml.i
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!-- include start from qos/class-match-vif.xml.i -->
<leafNode name="vif">
<properties>
<help>Virtual Local Area Network (VLAN) ID for this match</help>
<valueHelp>
<format>u32:0-4095</format>
<description>Virtual Local Area Network (VLAN) tag </description>
</valueHelp>
<constraint>
<validator name="numeric" argument="--range 0-4095"/>
</constraint>
<constraintErrorMessage>VLAN ID must be between 0 and 4095</constraintErrorMessage>
</properties>
</leafNode>
<!-- include end -->
89 changes: 5 additions & 84 deletions interface-definitions/include/qos/class-match.xml.i
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<constraint>
<regex>[^-].*</regex>
</constraint>
<constraintErrorMessage>Match queue name cannot start with hyphen (-)</constraintErrorMessage>
<constraintErrorMessage>Match queue name cannot start with hyphen</constraintErrorMessage>
</properties>
<children>
#include <include/generic-description.xml.i>
Expand Down Expand Up @@ -89,89 +89,10 @@
</children>
</node>
#include <include/generic-interface.xml.i>
<node name="ip">
<properties>
<help>Match IP protocol header</help>
</properties>
<children>
<node name="destination">
<properties>
<help>Match on destination port or address</help>
</properties>
<children>
#include <include/qos/class-match-ipv4-address.xml.i>
#include <include/port-number.xml.i>
</children>
</node>
#include <include/qos/match-dscp.xml.i>
#include <include/qos/max-length.xml.i>
#include <include/ip-protocol.xml.i>
<node name="source">
<properties>
<help>Match on source port or address</help>
</properties>
<children>
#include <include/qos/class-match-ipv4-address.xml.i>
#include <include/port-number.xml.i>
</children>
</node>
#include <include/qos/tcp-flags.xml.i>
</children>
</node>
<node name="ipv6">
<properties>
<help>Match IPv6 protocol header</help>
</properties>
<children>
<node name="destination">
<properties>
<help>Match on destination port or address</help>
</properties>
<children>
#include <include/qos/class-match-ipv6-address.xml.i>
#include <include/port-number.xml.i>
</children>
</node>
#include <include/qos/match-dscp.xml.i>
#include <include/qos/max-length.xml.i>
#include <include/ip-protocol.xml.i>
<node name="source">
<properties>
<help>Match on source port or address</help>
</properties>
<children>
#include <include/qos/class-match-ipv6-address.xml.i>
#include <include/port-number.xml.i>
</children>
</node>
#include <include/qos/tcp-flags.xml.i>
</children>
</node>
<leafNode name="mark">
<properties>
<help>Match on mark applied by firewall</help>
<valueHelp>
<format>u32</format>
<description>FW mark to match</description>
</valueHelp>
<constraint>
<validator name="numeric" argument="--range 0-4294967295"/>
</constraint>
</properties>
</leafNode>
<leafNode name="vif">
<properties>
<help>Virtual Local Area Network (VLAN) ID for this match</help>
<valueHelp>
<format>u32:0-4095</format>
<description>Virtual Local Area Network (VLAN) tag </description>
</valueHelp>
<constraint>
<validator name="numeric" argument="--range 0-4095"/>
</constraint>
<constraintErrorMessage>VLAN ID must be between 0 and 4095</constraintErrorMessage>
</properties>
</leafNode>
#include <include/qos/class-match-ipv4.xml.i>
#include <include/qos/class-match-ipv6.xml.i>
#include <include/qos/class-match-mark.xml.i>
#include <include/qos/class-match-vif.xml.i>
</children>
</tagNode>
<!-- include end -->
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<!-- include start from include/version/reverseproxy-version.xml.i -->
<syntaxVersion component='reverse-proxy' version='1'></syntaxVersion>
<!-- include end -->
Loading

0 comments on commit 99f8633

Please sign in to comment.