Skip to content

Instantly share code, notes, and snippets.

@cathay4t
Created June 20, 2019 06:11
Show Gist options
  • Save cathay4t/0d67fe2f6a0724c13c92a6352ae45a41 to your computer and use it in GitHub Desktop.
Save cathay4t/0d67fe2f6a0724c13c92a6352ae45a41 to your computer and use it in GitHub Desktop.
  • DNS editing

    • Limitations:
      • Only support up most 2 name servers
      • DNS configure is stored in profile of interface with static default gateway.
    • Demos:
      • Change DNS setting using examples/dns_edit_eth1.yml
      • Remove DNS setting using examples/dns_remove.yml
      • Preserve old DNS config with empty state.
  • Route editing

    • Wildcard remove.
    • Edit should be remove then add.
    • Limitations:
      • Only support single IPv4 and single IPv6 default gateway.
    • Demos:
      • Add route to existing one with table id specified.
      • Change route.
      • Remove routes using wildcard.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment