summaryrefslogtreecommitdiff
path: root/python/vyos
AgeCommit message (Collapse)Author
2019-09-06[wireguard] - T1639: wireguard pubkey change errorhagbard
- sudo added to wg call - debug print removed when pubkey changes
2019-09-06vxlan: T1636: initial rewrite with XML and PythonChristian Poessinger
Tested using: Site 1 (VyOS 1.2.2) ------------------- set interfaces vxlan vxlan100 address '10.10.10.2/24' set interfaces vxlan vxlan100 remote '172.18.201.10' set interfaces vxlan vxlan100 vni '100' Site 2 (rewrite) ---------------- set interfaces vxlan vxlan100 address '10.10.10.1/24' set interfaces vxlan vxlan100 description 'VyOS VXLAN' set interfaces vxlan vxlan100 remote '172.18.202.10' set interfaces vxlan vxlan100 vni '100'
2019-09-06Python/ifconfig: T1557: vxlan: initial support via VXLANIfChristian Poessinger
2019-09-06Python/ifconfig: T1557: fix remove_peer commend in WireGuardIfChristian Poessinger
2019-09-06Python/ifconfig: T1557: {add,del}_addr() now supports dhcp/dhcpv6Christian Poessinger
Instead of manually starting DHCP/DHCPv6 for every interface and have an identical if/elif/else statement checking for dhcp/dhcpv6 rather move this repeating stement into add_addr()/del_addr(). Single source is always preferred.
2019-09-06Python/ifconfig: T1557: recursively delete VLAN interfaces on remove()Christian Poessinger
2019-09-04[wireguard] - T1628: line break in coment addedhagbard
2019-09-04[wireguard] - T1628: renaming member functions, removing wg_ prefixhagbard
2019-09-04Merge branch 'current' of https://github.com/vyos/vyos-1x into currenthagbard
2019-09-04[wireguard] - T1628: fixing comment indenthagbard
2019-09-04Python/configdict: add function vlan_to_dictChristian Poessinger
A generic function which can parse the VLAN (vif, vif-s, cif-c) nodes in a config session. A dictionary describing the VLAN is returned. A good example will be the interface-bonding.py script used to generate bond interfaces in the system. It is used as follows: if conf.exists('vif'): for vif in conf.list_nodes('vif'): # set config level to vif interface conf.set_level(cfg_base + ' vif ' + vif) bond['vif'].append(vlan_to_dict(conf))
2019-09-04Python/configdict: add list_diff function to compare two listsChristian Poessinger
A list containing only unique elements not part of the other list is returned. This is usefull to check e.g. which IP addresses need to be removed from the OS.
2019-09-04[wireguard] - T1628: Adopt WireGuard configuration script to new ↵hagbard
vyos.ifconfig class
2019-09-04Python/ifconfig: T1557: remove double quotes on iproute2 commandsChristian Poessinger
2019-09-04bonding: T1614: T1557: add vif/vif-s VLAN interface supportChristian Poessinger
Support for vif-c interfaces is still missing
2019-09-03Python/ifconfig: T1557: cleanup __init__/debugChristian Poessinger
2019-09-03Python/ifconfig: T1557: derive BondIf from EthernetIf as we need VLANsChristian Poessinger
2019-09-03Python/ifconfig: T1557: add description for Interface classesChristian Poessinger
2019-09-03Python/ifconfig: T1557: bonding: add primary and mode propertyChristian Poessinger
2019-09-03Python/ifconfig: T1557: bonding: add get_slaves() callChristian Poessinger
2019-09-03Python/ifconfig: T1557: bonding: disable interface prior enslaving themChristian Poessinger
An interface can only be added to a bond if it is in 'down' state. If interface is in 'up' state, the following Kernel error will be thrown: > bond0: eth1 is up - this may be due to an out of date ifenslave.
2019-09-03Python/ifconfig: T1557: adjust debug message format #2Christian Poessinger
2019-09-03Python/ifconfig: T1557: bonding: add {add,del}_port for slave interfaceChristian Poessinger
2019-09-03Python/ifconfig: T1557: add message to raised ExceptionsChristian Poessinger
2019-09-03Python/ifconfig: T1556: bridge: no need to manually generate an exceptionChristian Poessinger
2019-09-03Python/ifconfig: T1557: adjust debug message formatChristian Poessinger
* remove missleading " as first character with no closing quote * use single quotes in output messages (unclutter) * when writing changes, make output string copy/pasteable my changing '->' to '>'
2019-09-03Python/ifconfig: T1557: bonding: bugfix read_sysfs when debug is enabledChristian Poessinger
2019-09-03Python/ifconfig: T1557: bonding: bugfix setting ARP IP targetChristian Poessinger
2019-09-01Merge pull request #119 from alkersan/T1621_misc_rewritesChristian Poessinger
[op-mode] T1621 rewrite misc commands to python/xml syntax
2019-09-01Python/ifconfig: T1557: bonding: add arp_ip_targetChristian Poessinger
2019-09-01Python/ifconfig: T1557: bonding: add arp_intervalChristian Poessinger
2019-09-01Python/ifconfig: T1557: bonding: add xmit_hash_policyChristian Poessinger
2019-09-01Python/ifconfig: T1557: add proxy_arp{_pvlan} functionsChristian Poessinger
2019-09-01Python/ifconfig: T1557: migrate all sysfs calls to {read,write}_sysfs helperChristian Poessinger
Introduced in commit f524254 ("Python/ifconfig: T1557: use read/write helpers to interface with sysfs") migrate all remaining calls to this new helper. This enables us to have a single debug call and a single place for error checking.
2019-08-31[boot-config-loader] T1622: Add failsafe and back traceJohn Estabrook
2019-08-31Python/ifconfig: T1557: enable debugging with DEBUG=1 environment variableChristian Poessinger
2019-08-31Python/ifconfig: T1557: use read/write helpers to interface with sysfsChristian Poessinger
2019-08-31Python/ifconfig: T1557: cleanup import sectionChristian Poessinger
2019-08-31loopback: T1601: migrate from pyroute2 -> vyos.ifconfigChristian Poessinger
2019-08-31Python/ifconfig: T1557: fix DHCP/DHCPv6 daemon and add Bridge/Dummy interfaceChristian Poessinger
2019-08-30Python/ifconfig: cleanup import statementsChristian Poessinger
2019-08-30Python/ifconfig: remove ipv4/ipv6 handling, iproute2 autodetects addr familyChristian Poessinger
2019-08-30[op-mode] T1621 rewrite misc commands to python/xml syntaxDmytro Aleksandrov
2019-08-30Python/ifconfig: rename interfaceconfig.py -> ifconfig.pyChristian Poessinger
2019-08-30Python/ifconfig: re-work IP address creation/deletionChristian Poessinger
2019-08-30Python/ifconfig: replace up()/down() with 'state' propertyChristian Poessinger
Commit cb1b72c5c ("Python/ifconfig: replace linkstate() with up()/down() methods") replaced the linkstate property in favour of up()/down() functions. Instead it really makes more sense to have a propery to also query the current linkstate from sysfs.
2019-08-30Python/ifconfig: add @property statement on 'remove' callChristian Poessinger
2019-08-30Python/ifconfig: re-work and rename remove_interface() -> remove() to delete ↵Christian Poessinger
an interface
2019-08-30Python/ifconfig: replace linkstate() with up()/down() methodsChristian Poessinger
2019-08-30Python/ifconfig: re-work __init__ interface creationChristian Poessinger