Age | Commit message (Collapse) | Author | |
---|---|---|---|
2024-03-28 | op-mode: T6175: "renew dhcp interface <name>" does not check for DHCP interface | Christian Breunig | |
The current op-mode script simply calls sudo systemctl restart "dhclient@$4.service" with no additional information about a client interface at all. This results in useless dhclient processes root 47812 4.7 0.0 5848 3584 ? Ss 00:30 0:00 /sbin/dhclient -4 -d root 48121 0.0 0.0 4188 3072 ? S 00:30 0:00 \_ /bin/sh /sbin/dhclient-script root 48148 50.0 0.2 18776 11264 ? R 00:30 0:00 \_ python3 - Which also assign client leases to all local interfaces, if we receive one valid DHCPOFFER vyos@vyos:~$ show interfaces Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down Interface IP Address MAC VRF MTU S/L Description ----------- ----------------- ----------------- ------- ----- ----- ------------- eth0 - 00:50:56:bf:c5:6d default 1500 u/u eth0.10 172.16.33.102/24 00:50:56:bf:c5:6d default 1500 u/u eth1 172.16.33.131/24 00:50:56:b3:38:c5 default 1500 u/u 172.16.33.102/24 and 172.16.33.131/24 are stray DHCP addresses. This commit moved the renew command to the DHCP op-mode script to properly validate if the interface we request a renew for, has actually a dhcp address configured. In additional this exposes the renew feature to the API. (cherry picked from commit 7dbaa25a199a781aaa9f269741547e576410cb11) | |||
2024-02-01 | T2719: Add 'update' in standard op-mode function list | Indrajit Raychaudhuri | |
2023-05-04 | opmode: T5191: replace underscores with hyphens in generated options | Daniil Baturin | |
2023-03-05 | op-mode: T5051: add support for Literal arg types | John Estabrook | |
2023-01-25 | Merge pull request #1778 from dmbaturin/T4950-op-mode-set | Christian Breunig | |
opmode: T4950: add set to the list of op mode functions | |||
2023-01-24 | Merge pull request #1779 from dmbaturin/T4951-resource-error | Christian Breunig | |
op mode: T4951: add InsufficientResources error | |||
2023-01-23 | op mode: T4951: add InsufficientResources error | Daniil Baturin | |
2023-01-23 | opmode: T4950: add set to the list of op mode functions | Daniil Baturin | |
2023-01-19 | T4944: disallow bare literals in raw op mode outputs | Daniil Baturin | |
2023-01-10 | opmode: T4564: add generate to the list of op mode functions | Daniil Baturin | |
2023-01-10 | opmode: T2546: add UnsupportedOperation to op mode errors | Daniil Baturin | |
2023-01-09 | container: T4880: include 'add'/'delete' in standard op-mode functions | John Estabrook | |
2022-12-12 | opmode: T4770: add CommitInProgess error | John Estabrook | |
2022-11-18 | IPsec: T4828: raise op-mode error on incorrect value | John Estabrook | |
2022-11-01 | op-mode: T4791: decamelize raw output of 'show_*' before normalization | John Estabrook | |
2022-10-28 | T4765: handle non-string fields in the raw op mode output normalizer | Daniil Baturin | |
2022-10-21 | T4765: support list and primitives in op mode output normalization | create with ansible | |
2022-10-20 | T4765: normalize fields only if 'raw' is true; output must be dict | John Estabrook | |
2022-10-20 | T4765: normalize dict fields in op mode ouputs | Daniil Baturin | |
2022-08-30 | opmode: T4657: fixed opmode with return type hints | zsdc | |
This commit excludes `return` from `typing.get_type_hints()` output, which allows generate argparse arguments for function properly. | |||
2022-08-04 | T2719: add an exception hierarchy for op mode errors | Daniil Baturin | |
2022-07-20 | T2719: fix indentation in vyos.opmode | Daniil Baturin | |
2022-07-19 | T2719: patch for general support for boolean options | John Estabrook | |
Signed-off-by: Daniil Baturin <daniil@vyos.io> | |||
2022-07-05 | T2719: add general support for boolean options to generative op mode | Daniil Baturin | |
Since Python as of 3.9 doesn't give us an option to look up argument's default value by its name, this implementation requires that all boolean options must default to false. | |||
2022-06-20 | T2719: use _is_show for detecting show functions | Daniil Baturin | |
2022-06-16 | T2719: make re functions usage in vyos.opmode more consistent | Daniil Baturin | |
2022-06-15 | T2719: correctly handle the raw argument for all show_* commands | Daniil Baturin | |
2022-06-15 | T2719: handle the case when script subcommand is not given | Daniil Baturin | |
2022-06-09 | T2719: prototype of an op mode command runner | Daniil Baturin | |
based on type hints and introspection |