zoukankan      html  css  js  c++  java
  • Saltstack module ip 详解

    ip.get_bond

    Return the content of a bond script
    
    CLI Example:
    
        salt '*' ip.get_bond bond0
    

    ip.get_routes

    Return the contents of the interface routes script.
    
    CLI Example:
    
        salt '*' ip.get_routes eth0
    

    ip.build_interface

    Build an interface script for a network interface.
    
    CLI Example:
    
        salt '*' ip.build_interface eth0 eth <settings>
    

    ip.down

    Shutdown a network interface
    
    CLI Example:
    
        salt '*' ip.down eth0
    

    ip.build_bond

    Create a bond script in /etc/modprobe.d with the passed settings
    and load the bonding kernel module.
    
    CLI Example:
    
        salt '*' ip.build_bond bond0 mode=balance-alb
    

    ip.build_routes

    Build a route script for a network interface.
    
    CLI Example:
    
        salt '*' ip.build_routes eth0 <settings>
    

    ip.get_interface

    Return the contents of an interface script
    
    CLI Example:
    
        salt '*' ip.get_interface eth0
    

    ip.get_network_settings

    Return the contents of the global network script.
    
    CLI Example:
    
        salt '*' ip.get_network_settings
    

    ip.build_network_settings

    Build the global network script.
    
    CLI Example:
    
        salt '*' ip.build_network_settings <settings>
    

    ip.up

    Start up a network interface
    
    CLI Example:
    
        salt '*' ip.up eth0
    

    ip.apply_network_settings

    Apply global network configuration.
    
    CLI Example:
    
        salt '*' ip.apply_network_settings
  • 相关阅读:
    代码习惯
    全网最详细的fhq treap (非旋treap)讲解
    按位或「HAOI2015」
    列队「NOIP2017」
    愤怒的小鸟「NOIP2016」
    能量传输「CSP多校联考 2019」
    矿物运输「CSP多校联考 2019」
    普通打击「CSP多校联考 2019」
    普通快乐「CSP多校联考 2019」
    BZOJ4385: [POI2015]Wilcze doły
  • 原文地址:https://www.cnblogs.com/randomlee/p/Saltstack_module_ip.html
Copyright © 2011-2022 走看看